@font-face {
    font-family: 'Oxanium';
    src: url('../fonts/68E9BACA81FE7DD849427128E0EE29B039049EB900DF624F4B8DAD45AC7D44C8/Oxanium-Latin-Variable.woff2') format('woff2');
    font-weight: 200 800;
    font-stretch: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --ft-font-primary: 'Oxanium', Arial, sans-serif;
    --ft-font-primary-stretch: 100%;
    --ft-font-primary-synthesis: style;
}

/* =========================================================
   1. DESIGN TOKENS — one semantic definition per concept
   ========================================================= */
:root,
[data-bs-theme="light"] {
    color-scheme: light;
    --ft-topbar-height: 68px;
    --ft-control-font-size: max(1rem, 16px);
    --ft-cover-slim-height: 72px;
    --ft-cover-header-max-height: 300px;
    --ft-cover-header-mixed-max-height: 380px;
    --ft-cover-card-image-max-height: 180px;
    --ft-cover-summary-image-max-height: 144px;
    --ft-brand-primary: #615dfa;
    --ft-brand-accent: #23d2e2;
    --ft-brand-ink: #3e3f5e;
    --ft-brand-danger: #fd4350;
    --ft-brand-white: #fff;
    --ft-primary: var(--ft-brand-primary);
    --ft-primary-hover: #4d49da;
    --ft-primary-strong: #4540ba;
    --ft-primary-soft: #e8e7ff;
    --ft-on-primary: #fff;
    --ft-accent: var(--ft-brand-accent);
    --ft-accent-strong: #087f8b;
    --ft-accent-deep: #0d7d89;
    --ft-accent-soft: #ddf9fb;
    --ft-danger: var(--ft-brand-danger);
    --ft-danger-strong: #ad2435;
    --ft-danger-soft: #fff0f1;
    --ft-positive: #137a59;
    --ft-positive-soft: #e4f8ef;
    --ft-rating-low: color-mix(in srgb, var(--ft-danger) 55%, var(--ft-surface));
    --ft-rating-medium: color-mix(in srgb, var(--ft-primary-strong) 60%, var(--ft-surface));
    --ft-rating-high: color-mix(in srgb, var(--ft-accent-strong) 60%, var(--ft-surface));
    --ft-rating-top: color-mix(in srgb, var(--ft-positive) 60%, var(--ft-surface));
    --ft-warning: #946000;
    --ft-warning-soft: #fff4d9;
    --ft-background: #f2f1fc;
    --ft-surface: #fff;
    --ft-sidebar-surface: #eae9ff;
    --ft-surface-raised: #fff;
    --ft-field: #f9f9fc;
    --ft-text: var(--ft-brand-ink);
    --ft-text-soft: #62647d;
    --ft-text-muted: #71738d;
    --ft-text-faint: #9b9dbb;
    --ft-text-label: #737694;
    --ft-border: #dedef0;
    --ft-border-strong: #c9cbd7;
    --ft-border-subtle: #eeeff8;
    --ft-icon-muted: #c9cbe0;
    --ft-surface-tint: #f5f5fb;
    --ft-hover-surface: #f5f5fb;
    --ft-focus: #615dfa44;
    --ft-focus-soft: #615dfa1c;
    --ft-layer-scrim: #17172baa;
    --ft-post-feed-width: 38rem;
    --ft-radius-sm: 10px;
    --ft-radius-md: 14px;
    --ft-radius-lg: 18px;
    --ft-shadow-card: 0 14px 38px #35307312;
    --ft-touch-target: 44px;
    --ft-control-height-sm: 38px;
    --ft-control-height-md: 46px;
    --ft-control-height-lg: 50px;
    --ft-control-height-xl: 56px;
    --ft-sidebar-width: 240px;
    --ft-motion-fast: 150ms;
    --ft-motion-normal: 250ms;
    --ft-field-line: #ffffff66;
    --ft-field-fill: #5852e7;
    --ft-field-dot: var(--ft-brand-accent);
    --bs-font-sans-serif: var(--ft-font-primary);
    --bs-font-monospace: var(--ft-font-primary);
    --bs-body-font-family: var(--ft-font-primary);
    --bs-primary: var(--ft-primary);
    --bs-primary-rgb: 97, 93, 250;
    --bs-body-color: var(--ft-text);
    --bs-body-bg: var(--ft-background);
    --bs-border-color: var(--ft-border);
    --bs-link-color: var(--ft-primary-strong);
}

:root {
    --ft-page-gutter: clamp(24px, 3.4vw, 55px);
    --ft-page-padding-top: 38px;
    --ft-page-padding-bottom: 95px;
    --ft-page-max-width: 1600px;
}

html[data-theme="dark"],
html[data-bs-theme="dark"] {
    color-scheme: dark;
    --ft-primary: #827eff;
    --ft-primary-hover: #9995ff;
    --ft-primary-strong: #aaa7ff;
    --ft-primary-soft: #36345b;
    --ft-on-primary: #16152d;
    --ft-accent: #3adae8;
    --ft-accent-strong: #64e8f0;
    --ft-accent-deep: #64e8f0;
    --ft-accent-soft: #1e434d;
    --ft-danger: #ff6772;
    --ft-danger-strong: #ff8f97;
    --ft-danger-soft: #53303c;
    --ft-positive: #64dcaa;
    --ft-positive-soft: #234c43;
    --ft-warning: #ffd37b;
    --ft-warning-soft: #514329;
    --ft-background: #17172b;
    --ft-surface: #24243c;
    --ft-sidebar-surface: #201f3c;
    --ft-surface-raised: #2b2a47;
    --ft-field: #2b2a47;
    --ft-text: #f3f2ff;
    --ft-text-soft: #cac9e0;
    --ft-text-muted: #acabc7;
    --ft-text-faint: #acabc7;
    --ft-text-label: #acabc7;
    --ft-border: #3d3d59;
    --ft-border-strong: #565477;
    --ft-border-subtle: #3d3d59;
    --ft-icon-muted: #acabc7;
    --ft-surface-tint: #2b2a47;
    --ft-hover-surface: var(--ft-surface-raised);
    --ft-focus: #827eff55;
    --ft-focus-soft: #827eff55;
    --ft-shadow-card: 0 14px 38px #09091b50;
    --bs-primary: var(--ft-primary);
    --bs-primary-rgb: 130, 126, 255;
    --bs-body-color: var(--ft-text);
    --bs-body-bg: var(--ft-background);
    --bs-border-color: var(--ft-border);
    --bs-link-color: var(--ft-primary-strong);
}


/* =========================================================
   2. DESIGN SYSTEM COMPONENTS
   ========================================================= */


/* Error routes and router fallback share the same presentation. */
.ft-error-page {
    min-height: 100svh;
}
.ft-error-page > .container {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}
.ft-error-page__visual {
    background: linear-gradient(145deg, var(--ft-primary-soft), var(--ft-accent-soft));
    color: var(--ft-primary-strong);
}
.ft-error-page__code {
    font-family: var(--ft-font-primary);
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: 1.2;
}

/* Shared components */
/* Shared product components that are not owned by one Razor component. */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ft-font-primary);
    color: var(--ft-text);
    letter-spacing: -.04em;
}

svg.ft-icon { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; vertical-align: middle; }
svg.ft-icon.ft-icon--inline { width: 1em; height: 1em; vertical-align: 0; }
.ft-activity-mark {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}
.ft-activity-mark svg { width: 20px; height: 20px; fill: none; }
.ft-loading { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; color: var(--ft-primary); line-height: 1; }
.ft-loading__symbol { display: block; width: 20px; height: auto; overflow: visible; }
.ft-loading__symbol--dark { display: none; }
html[data-theme="dark"] .ft-loading__symbol--light, html[data-bs-theme="dark"] .ft-loading__symbol--light { display: none; }
html[data-theme="dark"] .ft-loading__symbol--dark, html[data-bs-theme="dark"] .ft-loading__symbol--dark { display: block; }
.ft-loading__base { opacity: 1; }
.ft-loading__piece { opacity: 0; animation: ft-loading-piece 1.4s ease-in-out infinite; }
.ft-loading__piece--secondary { filter: drop-shadow(0 0 3px var(--ft-secondary)) drop-shadow(0 0 7px var(--ft-secondary)); }
.ft-loading__piece--rose { filter: drop-shadow(0 0 3px var(--ft-rose)) drop-shadow(0 0 7px var(--ft-rose)); }
.ft-loading__piece--secondary use { stroke: var(--ft-secondary); stroke-width: 7; stroke-linejoin: round; }
.ft-loading__piece--rose use { stroke: var(--ft-rose); stroke-width: 7; stroke-linejoin: round; }
.ft-loading__piece:nth-child(2) { animation-delay: .1s; }
.ft-loading__piece:nth-child(3) { animation-delay: .2s; }
.ft-loading__piece:nth-child(4) { animation-delay: .3s; }
.ft-loading__piece:nth-child(5) { animation-delay: .4s; }
.ft-loading__piece:nth-child(6) { animation-delay: .5s; }
.ft-loading__piece:nth-child(7) { animation-delay: .6s; }
.ft-loading__piece:nth-child(8) { animation-delay: .7s; }
.ft-loading__piece:nth-child(9) { animation-delay: .8s; }
.ft-loading__piece:nth-child(10) { animation-delay: .9s; }
.ft-loading__piece:nth-child(11) { animation-delay: 1s; }
.ft-loading--startup { min-height: 0; }
.ft-loading--startup .ft-loading__symbol { width: 72px; }
.ft-loading--compact { width: 24px; height: 24px; min-height: 0; flex: none; border-radius: 50%; background: var(--ft-surface); }

@keyframes ft-loading-piece {
    0%, 24%, 100% { opacity: 0; }
    7% { opacity: .4; }
    12% { opacity: 1; }
    18% { opacity: .28; }
}

@media (prefers-reduced-motion: reduce) {
    .ft-loading__base { opacity: 1; animation: none; }
    .ft-loading__piece { opacity: 0; animation: none; }
}
.ft-status { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 24px; padding: .23rem .55rem; border: 1px solid currentColor; border-radius: 999px; background: var(--ft-field); color: var(--ft-text-soft); font-size: .7rem; font-weight: 800; line-height: 1.2; letter-spacing: .015em; vertical-align: middle; }
.ft-status--primary { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-status--info { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-status--success { background: var(--ft-positive-soft); color: var(--ft-positive); }
.ft-status--warning { background: var(--ft-warning-soft); color: var(--ft-warning); }
.ft-status--danger, .ft-status--error { background: var(--ft-danger-soft); color: var(--ft-danger-strong); }
.ft-status--neutral { background: var(--ft-field); color: var(--ft-text-soft); }
.ft-status--xs { min-height: 20px; padding: .14rem .4rem; font-size: .64rem; }
.ft-status--lg { min-height: 29px; padding: .35rem .7rem; font-size: .78rem; }

.ft-field { display: grid; gap: .45rem; min-width: 0; }
.ft-field__label, .ft-field__control > label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; color: var(--ft-text); font-size: .8125rem; font-weight: 750; }
.ft-field__required { display: inline; margin-left: .1rem; color: var(--ft-danger); font-size: 1em; font-weight: 800; line-height: 1; vertical-align: baseline; }
.ft-field__info { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: .1rem; border: 1px solid var(--ft-border); border-radius: 50%; background: var(--ft-surface); color: var(--ft-primary-strong); cursor: help; vertical-align: middle; }
.ft-field__info svg { width: 13px; height: 13px; fill: none; }
.ft-field__info:focus-visible { outline: 2px solid var(--ft-focus); outline-offset: 2px; }
.ft-field__control { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; min-height: 48px; overflow: hidden; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface); transition: border-color var(--ft-motion-fast), box-shadow var(--ft-motion-fast); }
.ft-field__control > label { width: 100%; padding: .65rem .85rem 0; font-size: .7rem; color: var(--ft-text-muted); }
.ft-field__control:focus-within { border-color: var(--ft-primary); box-shadow: 0 0 0 3px var(--ft-focus); }
.ft-field__control--disabled { opacity: .6; background: var(--ft-field); }
.ft-field__input { flex: 1 1 0; min-width: 0; min-height: 46px; padding: .65rem .85rem; border: 0; outline: 0; background: transparent; color: var(--ft-text); font: inherit; font-size: var(--ft-control-font-size); }
.ft-field__input:focus { outline: 0; }
.ft-field__input::placeholder { color: var(--ft-text-muted); }
.ft-field__input:disabled { cursor: not-allowed; }
textarea.ft-field__input { min-height: 96px; resize: vertical; }
select.ft-field__input { cursor: pointer; }
.ft-field__action { flex: none; padding: .2rem; }
.ft-field__action .ft-button { min-height: var(--ft-control-height-md); }
.ft-field__suffix { margin: 0; padding: 0 .8rem; color: var(--ft-text-muted); font-size: .75rem; }
.ft-field__hint { margin: 0; color: var(--ft-text-muted); font-size: .75rem; line-height: 1.4; }
.ft-field__error { margin: 0; color: var(--ft-danger-strong); font-size: .75rem; font-weight: 650; }
.ft-form-field .form-select { min-height: 50px; border-color: var(--ft-border-strong); border-radius: var(--ft-radius-sm); background-color: var(--ft-surface-raised); color: var(--ft-text); font-size: var(--ft-control-font-size); }
.ft-form-field .form-select:disabled { background-color: var(--ft-field); }
.ft-form-field .form-select:focus { border-color: var(--ft-primary); box-shadow: 0 0 0 3px var(--ft-focus); }
.ft-select-insert { display: flex; align-items: flex-end; gap: .5rem; width: 100%; }
.ft-select-insert__field { flex: 1 1 0; min-width: 0; }
.ft-select-insert__action { flex: none; }
.ft-select-insert .ft-button-wrap > .ft-button.ft-select-insert__button {
    --ft-input-height: var(--ft-control-height-md);
    width: var(--ft-input-height);
    height: var(--ft-input-height);
    min-height: var(--ft-input-height);
    padding: 0;
}
.ft-select-insert .ft-button-wrap > .ft-button.ft-select-insert__button.ft-button--sm {
    --ft-input-height: var(--ft-control-height-sm);
}
.ft-select-insert .ft-button-wrap > .ft-button.ft-select-insert__button.ft-button--lg {
    --ft-input-height: var(--ft-control-height-lg);
}
.ft-select-insert .ft-button-wrap > .ft-button.ft-select-insert__button.ft-button--xl {
    --ft-input-height: var(--ft-control-height-xl);
}
.ft-checkbox-stack { display: grid; gap: .25rem; }
@media (min-width: 768px) { .ft-checkbox-stack .ft-check { min-height: 32px; } }
@media (max-width: 767px) { .ft-step-actions .ft-button-wrap, .ft-step-actions .ft-button-wrap > .ft-button { width: 100%; } }
.ft-date-field { position: relative; display: flex; align-items: center; gap: .35rem; width: 100%; min-width: 0; }
.ft-date-field > .ft-form-field { flex: 1 1 0; width: 100%; min-width: 0; }
.ft-date-field.is-disabled .ft-date-field__trigger, .ft-date-field.is-disabled .ft-date-field__native { display: none; }
.ft-date-field__native {
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--ft-input-height, var(--ft-control-height-lg));
    height: var(--ft-input-height, var(--ft-control-height-lg));
    opacity: 0;
    pointer-events: none;
}
.ft-date-field__trigger {
    display: grid;
    place-items: center;
    width: var(--ft-input-height, var(--ft-control-height-lg));
    height: var(--ft-input-height, var(--ft-control-height-lg));
    flex: none;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-surface);
    color: var(--ft-primary-strong);
    cursor: pointer;
}
.ft-date-field__trigger:hover, .ft-date-field__trigger:focus-visible { border-color: var(--ft-primary); background: var(--ft-primary-soft); }
.ft-date-field__trigger svg { width: 20px; height: 20px; fill: none; }
.ft-date-field__action { flex: none; }
.ft-date-field__action .ft-button.ft-button--icon-only {
    width: var(--ft-input-height, var(--ft-control-height-lg));
    height: var(--ft-input-height, var(--ft-control-height-lg));
    min-height: var(--ft-input-height, var(--ft-control-height-lg));
}
.ft-bootstrap-tooltip { --bs-tooltip-bg: var(--ft-text); --bs-tooltip-color: var(--ft-surface); --bs-tooltip-padding-x: .72rem; --bs-tooltip-padding-y: .48rem; --bs-tooltip-border-radius: var(--ft-radius-sm); --bs-tooltip-max-width: 280px; --bs-tooltip-opacity: 1; font-family: var(--ft-font-primary); font-size: .76rem; font-weight: 650; line-height: 1.4; }
.ft-date-range { display: grid; gap: .6rem; }
.ft-date-range__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.ft-date-range__select, .ft-date-range__input { min-width: 0; }
@media (max-width: 550px) { .ft-date-range__inputs { grid-template-columns: 1fr; } }

.ft-choice { min-width: 0; }
.ft-choice--disabled { opacity: .55; }
.ft-choice__label, .ft-check > label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; color: var(--ft-text); font-size: .875rem; font-weight: 650; }
.ft-choice__hint { margin: .25rem 0 0; color: var(--ft-text-muted); font-size: .75rem; line-height: 1.4; }
.ft-check { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: var(--ft-touch-target); }
.ft-check__input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--ft-primary); cursor: pointer; }
.ft-check__input:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-check--small .ft-check__input { width: 17px; height: 17px; }
.ft-check--checkbox {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}
.ft-check--checkbox > .ft-check__input {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}
.ft-check--checkbox > label {
    display: flex;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: inherit;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.ft-check--checkbox > .ft-choice__hint {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
}
.ft-segmented--radios .ft-check {
    flex: 1;
    min-width: 0;
}
.ft-segmented--radios .ft-check > label {
    min-height: var(--ft-touch-target);
    border-radius: var(--ft-radius-sm);
    cursor: pointer;
}
.ft-segmented--radios input:checked + label {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}
.ft-segmented--radios input:focus-visible + label {
    outline: 3px solid var(--ft-focus);
    outline-offset: 2px;
}
.ft-segmented--radios input:disabled + label {
    cursor: default;
    opacity: .6;
}
.ft-switch { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem .75rem; min-height: var(--ft-touch-target); }
.ft-switch .ft-choice__label { grid-column: 1; grid-row: 1; }
.ft-switch__input { position: absolute; right: 0; width: 44px; height: 28px; opacity: 0; cursor: pointer; }
.ft-switch__track { grid-column: 2; grid-row: 1; display: flex; align-items: center; width: 44px; height: 28px; padding: 3px; border-radius: 14px; background: var(--ft-border); cursor: pointer; transition: background var(--ft-motion-fast); }
.ft-switch__track.is-active { background: var(--ft-primary); }
.ft-switch__thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ft-brand-white); transition: transform var(--ft-motion-fast); }
.ft-switch__track.is-active .ft-switch__thumb { transform: translateX(16px); }
.ft-switch__input:focus-visible + .ft-switch__track { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-switch .ft-choice__hint { grid-column: 1 / -1; }

.ft-nav-item, .ft-nav-subitem { list-style: none; }
.ft-nav-link { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: var(--ft-touch-target); padding: .65rem .85rem; border: 0; border-radius: 9px; background: transparent; color: var(--ft-text-soft); font-size: .875rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.ft-nav-link:hover, .ft-nav-item.is-active > .ft-nav-link { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-nav-link.active, .ft-nav-item.is-active > .ft-nav-link { background: var(--ft-primary); color: var(--ft-on-primary); }
.ft-nav-link.active:hover, .ft-nav-item.is-active > .ft-nav-link:hover { background: var(--ft-primary-hover); color: var(--ft-on-primary); }
.ft-nav-link svg { flex: none; width: 20px; height: 20px; fill: none; }
.ft-nav-link--compact { justify-content: center; padding: .65rem; }
.ft-nav-link--toggle { min-width: 0; gap: .6rem; }
.ft-nav-link--toggle > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-nav-link .ft-nav-link__chevron { margin-left: auto; width: 16px; height: 16px; transition: transform var(--ft-motion-fast); }
.ft-nav-item.is-open .ft-nav-link__chevron { transform: rotate(180deg); }
.ft-nav-submenu { display: grid; gap: 2px; margin: .25rem 0 .45rem 1rem; padding: 0 0 0 .75rem; border-left: 1px solid var(--ft-border); }
.ft-nav-submenu--nested { margin-left: .5rem; }
.ft-nav-subitem__title { padding: .5rem .65rem; color: var(--ft-text-muted); font-size: .75rem; font-weight: 800; }
.ft-nav-subitem__link { display: block; min-height: 40px; padding: .6rem .65rem; border-radius: 8px; color: var(--ft-text-soft); font-size: .8rem; text-decoration: none; }
.ft-nav-subitem__link:hover, .ft-nav-subitem.is-active > .ft-nav-subitem__link { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }

.ft-dialog {
    --ft-dialog-available-height: max(0px, calc(var(--ft-visual-viewport-height, 100dvh) - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    position: fixed;
    top: calc(var(--ft-visual-viewport-top, 0px) + 1rem + env(safe-area-inset-top, 0px));
    bottom: calc(100% - var(--ft-visual-viewport-top, 0px) - var(--ft-visual-viewport-height, 100dvh) + 1rem + env(safe-area-inset-bottom, 0px));
    left: calc(var(--ft-visual-viewport-left, 0px) + env(safe-area-inset-left, 0px));
    right: calc(100% - var(--ft-visual-viewport-left, 0px) - var(--ft-visual-viewport-width, 100vw) + env(safe-area-inset-right, 0px));
    width: min(calc(var(--ft-visual-viewport-width, 100vw) - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), var(--ft-dialog-max-width, 28rem));
    max-width: none;
    max-height: var(--ft-dialog-available-height);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--ft-text);
}
html { scrollbar-gutter: stable; }
html.ft-dialog-open, html.ft-dialog-open body { overflow: hidden; }
.ft-dialog::backdrop { background: var(--ft-layer-scrim); }
.ft-image-viewer-dialog::backdrop { background: var(--bs-black); }
.ft-image-viewer-dialog {
    top: var(--ft-visual-viewport-top, 0px);
    left: var(--ft-visual-viewport-left, 0px);
    right: auto;
    bottom: auto;
    width: var(--ft-visual-viewport-width, 100%);
    height: var(--ft-visual-viewport-height, 100dvh);
    max-height: none;
    margin: 0;
    overflow: hidden;
    background: var(--bs-black);
    color: var(--ft-brand-white);
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.ft-image-viewer {
    height: 100%;
    min-height: 0;
}
.ft-image-viewer__media {
    min-height: 0;
    flex: 1;
    overflow: hidden;
}
.ft-image-viewer__viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}
.ft-image-viewer__viewport--circular {
    width: min(85vw, calc(var(--ft-visual-viewport-height, 100dvh) - 9rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    height: auto;
    max-height: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
}
.ft-image-viewer__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: none;
    cursor: zoom-in;
}
.ft-image-viewer__viewport--circular > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ft-image-viewer__viewport[data-zoomed="true"] img { cursor: grab; }
.ft-image-viewer__viewport[data-zoomed="true"]:active img { cursor: grabbing; }
.ft-image-viewer .ft-button-wrap > .ft-button {
    color: var(--ft-brand-white);
    background: var(--ft-layer-scrim);
}
.ft-image-viewer > :not(.ft-image-viewer__media) { flex: none; }
.ft-image-viewer .ft-button:focus-visible { outline: 2px solid currentColor; }
.ft-image-viewer__controls { flex-wrap: wrap; }
.ft-image-viewer__skeleton { display: none; position: absolute; inset: 0; pointer-events: none; }
.ft-image-viewer__viewport > img[data-ft-image-state="loading"] ~ .ft-image-viewer__skeleton { display: block; }
.ft-profile-cover__empty {
    background: linear-gradient(135deg, var(--ft-primary-soft), var(--ft-accent-soft));
    color: var(--ft-primary-strong);
    min-height: 10rem;
}
[data-ft-media-preview="true"] {
    cursor: zoom-in;
}
[data-ft-media-editable="true"] {
    cursor: pointer;
}
.ft-profile-cover[data-ft-media-preview="true"]:focus-visible,
.ratio[data-ft-media-preview="true"]:focus-visible {
    outline: 3px solid var(--ft-focus);
    outline-offset: 2px;
}
.ft-dialog__box { position: relative; display: flex; flex-direction: column; width: 100%; max-height: min(var(--ft-dialog-available-height), var(--ft-dialog-max-height, 80vh)); overflow: auto; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-lg); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
.ft-dialog__title { flex: none; margin: 0; padding: 1.25rem 3.25rem 1rem 1.25rem; border-bottom: 1px solid var(--ft-border); color: var(--ft-text); font-size: 1.12rem; font-weight: 850; letter-spacing: -.025em; }
.ft-dialog__close { position: absolute; z-index: 2; top: .85rem; right: .85rem; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--ft-field); color: var(--ft-text-muted); cursor: pointer; }
.ft-dialog__close:hover { color: var(--ft-danger-strong); }
.ft-dialog__close svg { width: 19px; height: 19px; fill: none; }
.ft-dialog__form { display: flex; flex-direction: column; min-height: 0; }
.ft-dialog__content { min-height: var(--ft-control-height-md); overflow-y: auto; padding: 1.2rem 1.25rem; overscroll-behavior: contain; }
.ft-dialog__fixed-content { padding: 1rem 1.25rem; }
.ft-dialog__loading { min-height: 130px; }
.ft-dialog__footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex: none; padding: .9rem 1.25rem; border-top: 1px solid var(--ft-border); }
.ft-dialog__footer-left, .ft-dialog__footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ft-dialog__footer-right { margin-left: auto; }
.ft-dialog__confirmation-copy { color: var(--ft-text-soft); font-size: .86rem; line-height: 1.5; }
.ft-dialog__box--action-list .ft-dialog__title { padding: 1.1rem 1.25rem; text-align: center; font-size: 1.06rem; font-weight: 700; letter-spacing: 0; }
.ft-dialog__box--action-list .ft-dialog__content { padding: 0; }
.ft-dialog__box--action-list .ft-dialog__content > [role="alert"] { margin: 0; padding: .85rem 1rem; text-align: center; }
.ft-dialog__action-list { display: block; }
.ft-dialog__action-list > :not(:last-child) { border-bottom: 1px solid var(--ft-border); }
.ft-dialog__action-list > .ft-button-wrap { display: flex; width: 100%; }
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: .75rem 1rem; border: 0; border-radius: 0; background: transparent; color: var(--ft-text); font-size: .86rem; font-weight: 500; line-height: 1.3; text-align: center; }
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action--primary,
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action.ft-button--tone-primary {
    color: var(--ft-primary-strong);
    font-weight: 750;
}
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action.ft-button--tone-secondary {
    color: var(--ft-secondary-strong);
    font-weight: 750;
}
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action.ft-button--tone-tertiary {
    color: var(--ft-tertiary-strong);
    font-weight: 750;
}
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action--danger,
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action.ft-button--tone-error {
    color: var(--ft-danger);
    font-weight: 750;
}
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action:hover:not(:disabled), .ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action:focus-visible { background: var(--ft-field); }
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action:focus-visible { outline: 2px solid var(--ft-primary); outline-offset: -3px; }
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action:disabled { opacity: .5; }
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action,
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action:hover,
.ft-dialog__action-list .ft-button-wrap > .ft-button.ft-dialog__action:focus-visible { text-decoration: none; }
.ft-image-editor-modal { max-height: var(--ft-dialog-available-height); }
.ft-image-editor-modal .ft-dialog__form,
.ft-image-editor-modal .ft-dialog__content { min-width: 0; max-width: 100%; }
.ft-image-editor-modal .ft-dialog__content { padding: 1rem 1.25rem; }
@media (max-width: 650px) {
    .ft-dialog:focus { outline: none; }
    .ft-dialog__box { border-radius: var(--ft-radius-lg); }
    .ft-image-editor-modal .ft-dialog__content { padding: .85rem; }
}


/* =========================================================
   3. DESIGN SYSTEM PATTERNS AND SHELL
   ========================================================= */


/* Product patterns */
/* Product composition: persistent football navigation and responsive page canvas. */
.ft-sidebar {
    position: fixed;
    z-index: 35;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: var(--ft-sidebar-width);
    max-width: calc(100vw - 40px);
    padding: 1.25rem .85rem 2rem;
    overflow-y: auto;
    background: var(--ft-sidebar-surface);
    border-right: 1px solid var(--ft-border);
    scrollbar-width: thin;
}
.ft-sidebar__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .55rem; }
.ft-sidebar__brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ft-primary-strong); font-family: var(--ft-font-primary); font-size: 1.7rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.ft-sidebar__brand-dot { color: var(--ft-accent-strong); }
.ft-sidebar__close { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ft-text); }
.ft-sidebar__close svg { width: 20px; height: 20px; fill: none; }
.ft-sidebar__identity { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .8rem .7rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-field); }
.ft-sidebar__identity strong, .ft-sidebar__identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-sidebar__identity strong { color: var(--ft-text); font-size: .8rem; }
.ft-sidebar__identity span { margin-top: 2px; color: var(--ft-text-muted); font-size: .7rem; }
.ft-sidebar__section-title { margin: 0 0 .45rem; padding: 0 .75rem; color: var(--ft-text-muted); font-size: .67rem; font-weight: 850; letter-spacing: .09em; }
.ft-sidebar__list { display: grid; gap: 2px; margin: 0; padding: 0; }
.ft-sidebar__blocked { display: grid; gap: .6rem; padding: 1rem; border: 1px dashed var(--ft-border); border-radius: var(--ft-radius-md); color: var(--ft-text-soft); font-size: .8rem; }
.ft-sidebar__backdrop { display: none; }
.ft-surface { border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); box-shadow: var(--ft-shadow-card); }
.ft-public-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding: .75rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--ft-border); background: var(--ft-surface); }
.ft-public-header__brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ft-primary-strong); font-family: var(--ft-font-primary); font-size: 1.5rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.ft-public-header__brand-symbol { display: block; width: 30px; height: 32px; flex: none; object-fit: contain; }
.ft-theme-logo--light { display: block; }
.ft-theme-logo--dark { display: none; }
html[data-theme="dark"] .ft-theme-logo--light,
html[data-bs-theme="dark"] .ft-theme-logo--light { display: none; }
html[data-theme="dark"] .ft-theme-logo--dark,
html[data-bs-theme="dark"] .ft-theme-logo--dark { display: block; }
.ft-public-header__signin { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .55rem .9rem; border-radius: var(--ft-radius-sm); background: var(--ft-primary); color: var(--ft-on-primary); font-size: .8rem; font-weight: 800; text-decoration: none; }
.ft-public-header__signin:hover { background: var(--ft-primary-hover); color: var(--ft-on-primary); }
.ft-public-content { max-width: 1320px; min-height: calc(100dvh - 68px); padding: 1.5rem clamp(1rem, 4vw, 3rem) 4rem; }

/* Optional analytics: compact strip, with space only while visible. */
.ft-analytics-banner {
    position: fixed;
    z-index: 35;
    inset: auto 0 0;
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px)) !important;
    background: var(--ft-border);
    color: var(--ft-text);
    border-top: 1px solid var(--ft-border-strong);
}
.ft-analytics-banner[hidden] { display: none !important; }
.ft-analytics-banner p { color: var(--ft-text); font-size: 1rem; line-height: 1.45; }
.ft-analytics-banner [data-analytics-error] { color: var(--ft-danger-strong); }
.ft-analytics-banner__actions .ft-button { min-height: var(--ft-touch-target); font-size: .875rem; white-space: normal; }
.ft-analytics-space { height: var(--ft-analytics-notice-height, 0px); flex-shrink: 0; }
@media (min-width: 992px) {
    .ft-app-shell .ft-analytics-banner { left: var(--ft-sidebar-width); }
    .ft-sidebar-collapsed .ft-app-shell .ft-analytics-banner { left: 0; }
}
@media (max-width: 991.98px) {
    .ft-app-shell .ft-analytics-banner {
        bottom: var(--ft-analytics-bottom-offset, var(--ft-bottom-navigation-space));
        padding-bottom: .5rem !important;
    }
    .ft-app-shell:has(.ft-analytics-banner:not([hidden])) .ft-priority-notice {
        bottom: calc(var(--ft-analytics-bottom-offset, var(--ft-bottom-navigation-space)) + var(--ft-analytics-notice-height, 0px));
    }
}
.ft-startup, .startup-screen { position: fixed; z-index: 2147483000; inset: 0; display: grid; place-content: center; justify-items: center; background: var(--ft-background); color: var(--ft-text); }
.startup-screen { z-index: 2147483647; }
.ft-content {
    width: calc(100% - var(--ft-sidebar-width));
    max-width: var(--ft-page-max-width);
    min-height: calc(100dvh - 68px);
    margin-left: var(--ft-sidebar-width);
    padding: var(--ft-page-padding-top) var(--ft-page-gutter) var(--ft-page-padding-bottom);
    color: var(--ft-text);
}
.ft-content:has(> .ft-main-grid),
.ft-content:has(> section > .ft-main-grid),
.ft-content:has(> .ft-content-area) {
    padding: 0;
}
.ft-app-shell .ft-content:has(> .ft-main-grid),
.ft-app-shell .ft-content:has(> section > .ft-main-grid) {
    max-width: none;
}
.ft-sidebar-collapsed .ft-sidebar { transform: translateX(-100%); }
.ft-sidebar-collapsed .ft-content { width: 100%; margin-left: 0; }
.ft-app-shell .ft-content {
    width: 100%;
    margin-inline: 0;
}
.ft-sidebar-collapsed .ft-app-shell .ft-desktop-sidebar { display: none; }

html[data-theme="dark"] body, html[data-bs-theme="dark"] body { background: radial-gradient(circle at 76% 0, #292757 0, transparent 35rem), var(--ft-background); }
.ft-topbar.is-search-open::before { content: ""; position: absolute; z-index: 1; inset: 0; background: var(--ft-layer-scrim); pointer-events: none; }
.ft-sidebar-collapsed .ft-topbar { margin-left: 0; }
.ft-topbar__leading, .ft-topbar__actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.ft-topbar__actions { margin-left: auto; }
.ft-topbar__brand { display: none; align-items: center; gap: .45rem; color: var(--ft-on-primary); font-family: var(--ft-font-primary); font-size: 1.25rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.ft-topbar__icon-button { display: inline-grid; place-items: center; width: var(--ft-touch-target); height: var(--ft-touch-target); flex: 0 0 auto; border: 0; border-radius: var(--ft-radius-sm); background: transparent; color: var(--ft-on-primary); text-decoration: none; cursor: pointer; }
.ft-topbar__icon-button:hover, .ft-topbar__icon-button:focus-visible { background: var(--ft-primary-hover); color: var(--ft-on-primary); }
.ft-topbar__icon-button svg, .ft-topbar__context svg, .ft-search-field svg { width: 20px; height: 20px; fill: none; }
.ft-topbar__context { display: flex; align-items: center; gap: .6rem; max-width: 170px; min-height: 44px; padding: .25rem .5rem; border: 0; border-radius: var(--ft-radius-sm); background: transparent; color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-topbar__context:hover, .ft-topbar__context:focus-visible { background: var(--ft-field); }
.ft-topbar__context-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-topbar__context span:nth-child(2) { min-width: 0; }
.ft-topbar__context small, .ft-topbar__context strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-topbar__context small { color: var(--ft-text-muted); font-size: .65rem; }
.ft-topbar__context strong { font-size: .75rem; }
.ft-topbar__context > svg:last-child { width: 14px; height: 14px; }
.ft-topbar__search { position: relative; width: min(100%, 530px); margin-inline: auto; }
.ft-search-field__clear, .ft-search-panel__remove, .ft-search-panel__header button { display: grid; place-items: center; border: 0; background: transparent; color: var(--ft-text-muted); cursor: pointer; }
.ft-search-field__clear svg, .ft-search-panel__remove svg { width: 18px; height: 18px; }
.ft-search-panel { position: absolute; z-index: 45; top: calc(100% + .5rem); right: 0; left: 0; max-height: min(70dvh, 600px); overflow-y: auto; padding: .7rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
.ft-search-panel__heading { margin: .75rem .65rem .35rem; color: var(--ft-text-muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ft-search-panel__header, .ft-search-panel__recent { display: flex; align-items: center; justify-content: space-between; }
.ft-search-panel__header button { font-size: .75rem; }
.ft-search-panel__item { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; padding: .55rem .65rem; border-radius: var(--ft-radius-sm); color: var(--ft-text); text-decoration: none; }
.ft-search-panel__item:hover, .ft-search-panel__item:focus-visible { background: var(--ft-field); color: var(--ft-text); }
.ft-search-panel__item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ft-search-panel__copy { display: grid; gap: .1rem; min-width: 0; }
.ft-search-panel__copy strong, .ft-search-panel__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-search-panel__copy strong { font-size: .82rem; }
.ft-search-panel__copy small { color: var(--ft-text-muted); font-size: .73rem; }
.ft-search-panel__state { margin: 0; padding: 1rem; color: var(--ft-text-soft); font-size: .82rem; }
.ft-search-panel__footer { padding: .5rem .25rem .15rem; }
.ft-topbar__dismiss, .ft-topbar__search-dismiss { position: fixed; z-index: 38; inset: 0; width: 100%; border: 0; background: var(--ft-layer-scrim); cursor: default; }
.ft-topbar__search-dismiss { z-index: 39; }
.ft-topbar__mobile-search { display: none; }
.ft-user-menu { position: relative; }
.ft-user-menu__trigger { display: grid; place-items: center; width: var(--ft-touch-target); height: var(--ft-touch-target); padding: 2px; border: 2px solid var(--ft-primary-soft); border-radius: var(--ft-radius-sm); background: var(--ft-surface); color: var(--ft-text); cursor: pointer; }
.ft-user-menu__trigger:hover, .ft-user-menu__trigger:focus-visible { border-color: var(--ft-primary); }
.ft-user-menu__more { transform: rotate(90deg); }
.ft-user-menu__panel { position: absolute; z-index: 50; top: calc(100% + .65rem); right: 0; width: min(320px, calc(100vw - 24px)); padding: .65rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
.ft-user-menu__identity { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .75rem; border-radius: var(--ft-radius-sm); background: var(--ft-field); }
.ft-user-menu__identity > div { min-width: 0; }
.ft-user-menu__identity strong, .ft-user-menu__identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-user-menu__identity strong { color: var(--ft-text); font-size: .85rem; }
.ft-user-menu__identity small { color: var(--ft-text-muted); font-size: .72rem; }
.ft-user-menu__links { display: grid; gap: 2px; padding: .45rem 0; }
.ft-user-menu__links a, .ft-user-menu__action, .ft-user-menu__signout,
.ft-user-menu .ft-button-wrap > .ft-button.ft-button--text.ft-user-menu__action { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 40px; padding: .5rem .7rem; border: 0; border-radius: var(--ft-radius-sm); background: transparent; color: var(--ft-text); font-size: .82rem; font-weight: 650; text-decoration: none; text-align: left; cursor: pointer; }
.ft-user-menu__links a:hover, .ft-user-menu__action:hover,
.ft-user-menu .ft-button-wrap > .ft-button.ft-button--text.ft-user-menu__action:hover { background: var(--ft-field); color: var(--ft-primary-strong); }
.ft-user-menu__signout { border-top: 1px solid var(--ft-border); border-radius: 0; color: var(--ft-danger-strong); }
.ft-user-menu__signout:hover { color: var(--ft-danger); }
.ft-user-menu__action:disabled { opacity: .55; cursor: wait; }
.ft-context-sheet__backdrop { position: fixed; z-index: 1050; inset: 0; background: var(--ft-layer-scrim); }
.ft-context-sheet { position: fixed; z-index: 1051; top: 50%; left: 50%; width: min(480px, calc(100vw - 24px)); max-height: min(80dvh, 640px); overflow-y: auto; padding: 1.25rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-lg); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); transform: translate(-50%, -50%); }
.ft-context-sheet__handle { display: none; }
.ft-context-sheet__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ft-context-sheet__eyebrow { margin: 0 0 .25rem; color: var(--ft-primary-strong); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ft-context-sheet__header h2 { margin: 0; color: var(--ft-text); font-size: 1.2rem; font-weight: 850; letter-spacing: -.03em; }
.ft-context-sheet__close { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: var(--ft-field); color: var(--ft-text-soft); cursor: pointer; }
.ft-context-sheet__close svg { width: 20px; height: 20px; fill: none; }
.ft-context-sheet__list { display: grid; gap: .5rem; }
.ft-creation-list { display: block; }
.ft-creation-action { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 64px; padding: .65rem 1rem; border: 0; border-radius: 0; background: transparent; color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-creation-action:hover, .ft-creation-action:focus-visible { background: var(--ft-field); }
.ft-creation-action:focus-visible { outline: 2px solid var(--ft-primary); outline-offset: -3px; }
.ft-creation-action__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-creation-action__icon svg { width: 22px; height: 22px; fill: none; }
.ft-creation-action__copy { display: grid; gap: .15rem; }
.ft-creation-action__copy strong { font-size: .8rem; }
.ft-creation-action__copy small { color: var(--ft-text-muted); font-size: .72rem; }
.ft-creation-action--cancel { justify-content: center; min-height: 48px; color: var(--ft-text-soft); text-align: center; }

@media (max-width: 991.98px) {
    .ft-app-shell .ft-desktop-sidebar { display: flex; position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); }
    .ft-sidebar-open .ft-app-shell .ft-desktop-sidebar { transform: translateX(0); }
    .ft-sidebar { z-index: 1002; transform: translateX(-100%); transition: transform var(--ft-motion-normal); box-shadow: var(--ft-shadow-card); }
    .ft-sidebar-open .ft-sidebar { transform: translateX(0); }
    .ft-sidebar__close { display: grid; }
    .ft-sidebar-open .ft-sidebar__backdrop { position: fixed; z-index: 1001; inset: 0; display: block; width: 100%; border: 0; background: var(--ft-layer-scrim); }
    .ft-content, .ft-sidebar-collapsed .ft-content {
        width: 100%;
        margin-left: 0;
    }
    .ft-topbar, .ft-sidebar-collapsed .ft-topbar { margin-left: 0; padding: .5rem 1rem; }
    .ft-topbar__brand { display: inline-flex; }
    .ft-topbar__context { display: none; }
    .ft-topbar__search { display: none; }
    .ft-topbar__mobile-search { display: inline-grid; }
    .ft-user-menu__panel {
        max-height: calc(100dvh - 68px - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .ft-context-sheet { top: auto; bottom: 0; left: 0; width: 100%; max-height: min(85dvh, 740px); padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); border-radius: var(--ft-radius-lg) var(--ft-radius-lg) 0 0; transform: none; }
    .ft-context-sheet__handle { display: block; width: 42px; height: 4px; margin: 0 auto 1rem; border-radius: 4px; background: var(--ft-border); }
}


/* =========================================================
   4. PRODUCT COMPONENTS
   ========================================================= */


/* Component foundations */
/* Footeba components: canonical rules. Bootstrap owns generic layout utilities. */
* { box-sizing: border-box; }
svg text { font-family: var(--ft-font-primary); }
input { font: inherit; }
select { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
.ft-mini-crest.large { width: 46px; height: 46px; border-radius: 13px; font-size: 28px; }
.ft-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; font-size: 12px; font-weight: 800; letter-spacing: -.03em; color: var(--ft-brand-ink); }
.ft-avatar-xs { width: 24px; height: 24px; font-size: 8px; }
.ft-avatar-sm { width: 34px; height: 34px; font-size: 10px; }
.ft-avatar-md { width: 46px; height: 46px; }
.ft-icon-button { border: 0; background: transparent; display: grid; place-items: center; width: var(--ft-touch-target); height: var(--ft-touch-target); border-radius: 50%; color: var(--ft-text); }
.ft-icon-button:hover { background: var(--ft-surface-tint); }
.ft-notification-button i { position: absolute; right: 11px; top: 10px; background: var(--ft-primary); width: 7px; height: 7px; border-radius: 50%; border: 1px solid white; }
.ft-button:active { transform: scale(.97); }
.ft-button .ft-app-icon { width: 17px; }
.ft-game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ft-status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 10px; font-weight: 850; letter-spacing: .06em; white-space: nowrap; }
.ft-match-names { display: grid; gap: 2px; }
.ft-match-names strong { font-size: 14px; }
.ft-match-names span { font-size: 12px; color: var(--ft-text-faint); }
.ft-match-score { margin-left: auto; font-size: 18px; letter-spacing: -.04em; white-space: nowrap; }
.ft-game-card-bottom>span { display: flex; align-items: center; gap: 3px; }
.ft-game-card-bottom .ft-app-icon { width: 13px; height: 13px; }
.ft-game-type { color: var(--ft-accent-deep); font-weight: 750; }
.ft-segmented button span { font-size: 10px; margin-left: 4px; }
.ft-search-field input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ft-text); font: inherit; font-size: var(--ft-control-font-size); }
.ft-search-field.large { height: 57px; }
.ft-search-field.large input { font-size: var(--ft-control-font-size); }
.ft-chip-row { display: flex; gap: 8px; overflow: auto; padding: 12px 0 4px; scrollbar-width: none; }
.ft-empty-state h2 { font-size: 23px; }
.ft-empty-state p { font-size: 13px; max-width: 300px; margin: 0 auto 19px; }
.ft-count-badge { background: var(--ft-surface-tint); color: var(--ft-text-label); border-radius: 100px; padding: 6px 11px; font-size: 11px; font-weight: 750; }
.ft-avatar-stack { display: flex; padding-left: 7px; }
.ft-avatar-stack .ft-avatar { margin-left: -7px; border: 3px solid var(--ft-background); }
.form-label { display: grid; gap: 7px; font-size: 11px; font-weight: 800; color: var(--ft-text-label); margin-bottom: 18px; }
.ft-form-tip .ft-app-icon { width: 17px; }
.ft-sheet-handle { display: none; }
.ft-sheet-subtitle { font-size: 12px; margin: 5px 0 15px; }
.ft-sheet-list { display: grid; }
.ft-sheet-list a { display: flex; align-items: center; gap: 12px; min-height: 69px; border-top: 1px solid var(--ft-border); }
.ft-sheet-list a>span:nth-child(2) { flex: 1; }
.ft-sheet-list strong { display: block; font-size: 13px; }
.ft-sheet-list small { display: block; font-size: 11px; color: var(--ft-text-faint); margin-top: 3px; }
.ft-sheet-list a>.ft-app-icon { width: 16px; color: var(--ft-text-faint); }
.ft-sheet-action-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 12px; }
.ft-sheet-action-icon .ft-app-icon { width: 20px; }
.ft-state-panel h2 { margin: 9px 0; }
.ft-state-panel p { max-width: 480px; font-size: 13px; line-height: 1.5; }
.ft-state-panel .ft-empty-icon { margin: 12px 0; }
.ft-state-symbol { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; margin: 14px 0 20px; }
.ft-offline-preview { display: grid; gap: 3px; max-width: 300px; padding: 14px; background: var(--ft-surface-tint); border-radius: 11px; margin: 17px 0; }
.ft-offline-preview strong { font-size: 13px; }
.ft-offline-preview span { font-size: 11px; color: var(--ft-text-faint); }
.ft-offline-preview small { font-size: 11px; color: var(--ft-text-faint); }
.ft-skeleton-card { border: 1px solid var(--ft-border); padding: 16px; border-radius: 14px; margin: 13px 0; }
.ft-skeleton { background: linear-gradient(100deg,var(--ft-surface-tint) 30%,var(--ft-border) 50%,var(--ft-surface-tint) 70%); background-size: 200% 100%; animation: shimmer 1.5s linear infinite; border-radius: 8px; }
.ft-sk-pill { width: 72px; height: 17px; border-radius: 99px; }
.ft-sk-row { height: 31px; width: 70%; margin: 15px 0; }
.ft-sk-line { height: 11px; width: 88%; }
.ft-sk-avatar { width: 52px; height: 52px; border-radius: 50%; }
.ft-sk-cover { height: 120px; width: 100%; }
.ft-sk-title { height: 1.5rem; width: 88%; }
.ft-sk-text { height: 1.25rem; width: 88%; }
.ft-sk-action { height: var(--ft-control-height-md); min-width: 10rem; }
.ft-sk-menu { width: var(--ft-control-height-md); height: var(--ft-control-height-md); flex: none; }
h1:focus { outline: none; }
.ft-empty-icon { margin: 0 auto 15px; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: #D1F6F9; color: var(--ft-accent-strong); }
.ft-state-symbol.success { background: #D1F6F9; color: var(--ft-accent-strong); }
.ft-state-symbol.error { background: var(--ft-danger-soft); color: var(--ft-danger-strong); }
.ft-state-symbol.muted { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-inline-success { border-radius: 11px; padding: 12px 15px; font-size: 12px; font-weight: 700; margin-top: 15px; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-area-select { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; color: var(--ft-text-soft); }
h1 { margin-top: 0; font-size: clamp(32px,4.2vw,50px); font-weight: 800; line-height: 1.05; font-family: var(--ft-font-primary); letter-spacing: -.045em; color: var(--ft-text); }
h2 { margin-top: 0; font-size: clamp(23px,2.4vw,30px); font-weight: 780; line-height: 1.12; font-family: var(--ft-font-primary); letter-spacing: -.045em; color: var(--ft-text); }
h3 { margin-top: 0; font-family: var(--ft-font-primary); letter-spacing: -.045em; color: var(--ft-text); }
p { margin-top: 0; color: var(--ft-text-soft); }
a:focus-visible { outline-color: var(--ft-primary); outline: 3px solid var(--ft-accent-strong); outline-offset: 3px; }
button:focus-visible { outline-color: var(--ft-primary); outline: 3px solid var(--ft-accent-strong); outline-offset: 3px; }
input:focus-visible { outline-color: var(--ft-primary); outline: 3px solid var(--ft-accent-strong); outline-offset: 3px; }
select:focus-visible { outline-color: var(--ft-primary); outline: 3px solid var(--ft-accent-strong); outline-offset: 3px; }
.ft-button--primary:hover { background: var(--ft-primary-hover); color: var(--ft-on-primary); }
.ft-button--outline { background: var(--ft-surface); color: var(--ft-text); border-color: #CBCDD8; }
.ft-button--outline:hover { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-button--soft { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-status-pill.upcoming { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-status-pill.live { background: var(--ft-danger-soft); color: var(--ft-danger-strong); }
.ft-status-pill.finished { background: #EDEEF1; color: var(--ft-text-soft); }
.ft-header-avatar { width: 37px; height: 37px; border: 0; border-radius: 50%; font-size: 11px; font-weight: 800; background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-mini-crest { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 16px; background: var(--ft-primary); color: var(--ft-brand-white); font-family: var(--ft-font-primary); font-weight: 800; }
.ft-team-crest { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 15px; background: var(--ft-primary); color: var(--ft-brand-white); font-family: var(--ft-font-primary); font-weight: 800; }
.ft-crest-cream { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-avatar-primary { background: #DFDDFF; color: var(--ft-primary-strong); }
.ft-avatar-accent { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-avatar-sky { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-avatar-lavender { background: #E7E7F0; color: var(--ft-text); }
.ft-week-calendar-head > div:first-child { display: grid; gap: 2px; }
.ft-week-calendar-head strong { font-size: 14px; text-transform: capitalize; }
.ft-calendar-arrows { display: flex; gap: 5px; }
.ft-calendar-arrows button { display: grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 1px solid var(--ft-border); border-radius: 7px; color: var(--ft-text); }
.ft-calendar-arrows button:hover { background: var(--ft-primary-soft); }
.ft-calendar-arrows .ft-app-icon, .ft-calendar-arrows .ft-icon { width: 15px; height: 15px; }
.ft-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px; gap: 4px; }
.ft-week-day:hover { background: var(--ft-primary-soft); }
.ft-week-day.selected:hover { background: var(--ft-primary); color: var(--ft-brand-white); }
.ft-week-day span { font-size: 10px; text-transform: uppercase; font-weight: 750; }
.ft-week-day strong { font-family: var(--ft-font-primary); font-size: 20px; line-height: 1; }
.ft-week-day i { display: block; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.ft-week-day i.has-match { background: var(--ft-accent-strong); }
.ft-week-day.selected i.has-match { background: var(--ft-accent); }
.ft-day-result { margin-top: 10px; }
.ft-day-empty { min-height: 112px; display: flex; align-items: center; gap: 13px; border: 1px dashed #C8CAD5; border-radius: var(--ft-radius-md); padding: 15px; }
.ft-day-empty-mark { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ft-accent-strong); font-size: 27px; }
.ft-day-empty > div { display: grid; gap: 2px; flex: 1; }
.ft-day-empty strong { font-size: 13px; }
.ft-day-empty span:not(.ft-day-empty-mark) { font-size: 11px; color: var(--ft-text-muted); }
.ft-day-empty a { color: var(--ft-primary-strong); font-weight: 800; font-size: 11px; }
.ft-game-card:hover { transform: translateY(-2px); box-shadow: var(--ft-shadow-card); }
.ft-game-match { display: flex; align-items: center; gap: 13px; padding: 15px 0; }
.ft-game-date { font-size: 11px; font-weight: 680; color: var(--ft-text-muted); }
.ft-game-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ft-surface-tint); padding-top: 13px; font-size: 11px; color: var(--ft-text-muted); }
.ft-crest-large { font-size: 19px; width: 55px; height: 55px; border-radius: 10px; background: var(--ft-primary); color: var(--ft-brand-white); }
.ft-crest-dark { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-segmented { display: inline-flex; align-items: center; padding: 4px; gap: 2px; background: #EDEEF1; border-radius: 8px; }
.ft-segmented button { min-height: 38px; border: 0; background: transparent; padding: 8px 17px; font-size: 12px; font-weight: 750; border-radius: 6px; color: var(--ft-text-soft); }
.ft-segmented button.selected { background: var(--ft-brand-white); color: var(--ft-primary-strong); box-shadow: none; }
.ft-search-field { display: flex; align-items: center; gap: 10px; min-height: 44px; height: 49px; padding: 0 15px; border: 1px solid var(--ft-border-strong); border-radius: 13px; background: var(--ft-surface); color: var(--ft-text); }
.ft-app-input { width: 100%; min-height: 50px; border: 1px solid var(--ft-border-subtle); border-radius: 11px; padding: 0 14px; font-size: var(--ft-control-font-size); font-weight: 500; background-color: var(--ft-surface); background: var(--ft-surface); border-color: var(--ft-border-strong); color: var(--ft-text); }
.ft-search-field input::placeholder { color: var(--ft-text-muted); }
.ft-app-input::placeholder { color: var(--ft-text-muted); }
.ft-search-field:focus-within { outline: 0; border-color: var(--ft-primary); box-shadow: 0 0 0 3px var(--ft-focus-soft); }
.ft-app-input:focus { outline: 0; border-color: var(--ft-primary); box-shadow: 0 0 0 3px var(--ft-focus-soft); }
.ft-chip.active { background: var(--ft-primary); border-color: var(--ft-primary); color: var(--ft-brand-white); }
.ft-chip { background: var(--ft-surface-raised); border: 1px solid var(--ft-border-subtle); border-radius: 999px; padding: 9px 14px; min-height: 38px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ft-text-label); border-color: var(--ft-border); }
.ft-empty-state { text-align: center; background: var(--ft-surface); border: 1px dashed var(--ft-border-subtle); border-radius: 19px; padding: 50px 24px; margin-top: 20px; border-color: var(--ft-border); }
.ft-area-select select { border: 1px solid var(--ft-border); border-radius: 10px; padding: 9px 12px; font-size: var(--ft-control-font-size); min-height: 42px; color: var(--ft-text); background-color: var(--ft-surface); border-color: var(--ft-border-strong); background: var(--ft-surface); }
.ft-form-tip { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 10px; color: var(--ft-accent-deep); font-size: 11px; background: var(--ft-accent-soft); }
.ft-form-error { padding: 12px 14px; border-radius: 10px; background: var(--ft-danger-soft); color: var(--ft-danger-strong); font-size: 12px; font-weight: 650; line-height: 1.45; }
#blazor-error-ui { display: none; padding: 15px; position: fixed; bottom: 0; z-index: 100; width: 100%; font-size: 13px; background: var(--ft-danger-soft); color: var(--ft-danger-strong); }
.ft-sheet-action-icon.primary { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-sheet-action-icon.accent { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-sheet-action-icon.lavender { background: #EAE9F4; color: var(--ft-text); }
html { scroll-behavior: smooth; color-scheme: light; }
body { font-stretch: var(--ft-font-primary-stretch); font-synthesis: var(--ft-font-primary-synthesis); margin: 0; -webkit-font-smoothing: antialiased; color: var(--ft-text); font-family: var(--ft-font-primary); background: radial-gradient(circle at 76% 0, #E1DFFF 0, transparent 34rem), var(--ft-background); }
/* Include native pickers and editable controls generated by third-party components. */
:root :is(input, textarea, select, [contenteditable="true"]) { font-size: var(--ft-control-font-size); }
.ft-button--primary { background: var(--ft-primary); color: var(--ft-on-primary); }
.ft-game-card { position: relative; display: block; width: 100%; overflow: hidden; padding: 19px 20px 15px; border: 1px solid var(--ft-border); border-left: 4px solid var(--ft-primary); border-radius: 7px; background: var(--ft-surface); color: var(--ft-text); text-align: left; box-shadow: none; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.ft-game-card::after { content: ""; position: absolute; width: 74px; height: 74px; right: -42px; top: -42px; border: 2px solid var(--ft-primary-soft); border-radius: 50%; pointer-events: none; }
.ft-game-card .ft-match-score { color: var(--ft-primary-strong); font-family: var(--ft-font-primary); font-size: 21px; }
.ft-week-calendar { background: var(--ft-surface); border: 1px solid var(--ft-border); overflow: hidden; border-radius: 7px; }
.ft-week-calendar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px 11px; border-bottom: 1px solid var(--ft-border); background: var(--ft-primary-soft); }
.ft-week-day { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 66px; background: transparent; border: 0; color: var(--ft-text-soft); border-radius: 5px; }
.ft-week-day.selected { background: var(--ft-primary); color: var(--ft-brand-white); position: relative; box-shadow: inset 0 -3px 0 var(--ft-accent); }
.ft-state-panel { background: var(--ft-surface); border: 1px solid var(--ft-border); padding: 28px; min-height: 380px; border-color: var(--ft-border); border-radius: 7px; }
button { font: inherit; cursor: pointer; box-shadow: none; }
.ft-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 19px;
    border: 1px solid transparent;
    font-size: 13px;
    white-space: nowrap;
    transition: transform .18s,background .18s;
    min-height: var(--ft-control-height-md);
    font-weight: 750;
    border-radius: 7px;
    box-shadow: none;
}
.ft-button--primary:active { transform: none; }
.ft-notification-count { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--ft-accent); border: 2px solid var(--ft-background); color: #18323B; font-size: 8px; font-weight: 900; }
.ft-notification-button { position: relative; }
.ft-notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 13px 0 5px; color: var(--ft-text-muted); font-size: 11px; }
.ft-notification-toolbar button { border: 0; background: transparent; color: var(--ft-primary-strong); font-size: 10px; font-weight: 850; }
.ft-notification-toolbar button:disabled { opacity: .5; cursor: default; }
.ft-action-notification { position: relative; margin-top: 9px; padding: 14px 15px; border: 1px solid var(--ft-border); border-left: 3px solid var(--ft-accent); border-radius: 6px; background: var(--ft-primary-soft); }
.ft-action-notification.is-read { border-left-color: var(--ft-border); background: var(--ft-surface); }
.ft-notification-type { display: block; padding-right: 23px; color: var(--ft-primary-strong); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.ft-notification-dismiss { position: absolute; display: grid; place-items: center; top: 9px; right: 8px; width: 25px; height: 25px; border: 0; border-radius: 3px; background: transparent; color: var(--ft-text-muted); }
.ft-notification-dismiss .ft-app-icon { width: 14px; }
.ft-notification-dismiss:hover { background: var(--ft-surface); color: var(--ft-text); }
.ft-action-notification > strong { display: block; margin: 7px 0 3px; color: var(--ft-text); font-size: 13px; }
.ft-action-notification > p { margin: 0; color: var(--ft-text-soft); font-size: 11px; line-height: 1.4; }
.ft-notification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.ft-notification-actions a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--ft-primary-strong); font-size: 10px; font-weight: 850; }
.ft-notification-actions button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--ft-primary-strong); font-size: 10px; font-weight: 850; }
.ft-notification-actions .ft-app-icon { width: 13px; }
.ft-notification-actions .ft-notification-primary { border: 0; border-radius: 4px; background: var(--ft-primary); color: var(--ft-brand-white); padding: 7px 11px; }
.ft-notification-actions .ft-notification-primary:hover { background: var(--ft-primary-hover); color: var(--ft-brand-white); }
.ft-notification-done { color: var(--ft-accent-strong); font-size: 10px; font-weight: 850; }
.ft-notification-empty { display: grid; justify-items: center; gap: 7px; padding: 35px 15px 24px; text-align: center; }
.ft-notification-empty .ft-app-icon { width: 28px; height: 28px; color: var(--ft-accent-strong); }
.ft-notification-empty strong { font-size: 15px; }
.ft-notification-empty span { color: var(--ft-text-muted); font-size: 11px; }
html[data-theme="dark"] .ft-button--outline { border-color: #59577B; }
html[data-theme="dark"] .ft-button--outline:hover { color: var(--ft-text); }
html[data-theme="dark"] .ft-button--soft { color: var(--ft-text); }
html[data-theme="dark"] .ft-week-calendar { border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-game-card { color: var(--ft-text); }
html[data-theme="dark"] .ft-empty-state { color: var(--ft-text); }
html[data-theme="dark"] .ft-state-panel { color: var(--ft-text); }
html[data-theme="dark"] .ft-week-calendar-head { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-week-day:hover { background: #44416E; }
html[data-theme="dark"] .ft-week-day.selected { background: var(--ft-brand-primary); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-calendar-arrows button { background: var(--ft-surface); border-color: var(--ft-border); }
html[data-theme="dark"] .ft-game-card::after { border-color: #827EFF25; }
html[data-theme="dark"] .ft-game-card .ft-match-score { color: var(--ft-accent); }
html[data-theme="dark"] .ft-game-card-bottom { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-game-date { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-match-names span { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-day-empty { background: var(--ft-surface); border-color: var(--ft-border); color: var(--ft-text); border-style: dashed; }
html[data-theme="dark"] .ft-day-empty-mark { color: var(--ft-accent); }
html[data-theme="dark"] .ft-day-empty a { color: var(--ft-accent); }
html[data-theme="dark"] .ft-status-pill.upcoming { color: var(--ft-text); }
html[data-theme="dark"] .ft-status-pill.finished { background: var(--ft-primary-soft); color: var(--ft-text); }
html[data-theme="dark"] .ft-count-badge { background: var(--ft-primary-soft); color: var(--ft-text); }
html[data-theme="dark"] .ft-segmented { background: #2F2E4C; }
html[data-theme="dark"] .ft-segmented button.selected { background: #4A467D; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-chip { color: var(--ft-text); border-color: var(--ft-border-strong); }
html[data-theme="dark"] .ft-search-field { background: var(--ft-surface-raised); border-color: var(--ft-border-strong); }
html[data-theme="dark"] .ft-app-input { background: var(--ft-surface-raised); border-color: var(--ft-border-strong); }
html[data-theme="dark"] .ft-area-select select { background: var(--ft-surface-raised); border-color: var(--ft-border-strong); }
html[data-theme="dark"] .ft-chip.active { background: var(--ft-brand-primary); color: var(--ft-brand-white); border-color: var(--ft-brand-primary); }
html[data-theme="dark"] .ft-search-field input { background: transparent; }
html[data-theme="dark"] input::placeholder { color: var(--ft-text-muted); }
html[data-theme="dark"] .ft-form-tip { color: var(--ft-text); }
html[data-theme="dark"] .ft-sheet-action-icon.lavender { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
html[data-theme="dark"] .ft-sheet-action-icon.accent { color: var(--ft-accent); }
html[data-theme="dark"] .ft-sheet-list a { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-offline-preview { background: var(--ft-surface-raised); border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-skeleton-card { background: var(--ft-surface-raised); border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-header-avatar { background: #5752A2; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-avatar-primary { background: #5752A2; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-avatar-accent { background: #245761; color: #E4FFFF; }
html[data-theme="dark"] .ft-avatar-lavender { background: #514968; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-avatar-sky { background: #2D5068; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-team-crest { background: var(--ft-brand-primary); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-mini-crest { background: var(--ft-brand-primary); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-crest-cream { background: #24545F; color: #D9FCFF; }
html[data-theme="dark"] .ft-crest-dark { background: #24545F; color: #D9FCFF; }
html[data-theme="dark"] .ft-notification-button:hover { background: var(--ft-hover-surface); color: var(--ft-accent); }
html[data-theme="dark"] .ft-notification-count { border-color: #1C1B33; }
html[data-theme="dark"] .ft-action-notification { background: #302F50; border-color: #535074; border-left-color: var(--ft-accent); }
html[data-theme="dark"] .ft-notification-type { color: var(--ft-accent); }
html[data-theme="dark"] .ft-notification-toolbar button { color: var(--ft-accent); }
html[data-theme="dark"] .ft-notification-dismiss:hover { background: #3A385B; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-notification-actions .ft-notification-primary { background: var(--ft-brand-primary); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-notification-actions .ft-notification-primary:hover { background: #7772FF; }
html[data-theme="dark"] .ft-notification-actions a:not(.ft-notification-primary) { color: var(--ft-accent); }
@media(max-width: 767px) {
  .ft-header-avatar { width: 33px; height: 33px; }
  .ft-game-card { padding: 17px; }
  .ft-game-match { padding: 17px 0; }
  .ft-sheet-handle { display: block; width: 36px; height: 4px; background: var(--ft-border-subtle); border-radius: 99px; margin: 0 auto 18px; }
  .ft-crest-large { width: 48px; height: 48px; font-size: 16px; }
  .ft-area-select { justify-content: space-between; }
  .ft-area-select select { flex: 1; max-width: 190px; }
}
@media(max-width: 380px) {
  .ft-game-date { font-size: 10px; }
  .ft-match-score { font-size: 16px; }
}
@media (max-width: 767px) {
  .ft-week-day { min-height: 58px; }
  .ft-week-day strong { font-size: 18px; }
  .ft-week-day span { font-size: 9px; }
  body { background: var(--ft-background); }
}
@media (max-width: 380px) {
  .ft-week-days { padding: 5px; gap: 1px; }
  .ft-week-day { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Shared controls: forms, layered surfaces and immediate feedback. */
.ft-button--sm {
    min-height: var(--ft-control-height-sm);
    padding: 7px 13px;
    font-size: 12px;
}
.ft-button--danger { background: var(--ft-danger); color: var(--ft-brand-white); }
.ft-button--danger:hover { background: var(--ft-danger-strong); color: var(--ft-brand-white); }
/* Button color semantics are shared by every use of EVariationColor. */
.ft-button--success { background: var(--ft-positive); color: var(--ft-brand-white); }
.ft-button--success:hover { background: var(--ft-positive); color: var(--ft-brand-white); filter: brightness(.92); }
.ft-button--warning { background: var(--ft-warning); color: var(--ft-brand-white); }
.ft-button--warning:hover { background: var(--ft-warning); color: var(--ft-brand-white); filter: brightness(.92); }
.ft-button--accent { background: var(--ft-accent-strong); color: var(--ft-brand-white); }
.ft-button--accent:hover { background: var(--ft-accent-strong); color: var(--ft-brand-white); filter: brightness(.92); }
.ft-button--neutral { background: var(--ft-surface-raised); color: var(--ft-text); border-color: var(--ft-border); }
.ft-button--neutral:hover { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-task-dropdown-list { max-height: 24rem; overflow-x: hidden; }
.ft-task-item-action { min-height: 28px; height: 28px; padding: 0 .625rem; font-size: .625rem; line-height: 1; }
.ft-task-children { border-color: var(--ft-border); border-style: dashed; }
.ft-table-mass-actions { top: 5rem; z-index: 20; }
.ft-pre-wrap { white-space: pre-wrap; }
.ft-example-inspector { background-color: #00000059; border: 1px solid #ffffff26; }
.ft-example-inspector__label { font-size: .75rem; opacity: .7; }
.ft-example-inspector__value { color: var(--ft-brand-white); font: .75rem var(--ft-font-primary); overflow-wrap: anywhere; user-select: all; }
.ft-example-inspector__value--compact { font-size: .6875rem; }
.ft-example-preview { width: 176px; height: 176px; background: repeating-conic-gradient(#ccc 0% 25%, var(--ft-brand-white) 0% 50%) 50% / 16px 16px; }
.ft-log-pre { max-height: 24rem; overflow: auto; }
.ft-feedback { border: 1px solid currentColor; border-radius: var(--ft-radius-sm); color: var(--ft-text); font-size: .875rem; line-height: 1.45; }
.ft-feedback .ft-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ft-feedback--primary { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-feedback--accent { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-feedback--success { background: var(--ft-positive-soft); color: var(--ft-positive); }
.ft-feedback--warning { background: var(--ft-warning-soft); color: var(--ft-warning); }
.ft-feedback--danger { background: var(--ft-danger-soft); color: var(--ft-danger-strong); }
.ft-feedback--neutral { background: var(--ft-field); color: var(--ft-text-soft); }
.ft-autocomplete__menu { max-height: min(20rem, 50vh); overflow-y: auto; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
.ft-autocomplete__menu .list-group-item { border-color: var(--ft-border-subtle); background: var(--ft-surface-raised); color: var(--ft-text); font-size: .875rem; line-height: 1.4; text-align: left; white-space: normal; }
.ft-autocomplete__menu .list-group-item-action:hover, .ft-autocomplete__menu .list-group-item-action:focus-visible { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-autocomplete[data-ft-editing="true"] .ft-search-panel [role="option"] { display: none; }
.ft-autocomplete .ft-search-surface__field input.ft-app-input {
    font-size: max(1rem, 16px);
}
.ft-search-panel .ft-field__error { color: var(--ft-danger); }

/* Shared anchored search: native dialog layering also clears modal/overflow boundaries. */
.ft-search-surface { min-width: 0; }
.ft-search-surface__layer {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--ft-text);
}
.ft-search-surface__layer::backdrop { background: transparent; }
.ft-search-surface__layer:focus { outline: none; }
.ft-search-surface__layer.is-active {
    position: fixed;
    top: var(--ft-search-top);
    left: var(--ft-search-left);
    width: var(--ft-search-width);
    isolation: isolate;
}
.ft-search-surface__layer > .ft-topbar__search-dismiss { display: none; z-index: 0; }
.ft-search-surface__layer.is-active > .ft-topbar__search-dismiss { display: block; }
.ft-search-surface__field { position: relative; z-index: 1; }
.ft-search-surface__field[class*="ft-form-control-wrap--"] {
    height: var(--ft-input-height);
    min-height: var(--ft-input-height);
}
.ft-search-surface__field input.ft-app-input,
.ft-search-surface__field input.ft-app-input:focus {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
}
.ft-search-surface__field:has(.is-invalid) { border-color: var(--ft-danger); }
.ft-search-surface__layer > .ft-search-panel {
    z-index: 2;
    max-height: var(--ft-search-panel-height, 50dvh);
    overscroll-behavior: contain;
}
.ft-search-surface__layer.is-above > .ft-search-panel { top: auto; bottom: calc(100% + .5rem); }
.ft-search-panel button[role="option"] {
    min-height: var(--ft-touch-target);
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
}
.ft-search-panel button[role="option"]:hover,
.ft-search-panel button[role="option"]:focus-visible { background: var(--ft-field); color: var(--ft-text); }
.ft-search-panel button[role="option"] .ft-search-panel__copy strong { white-space: normal; }
.ft-dashboard-tone--primary { color: var(--ft-primary-strong); }
.ft-dashboard-tone--accent { color: var(--ft-accent-strong); }
.ft-dashboard-tone--success { color: var(--ft-positive); }
.ft-dashboard-tone--warning { color: var(--ft-warning); }
.ft-dashboard-tone--danger { color: var(--ft-danger-strong); }
.ft-dashboard-tone--default { color: var(--ft-text); }
.ft-dashboard-tone--soft { color: var(--ft-text-soft); }
.ft-dashboard-tone--white { color: var(--ft-brand-white); }
.ft-dashboard-accent--primary { background: var(--ft-primary); }
.ft-dashboard-accent--accent { background: var(--ft-accent); }
.ft-dashboard-accent--success { background: var(--ft-positive); }
.ft-dashboard-accent--warning { background: var(--ft-warning); }
.ft-dashboard-accent--danger { background: var(--ft-danger); }
.ft-dashboard-accent--neutral { background: var(--ft-border); }
.ft-button[aria-pressed="true"] { background: var(--ft-primary-soft); color: var(--ft-primary-strong); border-color: var(--ft-primary); }
.ft-form-field { display: grid; gap: 7px; }
.ft-form-field > label { display: flex; align-items: center; min-height: 1.5rem; margin: 0; color: var(--ft-text-soft); font-size: 12px; font-weight: 800; }
.ft-form-field > label .ft-field__info { flex-shrink: 0; }
.ft-form-helper { font-size: 12px; line-height: 1.45; color: var(--ft-text-muted); }
.ft-app-input.is-invalid { border-color: var(--ft-danger); }
.ft-app-input:disabled { opacity: .6; cursor: not-allowed; }
.ft-app-input:read-only { background: var(--ft-field); }
.ft-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.ft-overlay-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--ft-layer-scrim); }
.ft-overlay-panel { position: fixed; z-index: 101; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--ft-surface); color: var(--ft-text); border: 1px solid var(--ft-border); box-shadow: var(--ft-shadow-card); padding: 24px; }
.ft-overlay-panel:focus { outline: none; }
.ft-overlay-dialog { top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: var(--ft-radius-lg); }
.ft-overlay-sheet { right: 24px; bottom: 24px; border-radius: var(--ft-radius-lg); }
.ft-overlay-sheet.app-sheet { top: 90px; bottom: auto; width: min(380px, calc(100vw - 50px)); max-height: calc(100dvh - 115px); overflow: auto; }
.ft-overlay-sheet.app-sheet:has(.ft-notification-toolbar) { width: min(420px, calc(100vw - 50px)); }
.ft-overlay-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.ft-overlay-header h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; }
.ft-confirm-description { color: var(--ft-text-soft); line-height: 1.55; margin: 0; }
.ft-toast { position: fixed; right: 20px; bottom: 20px; z-index: 110; max-width: min(380px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: var(--ft-surface-raised); color: var(--ft-text); border: 1px solid var(--ft-border); border-left: 4px solid var(--ft-accent); border-radius: var(--ft-radius-md); box-shadow: var(--ft-shadow-card); font-size: 13px; }
.ft-toast-danger { border-left-color: var(--ft-danger); }
.ft-toast-icon { color: var(--ft-accent-strong); }
.ft-toast-danger .ft-toast-icon { color: var(--ft-danger-strong); }
.ft-toast button { margin-left: auto; border: 0; background: transparent; color: var(--ft-text-muted); }
@media (max-width: 767px) {
  .ft-overlay-sheet { left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - 40px); padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: var(--ft-radius-lg) var(--ft-radius-lg) 0 0; }
  .ft-overlay-sheet.app-sheet, .ft-overlay-sheet.app-sheet:has(.ft-notification-toolbar) { top: auto; bottom: 0; width: 100%; max-height: calc(100dvh - 65px); }
  .ft-toast { left: 16px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: none; }
}


/* =========================================================
   5. PRODUCT PATTERNS
   ========================================================= */


/* Product layouts and patterns */
/* Footeba patterns: canonical rules. Bootstrap owns generic layout utilities. */
.ft-side-nav .ft-app-icon { width: 20px; height: 20px; }
.ft-app-main { min-width: 0; flex: 1; }
.ft-topbar-location .ft-app-icon:last-child { width: 14px; height: 14px; color: var(--ft-text-faint); }
.ft-rail-game { display: flex; align-items: center; gap: 12px; }
.ft-rail-game strong { display: block; font-size: 13px; }
.ft-rail-person strong { display: block; font-size: 13px; }
.ft-rail-game small { display: block; color: var(--ft-text-muted); font-size: 11px; margin-top: 3px; }
.ft-rail-person small { display: block; color: var(--ft-text-muted); font-size: 11px; margin-top: 3px; }
.ft-rail-arrow { margin-left: auto; color: var(--ft-text-faint); }
.ft-rail-link .ft-app-icon { width: 16px; }
.ft-text-link .ft-app-icon { width: 16px; }
.ft-rail-person { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.ft-rail-promo p { font-size: 12px; line-height: 1.5; }
.ft-rail-promo a { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 12px; }
.ft-page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.ft-page-intro h1 { margin: 8px 0 7px; }
.ft-page-intro p { font-size: 14px; margin: 0; }
.ft-section-heading>a .ft-app-icon { width: 16px; }
.ft-section-heading.compact { margin-top: 32px; }
.ft-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 25px 0 18px; }
.ft-outline-icon-button { display: flex; align-items: center; gap: 8px; background: var(--ft-surface-raised); border: 1px solid var(--ft-border); border-radius: 10px; min-height: 44px; padding: 0 14px; font-size: 12px; font-weight: 750; }
.ft-outline-icon-button .ft-app-icon { width: 17px; }
.ft-filter-panel strong { font-size: 12px; }
.ft-back-link .ft-app-icon { width: 16px; }
.ft-detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ft-text-faint); }
.ft-game-info-line>span { display: flex; align-items: center; gap: 6px; }
.ft-game-info-line .ft-app-icon { width: 16px; }
.ft-detail-callout div:first-child { flex: 1; }
.ft-detail-callout strong { font-size: 14px; }
.ft-detail-callout p { font-size: 12px; margin: 4px 0 0; }
.ft-detail-tabs { display: flex; margin-top: 32px; width: 100%; }
.ft-detail-tabs button { flex: 1; }
.ft-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.ft-info-list>div { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--ft-border); padding: 13px 0; }
.ft-info-list small { display: block; font-size: 9px; color: var(--ft-text-faint); font-weight: 850; letter-spacing: .1em; }
.ft-info-list strong { display: block; font-size: 12px; margin-top: 2px; }
.ft-info-list span:not(.ft-info-icon) { display: block; font-size: 11px; color: var(--ft-text-faint); margin-top: 1px; }
.ft-attendance { display: flex; align-items: center; gap: 15px; margin-top: 22px; }
.ft-attendance p { font-size: 11px; margin: 0; line-height: 1.55; }
.ft-attendance p strong { color: var(--ft-text); font-size: 12px; }
.ft-player-list a:last-child { border-bottom: 0; }
.ft-player-list a>span:nth-child(2) { flex: 1; }
.ft-player-list strong { display: block; font-size: 13px; }
.ft-player-list small { display: block; color: var(--ft-text-faint); font-size: 11px; margin-top: 3px; }
.ft-player-list a>.ft-app-icon { color: var(--ft-icon-muted); width: 17px; }
.ft-chat-message { display: flex; gap: 10px; margin: 20px 0; }
.ft-chat-message>div { background: var(--ft-brand-white); padding: 12px 15px; border-radius: 0 14px 14px 14px; }
.ft-chat-message strong { font-size: 12px; }
.ft-chat-message strong small { font-size: 10px; color: var(--ft-icon-muted); margin-left: 5px; }
.ft-chat-message p { font-size: 12px; margin: 6px 0 0; }
.ft-chat-compose { display: flex; gap: 8px; margin-top: 25px; }
.ft-profile-cover:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 75%,#23D2E236,transparent 38%),repeating-linear-gradient(120deg,transparent 0 45px,#FFFFFF06 46px 47px); }
.ft-cover-label { position: absolute; left: 26px; bottom: 21px; color: #E4F9FB; font-size: 10px; letter-spacing: .17em; font-weight: 850; z-index: 1; }
.ft-profile-stats div { display: grid; gap: 2px; }
.ft-team-stats div { display: grid; gap: 2px; }
.ft-team-stats strong { font-size: 24px; letter-spacing: -.05em; }
.ft-profile-team>span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.ft-profile-highlight>div { display: grid; gap: 3px; flex: 1; }
.ft-profile-team small { font-size: 9px; color: var(--ft-text-faint); font-weight: 800; letter-spacing: .08em; }
.ft-profile-highlight small { font-size: 9px; color: var(--ft-text-faint); font-weight: 800; letter-spacing: .08em; }
.ft-profile-team strong { font-size: 13px; }
.ft-profile-highlight strong { font-size: 13px; }
.ft-location-about { font-size: 11px; line-height: 1.55; }
.ft-location-about dt { font-size: 13px; }
.ft-location-about-description { white-space: pre-line; overflow-wrap: anywhere; }
.ft-profile-team span span { font-size: 11px; color: var(--ft-text-faint); }
.ft-profile-highlight span:not(.ft-trophy-circle) { font-size: 11px; color: var(--ft-text-faint); }
.ft-profile-team>.ft-app-icon { width: 16px; color: #5ACAD6; }
.ft-timeline>div { position: relative; margin-bottom: 17px; }
.ft-timeline-dot { position: absolute; left: -25px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ft-background); }
.ft-timeline p { font-size: 12px; margin: 0; }
.ft-timeline strong { display: block; }
.ft-timeline small { display: block; color: var(--ft-text-faint); margin-top: 3px; }
.ft-team-hero-bottom { display: flex; align-items: center; gap: 16px; position: relative; }
.ft-team-stats { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--ft-border); padding: 0 0 22px; margin-top: 23px; }
.ft-team-actions { display: flex; gap: 10px; margin-top: 20px; }
.ft-team-people a { display: grid; justify-items: center; text-align: center; gap: 5px; background: var(--ft-brand-white); border: 1px solid var(--ft-border); border-radius: 15px; padding: 16px 6px; }
.ft-team-people strong { font-size: 11px; }
.ft-team-people small { font-size: 10px; color: var(--ft-text-faint); }
.ft-agenda-summary>div { display: flex; align-items: center; gap: 10px; }
.ft-agenda-summary strong { display: block; font-size: 13px; }
.ft-agenda-summary small { display: block; font-size: 11px; color: var(--ft-text-faint); margin-top: 2px; }
.ft-agenda-legend span { display: flex; align-items: center; gap: 6px; }
.ft-agenda-legend i { width: 9px; height: 9px; border-radius: 3px; }
.ft-slot-close { position: absolute; right: 15px; top: 15px; }
.ft-booking-detail span { font-size: 10px; color: var(--ft-text-faint); font-weight: 800; margin-top: 7px; }
.ft-booking-detail strong { font-size: 14px; }
.ft-create-page { max-width: 680px; margin: auto; }
.ft-create-header h1 { font-size: clamp(30px,4vw,44px); margin: 8px 0; }
.ft-create-header p { font-size: 13px; }
.ft-steps { display: flex; align-items: center; margin: 32px 0 30px; }
.ft-steps>div { flex: 1; height: 1px; background: var(--ft-border-subtle); margin: 0 7px; }
.ft-steps button { display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--ft-icon-muted); }
.ft-steps button span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--ft-border-subtle); font-size: 11px; font-weight: 850; }
.ft-steps small { font-size: 11px; font-weight: 750; }
.ft-step-content h2 { margin: 7px 0; }
.ft-step-content>p { font-size: 13px; margin-bottom: 24px; }
.ft-step-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.ft-create-preview>span:nth-child(2) { display: grid; }
.ft-create-preview small { font-size: 9px; color: var(--ft-text-faint); font-weight: 800; }
.ft-create-preview strong { font-size: 13px; }
.ft-create-preview span span { color: var(--ft-text-faint); font-size: 11px; }
.ft-success-screen { text-align: center; background: var(--ft-surface); border: 1px solid var(--ft-border); border-radius: 20px; padding: 50px 30px; margin-top: 30px; }
.ft-success-mark { display: grid; place-items: center; margin: 0 auto 20px; width: 67px; height: 67px; background: #E4F9FB; color: var(--ft-accent-deep); border-radius: 50%; }
.ft-success-screen .ft-eyebrow { margin-bottom: 10px; }
.ft-success-screen h2 { font-size: 30px; }
.ft-success-screen p { font-size: 13px; max-width: 400px; margin: 0 auto 22px; }
.ft-success-actions { display: flex; justify-content: center; gap: 8px; }
.ft-feed-tabs { margin: 0 0 20px; }
.ft-post-author { display: flex; align-items: center; gap: 10px; padding: 15px 17px; }
.ft-post-author > div:not(.ft-person-avatar):not(.flex-shrink-0) { flex: 1; min-width: 0; }
.ft-post-author strong { display: block; font-size: 13px; }
.ft-post-menu { background: var(--ft-surface-tint); padding: 10px 17px; font-size: 11px; }
.ft-post-actions { display: flex; gap: 18px; padding: 14px 18px 8px; }
.ft-post-actions .ft-app-icon { width: 18px; }
.ft-post-caption { font-size: 13px; line-height: 1.5; margin: 0; padding: 5px 18px; }
.ft-post-caption strong { color: var(--ft-text); }
.ft-post-likes { color: var(--ft-icon-muted); font-size: 10px; padding: 7px 18px 17px; }
.ft-post-comment { border-top: 1px solid var(--ft-border); font-size: 12px; padding: 13px 18px; }
.ft-activity-post h2 { font-size: 20px; margin: 6px 0; }
.ft-activity-post p { font-size: 12px; line-height: 1.5; margin: 0 0 10px; }
.ft-activity-post a .ft-app-icon { width: 15px; }
.ft-discover-chips { margin: 10px 0 22px; }
.ft-discovery-row>span:nth-child(2) { flex: 1; }
.ft-discovery-row strong { display: block; font-size: 13px; }
.ft-discovery-row small { display: block; color: var(--ft-text-faint); font-size: 11px; margin-top: 3px; }
.ft-state-chips { margin: 0 0 16px; }
@keyframes shimmer {to{background-position-x:-200%}}
@keyframes sheet-in {from{transform:translateY(24px);opacity:.5}to{transform:translateY(0);opacity:1}}
.ft-agenda-filters { display: flex; gap: 10px; }
.ft-brand-mark span { color: var(--ft-accent); }
.ft-mobile-brand span { color: var(--ft-accent); }
.ft-section-heading>a { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--ft-primary-strong); }
.ft-activity-post a { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 780; color: var(--ft-primary-strong); }
.ft-discovery-row>.ft-app-icon { width: 16px; color: var(--ft-primary-strong); }
.ft-rail-check { margin-left: auto; font-size: 16px; color: var(--ft-accent-strong); }
.ft-timeline-dot.primary { background: var(--ft-primary); }
.ft-timeline-dot.accent { background: var(--ft-accent); }
.ft-timeline-dot.lavender { background: #9B92EC; }
.ft-activity-post-icon.lavender { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-live-callout { background: var(--ft-danger-soft); }
.ft-post-author small { display: block; font-size: 11px; margin-top: 3px; color: var(--ft-text-soft); }
.ft-team-stats span { font-size: 11px; color: var(--ft-text-soft); }
.ft-cash-score strong { font-family: var(--ft-font-primary); letter-spacing: -.045em; }
.ft-accent-dot { color: var(--ft-accent-strong); }
.ft-app-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; color: currentColor; }
.ft-brand-dot { color: var(--ft-accent-strong); }
.ft-mobile-brand { place-items: center; font-size: 27px; font-weight: 850; letter-spacing: -.08em; width: 38px; height: 38px; line-height: 1; display: none; color: var(--ft-brand-white); position: relative; overflow: hidden; background: var(--ft-primary); border-radius: 10px; }
.ft-brand-mark-field::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 2px solid var(--ft-brand-white); }
.ft-brand-mark-field::after { content: ""; position: absolute; width: 7px; height: 7px; border: 2px solid var(--ft-brand-white); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--ft-primary); }
.ft-side-nav { display: grid; gap: 1px; }
.ft-side-nav a:hover { background: #EEEFFC; color: var(--ft-text); }
.ft-sidebar-bottom a { font-size: 11px; color: var(--ft-primary-strong); display: inline-block; margin-bottom: 12px; }
.ft-sidebar-bottom small { display: block; font-size: 11px; font-weight: 500; padding-left: 16px; margin-top: 3px; color: var(--ft-text-muted); }
.ft-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 100%; margin-right: 5px; background: var(--ft-accent-strong); }
.ft-main-grid {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) clamp(252px, 15vw, 320px);
}
.ft-content-area {
    min-width: 0;
    padding: var(--ft-page-padding-top) var(--ft-page-gutter) var(--ft-page-padding-bottom);
}
.ft-rail-heading { font-size: 10px; font-weight: 850; display: flex; justify-content: space-between; margin-bottom: 22px; color: var(--ft-text-soft); letter-spacing: .14em; }
.ft-rail-heading span { color: var(--ft-primary-strong); }
.ft-rail-link { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 780; margin-top: 22px; color: var(--ft-primary-strong); }
.ft-text-link { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 780; margin-top: 22px; color: var(--ft-primary-strong); }
.ft-rail-divider { height: 1px; margin: 30px 0; background: var(--ft-border); }
.ft-rail-promo strong { display: block; letter-spacing: -.035em; line-height: 1.15; margin: 12px 0; font-family: var(--ft-font-primary); font-size: 22px; }
.ft-rail-promo > span:last-child { color: var(--ft-primary-strong); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.ft-rail-promo .ft-app-icon { width: 15px; }
.ft-home-intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.ft-home-intro h1 { font-size: clamp(36px, 3.6vw, 54px); line-height: .98; font-weight: 850; margin: 11px 0 13px; }
.ft-home-intro h1 em { color: var(--ft-primary); font-style: normal; }
.ft-home-intro p { margin: 0; font-size: 14px; }
.ft-decision-band { display: flex; align-items: center; gap: 18px; background: var(--ft-surface); border: 1px solid var(--ft-border); border-left: 4px solid var(--ft-accent-strong); border-radius: 10px; padding: 14px 18px; margin-top: 12px; }
.ft-decision-number { align-self: center; font-family: var(--ft-font-primary); font-size: 38px; line-height: 1; color: var(--ft-accent-strong); }
.ft-decision-band > div { display: grid; gap: 3px; flex: 1; }
.ft-decision-band strong { font-size: 13px; }
.ft-decision-band small { color: var(--ft-text-muted); font-size: 11px; }
.ft-decision-band .ft-button { min-height: 40px; font-size: 11px; }
.ft-home-lower { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; }
.ft-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 34px 0 15px; }
.ft-section-heading > a { color: var(--ft-primary-strong); font-size: 12px; }
.ft-home-community .ft-section-heading h2 { font-size: 25px; }
.ft-player-list { margin-top: 15px; border: 1px solid var(--ft-border); padding: 3px 18px; background: var(--ft-surface); border-color: var(--ft-border); border-radius: var(--ft-radius-md); box-shadow: none; }
.ft-profile-team { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ft-border); padding: 17px; background: var(--ft-surface); border-color: var(--ft-border); border-radius: var(--ft-radius-md); box-shadow: none; }
.ft-home-cash-link { display: flex; align-items: center; gap: 11px; padding: 13px 3px; border-bottom: 1px solid var(--ft-border); margin-top: 9px; }
.ft-home-cash-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; background: var(--ft-accent-soft); border-radius: 7px; color: var(--ft-accent-strong); font-size: 12px; font-weight: 900; }
.ft-home-cash-link > span:nth-child(2) { flex: 1; }
.ft-home-cash-link strong { display: block; font-size: 12px; }
.ft-home-cash-link small { display: block; color: var(--ft-text-muted); font-size: 10px; margin-top: 2px; }
.ft-home-cash-link > .ft-app-icon { width: 15px; color: var(--ft-primary); }
.ft-back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 750; margin-bottom: 26px; color: var(--ft-text-soft); }
.ft-score-team { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 15px; position: relative; z-index: 1; }
.ft-score-center { text-align: center; position: relative; z-index: 1; }
.ft-score-center strong { display: block; font-size: clamp(35px,5vw,55px); line-height: 1; font-family: var(--ft-font-primary); letter-spacing: -.045em; color: var(--ft-text); }
.ft-score-center span { display: block; font-size: 9px; font-weight: 850; letter-spacing: .12em; margin-top: 10px; color: var(--ft-primary-strong); }
.ft-game-info-line { display: flex; gap: 20px; flex-wrap: wrap; padding: 17px 2px; font-size: 12px; font-weight: 650; border-bottom: 1px solid var(--ft-border); color: var(--ft-text-soft); }
.ft-detail-callout { display: flex; align-items: center; gap: 15px; padding: 18px 20px; margin-top: 16px; background: var(--ft-accent-soft); border-left: 3px solid var(--ft-accent-strong); border-radius: 7px; }
.ft-detail-callout.live-callout { background: var(--ft-danger-soft); border-left-color: var(--ft-danger); }
.ft-pulse-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ft-danger); box-shadow: 0 0 0 7px #FD435025; }
.ft-info-icon { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-info-icon svg.ft-icon--inline { width: 22px; height: 22px; }
.ft-trophy-circle { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; flex: none; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-summary-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-info-list > div { border-color: var(--ft-border); }
.ft-player-list a { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid var(--ft-border); border-color: var(--ft-border); }
.ft-chat-message > div { border: 1px solid var(--ft-border); }
.ft-chat-compose input { flex: 1; min-width: 0; border: 1px solid var(--ft-border); border-radius: 12px; padding: 10px 13px; background: var(--ft-surface); border-color: var(--ft-border-strong); color: var(--ft-text); }
.ft-lineup-pitch::before { content: ""; position: absolute; inset: 25px 15px; border: 2px solid #FFFFFFCE; border-radius: 3px; pointer-events: none; }
.ft-lineup-pitch::after { content: ""; position: absolute; left: 15px; right: 15px; top: 50%; border-top: 2px solid #FFFFFFCE; pointer-events: none; }
.ft-lineup-pitch > .ft-eyebrow { color: var(--ft-accent-strong); position: relative; z-index: 1; }
.ft-pitch-row { display: flex; justify-content: space-around; gap: 10px; position: relative; z-index: 1; }
.ft-pitch-player { display: grid; justify-items: center; gap: 4px; min-width: 48px; }
.ft-pitch-player b { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--ft-primary); color: var(--ft-brand-white); border: 3px solid var(--ft-brand-white); font-size: 10px; }
.ft-pitch-player small { font-size: 10px; font-weight: 800; color: var(--ft-text); }
.ft-steps button.active span { background: var(--ft-primary); border-color: var(--ft-primary); color: var(--ft-brand-white); }
.ft-filter-panel { background: var(--ft-surface); border: 1px solid var(--ft-border); border-radius: 15px; padding: 16px; margin-bottom: 15px; border-color: var(--ft-border); }
.ft-profile-cover::after { background: linear-gradient(90deg, #2B2D4999, transparent 60%); }
.ft-profile-cover .ft-cover-label { top: 26px; bottom: auto; color: var(--ft-brand-white); }
.ft-profile-person-copy h1 { margin: 5px 0 7px; font-size: 38px; }
.ft-profile-person-copy p { max-width: 510px; font-size: 13px; margin-bottom: 10px; }
.ft-profile-person > .ft-button { margin-bottom: 6px; }
.ft-profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-profile-tags span { border: 1px solid #CDD0DB; padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 850; letter-spacing: .05em; }
.ft-sport-group-identity { font-size: .875rem; }
.ft-sport-group-identity div { min-width: 0; max-width: 100%; }
.ft-identity-color,
.ft-profile-tags .ft-identity-color {
    display: inline-block;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 1px solid var(--ft-border-strong);
    border-radius: 50%;
}
.ft-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; padding: 15px 0; border-top: 1px solid var(--ft-border); border-bottom: 1px solid var(--ft-border); }
.ft-profile-stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ft-profile-stats strong { letter-spacing: -.05em; font-family: var(--ft-font-primary); font-size: 27px; }
.ft-profile-stats span { font-size: 11px; color: var(--ft-text-soft); }
.ft-profile-story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 28px; }
.ft-profile-gallery-tile:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-profile-post { background: var(--ft-surface); border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); overflow: hidden; }
.ft-profile-post .ft-post-author { padding: 13px 16px; }
.ft-profile-post .ft-post-author img { object-fit: cover; }
.ft-profile-post > p { margin: 0; padding: 0 16px 14px; font-size: 12px; line-height: 1.55; }
.ft-profile-post-photo { background: var(--ft-primary-soft); height: 215px; }
.ft-profile-post-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 11px; font-weight: 750; }
.ft-profile-post-footer a { color: var(--ft-primary-strong); }
.ft-profile-connections { display: flex; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--ft-border); }
.ft-profile-connections .ft-avatar { margin-left: -5px; border: 2px solid var(--ft-background); }
.ft-profile-connections .ft-avatar:first-child { margin-left: 0; }
.ft-profile-connections small { margin-left: 9px; color: var(--ft-text-soft); font-size: 11px; }
.ft-timeline { border-left: 1px solid #E3E5F2; margin-left: 8px; padding-left: 19px; border-color: #D4D5DC; }
.ft-agenda-page > .ft-week-calendar { margin: 15px 0 24px; }
.ft-agenda-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 13px; margin-top: 18px; }
.ft-selected-day { display: grid; gap: 3px; }
.ft-selected-day strong { font-family: var(--ft-font-primary); font-size: 19px; letter-spacing: -.02em; }
.ft-agenda-legend { display: flex; gap: 17px; font-size: 11px; margin: 16px 0; color: var(--ft-text-soft); }
.ft-legend-free { background: var(--ft-accent-strong); }
.ft-legend-booked { background: var(--ft-primary); }
.ft-legend-current { background: var(--ft-text); }
.ft-agenda-slots { display: grid; gap: 8px; }
.ft-agenda-hour { display: grid; align-items: stretch; grid-template-columns: 51px minmax(0, 1fr); gap: 10px; }
.ft-hour-label { padding-top: 12px; font-weight: 700; color: var(--ft-text); font-family: var(--ft-font-primary); font-size: 15px; }
.ft-slot-grid { display: grid; grid-template-columns: repeat(var(--slot-count), minmax(0, 1fr)); gap: 8px; }
.ft-slot { border: 1px solid transparent; text-align: left; display: grid; align-content: space-between; min-height: 90px; border-radius: 8px; border-width: 1px; padding: 12px; }
.ft-slot.free { background: var(--ft-accent-soft); border-color: #C4ECEF; }
.ft-slot.booked { background: var(--ft-primary-soft); border-color: #DAD8F9; }
.ft-slot:hover { filter: none; border-color: var(--ft-primary); }
.ft-slot-area { font-size: 10px; font-weight: 750; color: var(--ft-text-soft); }
.ft-slot-time { font-size: 10px; color: var(--ft-text-soft); }
.ft-slot strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ft-text); }
.ft-booking-detail { display: grid; gap: 3px; border-top: 1px solid var(--ft-border); padding-top: 15px; border-color: var(--ft-border); }
.ft-cash-score-main { display: grid; align-content: center; gap: 7px; padding: 27px 30px; }
.ft-cash-score-main strong { font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.ft-cash-score-main strong.negative { color: var(--ft-danger-strong); }
.ft-cash-score-main > span:last-child { font-size: 12px; color: var(--ft-text-soft); }
.ft-cash-score-side { display: grid; align-content: center; gap: 5px; padding: 24px; border-left: 1px solid var(--ft-border); }
.ft-cash-score-side > span { font-size: 10px; font-weight: 850; letter-spacing: .11em; color: var(--ft-primary-strong); }
.ft-cash-score-side strong { font-size: 26px; }
.ft-cash-score-side small { color: var(--ft-text-soft); font-size: 11px; }
.ft-cash-progress { height: 7px; background: #E9EAF0; border-radius: 99px; overflow: hidden; margin: 9px 0 3px; }
.ft-cash-progress i { display: block; height: 100%; background: var(--ft-accent-strong); border-radius: inherit; }
.ft-cash-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr); gap: 30px; }
.ft-cash-tabs { margin-bottom: 12px; }
.ft-cash-people { border-top: 1px solid var(--ft-border); }
.ft-cash-person { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--ft-border); }
.ft-cash-person > span:nth-child(2) { flex: 1; min-width: 0; }
.ft-cash-person strong { display: block; font-size: 12px; }
.ft-cash-person small { display: block; color: var(--ft-text-muted); font-size: 10px; margin-top: 3px; }
.ft-cash-status { min-height: 34px; border: 1px solid #D1D2DC; background: var(--ft-surface); border-radius: 7px; padding: 4px 9px; color: var(--ft-primary-strong); font-size: 10px; font-weight: 800; white-space: nowrap; }
.ft-cash-status.paid { background: var(--ft-accent-soft); border-color: transparent; color: var(--ft-accent-strong); }
.ft-cash-movement { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--ft-border); }
.ft-cash-movement-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 6px; flex: none; font-size: 18px; }
.ft-cash-movement-icon.in { color: var(--ft-accent-strong); background: var(--ft-accent-soft); }
.ft-cash-movement-icon.out { color: var(--ft-danger-strong); background: var(--ft-danger-soft); }
.ft-cash-movement > div { flex: 1; }
.ft-cash-movement strong { display: block; font-size: 11px; }
.ft-cash-movement small { display: block; font-size: 10px; color: var(--ft-text-muted); margin-top: 3px; }
.ft-cash-movement b { font-size: 11px; white-space: nowrap; }
.ft-cash-note { margin-top: 21px; padding: 15px; background: var(--ft-accent-soft); border-radius: 7px; }
.ft-cash-note p { font-size: 11px; margin: 7px 0 0; }
.ft-team-hero-pattern { position: absolute; right: 4%; top: -110px; font: 340px var(--ft-font-primary); color: #615DFA12; }
.ft-team-hero .ft-eyebrow { position: relative; color: var(--ft-text); }
.ft-team-hero-bottom h1 { font-size: 33px; margin: 0 0 5px; color: var(--ft-text); }
.ft-team-hero-bottom p { font-size: 12px; margin: 0; color: var(--ft-text-soft); }
.ft-team-people { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; border-color: var(--ft-border); }
.ft-post-actions button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 4px 0; font-size: 12px; font-weight: 700; color: var(--ft-text-soft); }
.ft-activity-post-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 13px; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-create-preview { display: flex; align-items: center; gap: 12px; border-radius: 13px; padding: 13px; background: var(--ft-accent-soft); }
.ft-profile-highlight { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ft-border); padding: 17px; border-color: var(--ft-border); border-radius: var(--ft-radius-md); box-shadow: none; margin-top: 17px; background: var(--ft-accent-soft); }
.ft-steps button.active { color: var(--ft-text); }
.ft-create-page .ft-week-calendar { margin: 18px 0; }
.ft-language-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 1fr); gap: 20px; align-items: center; background: var(--ft-surface); border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); padding: 20px; margin-bottom: 26px; }
.ft-language-board h2 { font-size: 28px; margin: 8px 0; }
.ft-language-board p { font-size: 12px; }
.ft-language-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ft-language-swatches span { position: relative; padding-top: 38px; min-width: 48px; font-size: 10px; font-weight: 800; }
.ft-language-swatches span::before { content: ""; position: absolute; top: 0; left: 0; width: 33px; height: 33px; border: 1px solid var(--ft-border); border-radius: 6px; background: var(--swatch); }
.ft-swatch-primary { --swatch: var(--ft-brand-primary); }
.ft-swatch-accent { --swatch: var(--ft-brand-accent); }
.ft-swatch-ink { --swatch: var(--ft-brand-ink); }
.ft-swatch-danger { --swatch: var(--ft-brand-danger); }
.ft-swatch-white { --swatch: var(--ft-brand-white); }
.ft-app-shell { min-height: 100vh; display: flex; background: transparent; }
.ft-desktop-sidebar { flex: none; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; width: var(--ft-sidebar-width); border-color: var(--ft-border); padding: 25px 16px; background: var(--ft-sidebar-surface); border-right: 1px solid #D8D6F8; }
.ft-brand { display: flex; align-items: center; padding: 3px 12px; font-family: var(--ft-font-primary); gap: 10px; font-weight: 900; margin-bottom: 48px; padding-left: 8px; font-size: 30px; letter-spacing: -.055em; }
.ft-brand-double-o { position: relative; color: var(--ft-primary); }
.ft-brand-double-o::after { content: ""; position: absolute; left: 13%; right: 11%; bottom: 1px; height: 3px; background: var(--ft-accent); border-radius: 2px; }
.ft-mobile-wordmark { display: none; }
.ft-brand-mark { display: grid; place-items: center; font-size: 27px; font-weight: 850; letter-spacing: -.08em; line-height: 1; color: var(--ft-brand-white); position: relative; overflow: hidden; background: var(--ft-primary); width: 38px; height: 38px; border-radius: 7px; transform: rotate(-5deg); box-shadow: 5px 5px 0 var(--ft-brand-accent); }
.ft-brand-mark-field { display: block; width: 20px; height: 25px; border: 2px solid var(--ft-brand-white); border-radius: 2px; position: relative; transform: rotate(5deg); }
.ft-sidebar-label { font-size: 10px; font-weight: 800; letter-spacing: .16em; padding: 0 14px; padding-left: 11px; margin-bottom: 11px; color: #6661A0; }
.ft-side-nav a { display: flex; align-items: center; gap: 13px; min-height: 48px; font-weight: 650; color: #66687F; padding: 10px 11px; font-size: 13px; border-radius: 8px; border-left: 0; margin-bottom: 3px; }
.ft-side-nav a.active { border-left-color: var(--ft-primary); color: var(--ft-brand-white); background: var(--ft-primary); font-weight: 800; }
.ft-side-nav a.active .ft-app-icon { color: var(--ft-accent); }
.ft-side-nav a:hover:not(.active) { background: #DDDAFF; }
.ft-sidebar-bottom { margin-top: auto; border-top: 1px solid var(--ft-border); padding: 20px 10px 0; font-size: 12px; font-weight: 700; color: var(--ft-text); padding-left: 3px; line-height: 1.5; border-color: #CFCDF1; }
.ft-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: clamp(.75rem, 2vw, 2rem); height: var(--ft-topbar-height); min-height: var(--ft-topbar-height); margin-left: var(--ft-sidebar-width); padding: 0 37px; border-bottom: 1px solid #DFDEF2; background: var(--ft-primary); backdrop-filter: none; }
.ft-topbar-location { font-weight: 700; color: var(--ft-text-soft); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.ft-topbar-location .ft-app-icon { width: 17px; height: 17px; display: none; }
.ft-topbar-round { padding: 5px 8px; border: 1px solid #C7C3F9; border-radius: 4px; color: var(--ft-primary-strong); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.ft-theme-toggle { color: var(--ft-primary-strong); border: 1px solid var(--ft-border); background: var(--ft-surface); }
.ft-theme-toggle:hover { background: var(--ft-primary-soft); }
.ft-context-rail {
    position: sticky;
    top: var(--ft-topbar-height);
    align-self: start;
    min-width: 0;
    min-height: 0;
    height: calc(100dvh - var(--ft-topbar-height) - var(--ft-analytics-notice-height, 0px));
    overflow-y: auto;
    overflow-wrap: anywhere;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ft-text-muted) transparent;
    border-left: 1px solid var(--ft-border);
    padding: 40px 23px;
    background: #F7F6FF;
}
.ft-context-rail:focus-visible { outline: 2px solid var(--ft-primary); outline-offset: -2px; }
@supports selector(::-webkit-scrollbar) {
    .ft-context-rail { scrollbar-width: auto; scrollbar-color: auto; }
    .ft-context-rail::-webkit-scrollbar { width: 6px; }
    .ft-context-rail::-webkit-scrollbar-track { background: transparent; }
    .ft-context-rail::-webkit-scrollbar-thumb { border-radius: var(--ft-radius-sm); background: var(--ft-text-muted); }
    .ft-context-rail::-webkit-scrollbar-thumb:hover { background: var(--ft-text-soft); }
    .ft-context-rail::-webkit-scrollbar-button { display: none; }
}
.ft-rail-date { display: grid; place-items: center; width: 55px; height: 55px; font-weight: 850; font-size: 13px; border-radius: 5px; background: var(--ft-primary); color: var(--ft-brand-white); }
.ft-rail-promo { display: block; border-radius: 0; padding: 19px 0 0; margin-top: 24px; background: transparent; border-top: 3px solid var(--ft-accent); }
.ft-eyebrow { display: block; line-height: 1.4; color: var(--ft-primary-strong); font-weight: 800; font-size: 10px; letter-spacing: .13em; }
.ft-section-heading h2 { margin: 5px 0 0; margin-top: 4px; font-size: 30px; }
.ft-bottom-nav {
    display: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    background: var(--ft-surface);
}
.ft-bottom-nav a.active { color: var(--ft-primary); }
.ft-matchday-intro { margin-bottom: 22px; }
.ft-matchday-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ft-primary-strong); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.ft-matchday-kicker-marker { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ft-accent-strong); }
.ft-matchday-kicker-rule { display: block; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.ft-matchday-intro h1 em { color: var(--ft-primary); }
.ft-matchday-intro h1 > span { color: var(--ft-text); font-size: .68em; letter-spacing: -.055em; }
.ft-matchday-intro p { font-size: 13px; }
.ft-fixture-board { display: grid; grid-template-columns: minmax(260px, 37%) minmax(0, 1fr); min-height: 400px; overflow: hidden; background: var(--ft-surface); border: 1px solid #CCC9F4; border-radius: 11px; box-shadow: var(--ft-shadow-card); }
.ft-fixture-pitch { position: relative; overflow: hidden; min-height: 400px; background: radial-gradient(circle at 66% 15%, #827CFF 0, transparent 45%), linear-gradient(140deg, #615DFA, #3E39B5); color: var(--ft-brand-white); }
.ft-fixture-pitch::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -150px; top: -150px; border: 45px solid #23D2E230; }
.ft-pitch-midline { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ft-field-line); }
.ft-pitch-centre { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; border: 2px solid var(--ft-field-line); border-radius: 50%; transform: translate(-50%, -50%); }
.ft-pitch-box { position: absolute; width: 46%; height: 16%; left: 27%; border: 2px solid var(--ft-field-line); }
.ft-pitch-box-top { top: -2px; border-top: 0; }
.ft-pitch-box-bottom { bottom: -2px; border-bottom: 0; }
.ft-pitch-caption > span { font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.ft-fixture-content { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-width: 0; padding: 27px 31px 23px; }
.ft-fixture-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ft-text-muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.ft-fixture-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ft-primary-strong); }
.ft-fixture-live i { width: 8px; height: 8px; display: inline-block; flex: none; border-radius: 50%; background: var(--ft-accent); box-shadow: 0 0 0 3px #23D2E237; }
.ft-locker-live-dot { width: 8px; height: 8px; display: inline-block; flex: none; border-radius: 50%; background: var(--ft-accent); box-shadow: 0 0 0 3px #23D2E237; }
.ft-fixture-heading h2 { color: var(--ft-text); margin: 10px 0 0; font-size: clamp(38px, 4vw, 55px); line-height: .98; font-weight: 850; }
.ft-fixture-heading h2 span { color: var(--ft-primary); }
.ft-fixture-meta { display: grid; grid-template-columns: .75fr 1.2fr 1fr; border-block: 1px solid var(--ft-border); }
.ft-fixture-meta > span { display: grid; grid-template-columns: 18px 1fr; align-content: center; gap: 2px 6px; padding: 15px 12px; min-width: 0; border-right: 1px solid var(--ft-border); }
.ft-fixture-meta > span:first-child { padding-left: 0; }
.ft-fixture-meta > span:last-child { border-right: 0; padding-right: 0; }
.ft-fixture-meta .ft-app-icon { grid-row: 1 / 3; width: 17px; height: 17px; color: var(--ft-primary); margin-top: 1px; }
.ft-fixture-meta strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-fixture-meta small { color: var(--ft-text-muted); font-size: 10px; }
.ft-fixture-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ft-fixture-team { display: flex; align-items: center; min-width: 0; }
.ft-fixture-team .ft-team-crest { width: 30px; height: 30px; border-radius: 4px; border: 2px solid var(--ft-surface); font-size: 9px; }
.ft-fixture-team .ft-team-crest + .ft-team-crest { margin-left: -6px; }
.ft-fixture-team small { color: var(--ft-text-soft); font-size: 10px; margin-left: 9px; }
.ft-fixture-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ft-primary-strong); font-size: 11px; font-weight: 900; }
.ft-fixture-link .ft-app-icon { width: 15px; }
.ft-fixture-confirmation { background: #E0F9FB; border: 1px solid #9EEAF0; border-left: 5px solid var(--ft-accent); border-radius: 7px; }
.ft-fixture-confirmation .ft-decision-number { color: var(--ft-primary); font-size: 28px; font-weight: 900; }
.ft-fixture-confirmation .ft-eyebrow { color: #087F8B; }
.ft-fixture-confirmation .ft-button { white-space: nowrap; }
.ft-locker-post { position: relative; overflow: hidden; background: #4943C8; border: 1px solid #4943C8; border-radius: 8px; color: var(--ft-brand-white); padding: 20px; }
.ft-locker-post::after { content: ""; position: absolute; width: 195px; height: 195px; right: -91px; top: -93px; border: 2px solid #FFFFFF35; border-radius: 50%; pointer-events: none; }
.ft-locker-label { display: flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 900; letter-spacing: .13em; color: #B7F3F7; }
.ft-locker-author { display: flex; align-items: center; gap: 9px; margin: 20px 0 15px; }
.ft-locker-author strong { display: block; font-size: 12px; }
.ft-locker-author small { display: block; color: #D9D7FF; font-size: 10px; margin-top: 2px; }
.ft-locker-post h3 { max-width: 360px; color: var(--ft-brand-white); font-size: clamp(26px, 2.8vw, 36px); line-height: 1; margin: 0 0 10px; }
.ft-locker-post p { max-width: 390px; color: #F3F1FF; font-size: 12px; line-height: 1.5; margin-bottom: 18px; }
.ft-locker-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.ft-locker-actions button { background: var(--ft-accent); border: 0; border-radius: 5px; padding: 9px 12px; color: #24334B; font-size: 11px; font-weight: 900; }
.ft-locker-actions button[aria-pressed=true] { background: var(--ft-brand-white); }
.ft-locker-actions a { display: inline-flex; gap: 5px; align-items: center; color: var(--ft-brand-white); font-size: 11px; font-weight: 800; }
.ft-locker-actions .ft-app-icon { width: 14px; }
.ft-locker-attendance { display: flex; align-items: center; margin-top: 19px; padding-top: 13px; border-top: 1px solid #FFFFFF3C; }
.ft-locker-attendance .ft-avatar { border: 2px solid #4943C8; margin-right: -5px; }
.ft-locker-attendance small { margin-left: 13px; color: #E5E4FF; font-size: 10px; }
.ft-match-memory { display: flex; align-items: center; gap: 13px; margin-top: 10px; padding: 14px 15px; border: 1px solid #CFCCFA; border-radius: 6px; background: var(--ft-primary-soft); }
.ft-memory-score { flex: none; color: var(--ft-primary-strong); font-family: var(--ft-font-primary); font-size: 30px; font-weight: 900; line-height: 1; }
.ft-memory-score span { padding: 0 3px; color: var(--ft-accent-strong); font-size: 15px; }
.ft-match-memory > span:nth-child(2) { flex: 1; min-width: 0; }
.ft-match-memory small { display: block; color: var(--ft-primary-strong); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.ft-match-memory strong { display: block; color: var(--ft-text); font-size: 11px; margin-top: 3px; }
.ft-match-memory .ft-app-icon { width: 15px; color: var(--ft-primary); }
.ft-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 32px 27px; margin-top: 16px; position: relative; overflow: hidden; color: var(--ft-text); border: 1px solid var(--ft-border); border-top: 0; border-left: 5px solid var(--ft-primary); border-radius: 7px; background: linear-gradient(110deg, var(--ft-surface) 60%, var(--ft-primary-soft)); }
.ft-scoreboard::before { content: ""; position: absolute; border: 1px solid #615DFA13; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; width: 210px; height: 210px; border-color: #615DFA24; }
.ft-team-hero { min-height: 230px; position: relative; overflow: hidden; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ft-text); border: 1px solid var(--ft-border); border-top: 0; border-left: 5px solid var(--ft-primary); border-radius: 7px; background: linear-gradient(105deg, var(--ft-surface) 64%, var(--ft-primary-soft)); }
.ft-profile-cover { position: relative; overflow: hidden; height: 215px; background: var(--ft-primary-soft); border-radius: 7px; }
.ft-post { border: 1px solid var(--ft-border); overflow: hidden; margin-bottom: 16px; background: var(--ft-surface); border-color: var(--ft-border); box-shadow: none; border-radius: 7px; }
.ft-activity-post { display: flex; gap: 14px; padding: 21px; background: var(--ft-surface); border: 1px solid var(--ft-border); margin-bottom: 13px; border-color: var(--ft-border); border-radius: 7px; }
.ft-discovery-row { display: flex; align-items: center; gap: 12px; background: var(--ft-surface); border: 1px solid var(--ft-border); padding: 14px; margin: 12px 0; border-color: var(--ft-border); border-radius: 7px; }
.ft-step-content { background: var(--ft-surface); border: 1px solid var(--ft-border); padding: 31px; min-height: 335px; border-color: var(--ft-border); border-radius: 7px; }
.ft-agenda-summary { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ft-border); padding: 15px 18px; background: var(--ft-surface); border-color: var(--ft-border); border-radius: 7px; }
.ft-cash-score { display: grid; grid-template-columns: 1fr minmax(210px, .65fr); background: var(--ft-surface); border: 1px solid var(--ft-border); overflow: hidden; border-radius: 7px; border-top: 0; border-left: 5px solid var(--ft-primary); }
.ft-lineup-pitch { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 16px; min-height: 420px; border: 1px solid #C4ECEF; border-radius: var(--ft-radius-md); padding: 19px 18px 23px; background: #DDF9FB; border-color: #8CE5ED; }
.ft-feed-grid { --ft-feed-column-width: calc(var(--ft-post-feed-width) + 2 * var(--ft-page-gutter)); }
.ft-feed-grid > .ft-feed-page { width: 100%; max-width: var(--ft-feed-column-width); justify-self: center; }
.ft-feed-page .ft-page-intro h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; }
.ft-feed-page .ft-page-intro .ft-accent-dot { color: var(--ft-primary); }
.ft-feed-next-match { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; padding: 15px 18px; background: var(--ft-primary); border-radius: 6px; color: var(--ft-brand-white); }
.ft-feed-next-match > span { display: flex; align-items: center; gap: 8px; color: #D6D4FF; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.ft-feed-next-match > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--ft-accent); }
.ft-feed-next-match strong { color: var(--ft-brand-white); font-family: var(--ft-font-primary); font-size: clamp(20px, 2.3vw, 27px); line-height: 1; }
.ft-feed-next-match strong b { color: var(--ft-accent); }
.ft-feed-next-match small { display: flex; align-items: center; gap: 5px; color: #EDEBFF; font-size: 10px; }
.ft-feed-next-match .ft-app-icon { width: 13px; }
.ft-feed-next-match:hover { color: var(--ft-brand-white); background: var(--ft-primary-hover); }
.ft-feed-page > .ft-feed-next-match strong { font-family: inherit; font-size: 1rem; line-height: 1.4; }
.ft-feed-page > .ft-feed-next-match small { font-size: .75rem; }
.ft-match-post { border-left: 4px solid var(--ft-primary); }
.ft-post-score-art { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 270px; padding: 18px 23px 20px; background: radial-gradient(circle at 80% 20%, #7772FF, transparent 40%), #4E49D7; color: var(--ft-brand-white); }
.ft-post-score-art::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; border: 2px solid #FFFFFF45; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ft-post-score-art::after { content: ""; position: absolute; z-index: -1; inset: 14px; border: 2px solid #FFFFFF30; }
.ft-post-score-art-line { position: absolute; z-index: -1; left: 50%; top: 14px; bottom: 14px; border-left: 2px solid #FFFFFF30; }
.ft-post-score-art > small { color: #D9D6FF; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.ft-post-score-art > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; }
.ft-post-score-art > div > span { font-size: 12px; font-weight: 900; letter-spacing: .07em; line-height: 1.2; }
.ft-post-score-art > div > span:last-child { text-align: right; }
.ft-post-score-art > div strong { white-space: nowrap; font-family: var(--ft-font-primary); font-size: clamp(52px, 7vw, 86px); line-height: .8; letter-spacing: -.09em; }
.ft-post-score-art > div strong i { font-size: .4em; font-style: normal; color: var(--ft-accent); vertical-align: .18em; }
.ft-post-score-art > b { color: var(--ft-brand-white); font-family: var(--ft-font-primary); font-size: 21px; line-height: 1; }
.ft-post-score-corner { position: absolute; right: 22px; bottom: 20px; color: #C6C4FF; font-size: 9px; font-weight: 800; }
.ft-post-score-art:hover { color: var(--ft-brand-white); }
.ft-pitch-surface { position: absolute; height: 83%; top: 10%; transform: rotate(-19deg); border: 2px solid var(--ft-field-line); border-radius: 2px; opacity: .85; width: 74%; right: -7%; }
.ft-field-player { position: absolute; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--ft-brand-white); border-radius: 50%; background: var(--ft-accent); color: #23204A; box-shadow: 0 0 0 5px #23D2E23C; font-size: 9px; font-weight: 900; transform: rotate(19deg); }
.ft-field-player-a { top: 16%; left: 45%; }
.ft-field-player-b { top: 36%; left: 20%; }
.ft-field-player-c { top: 37%; left: 70%; }
.ft-field-player-d { top: 69%; left: 34%; }
.ft-field-player-e { top: 78%; left: 70%; }
.ft-pitch-caption { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; background: linear-gradient(90deg, #3833AFCF 0, #514BD722 78%); pointer-events: none; }
.ft-pitch-caption strong { font-family: var(--ft-font-primary); font-weight: 800; font-size: clamp(72px, 8vw, 112px); letter-spacing: -.09em; line-height: .8; }
.ft-pitch-caption strong span { color: var(--ft-accent); font-size: .42em; letter-spacing: -.05em; }
.ft-pitch-caption > small { font-size: 10px; font-weight: 900; letter-spacing: .15em; color: var(--ft-accent); max-width: 180px; line-height: 1.4; }
.ft-matchday-intro h1 { line-height: .91; margin: 17px 0 15px; letter-spacing: -.062em; font-size: clamp(43px, 5vw, 66px); }
.ft-matchday-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.ft-matchday-shortcuts a { display: flex; align-items: center; min-width: 0; gap: 10px; padding: 12px 13px; background: var(--ft-surface); border: 1px solid var(--ft-border); border-bottom: 2px solid var(--ft-primary); border-radius: 5px; color: var(--ft-text); }
.ft-matchday-shortcuts a:hover { background: var(--ft-primary-soft); color: var(--ft-text); border-color: var(--ft-primary); }
.ft-shortcut-icon { display: grid; place-items: center; flex: none; width: 31px; height: 31px; color: var(--ft-primary); background: var(--ft-primary-soft); border-radius: 4px; }
.ft-shortcut-icon .ft-app-icon { width: 17px; height: 17px; }
.ft-matchday-shortcuts a > span:nth-child(2) { min-width: 0; flex: 1; }
.ft-matchday-shortcuts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ft-matchday-shortcuts small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ft-text-muted); font-size: 9px; margin-top: 2px; }
.ft-matchday-shortcuts a > .ft-app-icon { width: 13px; flex: none; color: var(--ft-primary); }
.ft-nav-create { background: var(--ft-primary); color: var(--ft-brand-white); transform: translateY(-8px); }
html[data-theme="dark"] .ft-desktop-sidebar { background: var(--ft-sidebar-surface); }
html[data-theme="dark"] .ft-sidebar-label { color: #BAB7EF; }
html[data-theme="dark"] .ft-side-nav a { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-side-nav a.active { color: var(--ft-brand-white); background: var(--ft-brand-primary); }
html[data-theme="dark"] .ft-side-nav a:hover:not(.active) { background: #343257; color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-sidebar-bottom { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-topbar { background: var(--ft-primary); }
html[data-theme="dark"] .ft-topbar-round { border-color: #55518B; }
html[data-theme="dark"] .ft-theme-toggle { background: #343254; border-color: #514D85; color: var(--ft-accent); }
html[data-theme="dark"] .ft-context-rail { background: #1E1D37; }
html[data-theme="dark"] .ft-rail-date { background: var(--ft-brand-primary); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-rail-heading { color: var(--ft-accent); }
html[data-theme="dark"] .ft-rail-heading span { color: var(--ft-accent); }
html[data-theme="dark"] .ft-rail-promo { border-color: var(--ft-accent); }
html[data-theme="dark"] .ft-rail-promo p { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-rail-person small { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-sidebar-bottom small { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-eyebrow { color: var(--ft-accent); }
html[data-theme="dark"] .ft-matchday-kicker { color: var(--ft-accent); }
html[data-theme="dark"] .ft-rail-link { color: var(--ft-accent); }
html[data-theme="dark"] .ft-text-link { color: var(--ft-accent); }
html[data-theme="dark"] .ft-section-heading > a { color: var(--ft-accent); }
html[data-theme="dark"] .ft-fixture-board { border-color: #4D4985; }
html[data-theme="dark"] .ft-fixture-pitch { background: radial-gradient(circle at 66% 15%, #6761F0, transparent 45%), linear-gradient(140deg, #514BE3, #302A9F); }
html[data-theme="dark"] .ft-fixture-live { color: var(--ft-accent); }
html[data-theme="dark"] .ft-fixture-meta { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-fixture-meta > span { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-fixture-team .ft-team-crest { border-color: var(--ft-surface); }
html[data-theme="dark"] .ft-fixture-link { color: var(--ft-accent); }
html[data-theme="dark"] .ft-fixture-confirmation { background: #20444E; border-color: #347884; border-left-color: var(--ft-accent); }
html[data-theme="dark"] .ft-fixture-confirmation .ft-eyebrow { color: var(--ft-accent); }
html[data-theme="dark"] .ft-fixture-confirmation .ft-decision-number { color: var(--ft-accent); }
html[data-theme="dark"] .ft-locker-post { background: #3934A4; border-color: #5852C8; }
html[data-theme="dark"] .ft-locker-attendance .ft-avatar { border-color: #3934A4; }
html[data-theme="dark"] .ft-locker-actions button { color: #1B2440; }
html[data-theme="dark"] .ft-match-memory { background: #302E53; border-color: #514D83; }
html[data-theme="dark"] .ft-memory-score { color: var(--ft-accent); }
html[data-theme="dark"] .ft-match-memory small { color: var(--ft-accent); }
html[data-theme="dark"] .ft-post { color: var(--ft-text); }
html[data-theme="dark"] .ft-activity-post { color: var(--ft-text); }
html[data-theme="dark"] .ft-discovery-row { color: var(--ft-text); }
html[data-theme="dark"] .ft-filter-panel { color: var(--ft-text); }
html[data-theme="dark"] .ft-step-content { color: var(--ft-text); }
html[data-theme="dark"] .ft-success-screen { border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-agenda-summary { color: var(--ft-text); }
html[data-theme="dark"] .ft-profile-post { border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-profile-team { color: var(--ft-text); }
html[data-theme="dark"] .ft-profile-highlight { background: var(--ft-surface); color: var(--ft-text); }
html[data-theme="dark"] .ft-player-list { color: var(--ft-text); }
html[data-theme="dark"] .ft-cash-score { border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-language-board { border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-home-cash-link { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-profile-stats { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-team-stats { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-cash-person { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-cash-movement { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-home-cash-icon { color: var(--ft-accent); }
html[data-theme="dark"] .ft-activity-post-icon { color: var(--ft-accent); }
html[data-theme="dark"] .ft-summary-icon { color: var(--ft-accent); }
html[data-theme="dark"] .ft-info-icon { color: var(--ft-accent); }
html[data-theme="dark"] .ft-scoreboard { border-color: var(--ft-border); background: linear-gradient(105deg, var(--ft-surface) 65%, #302E55); border-left-color: #827EFF; }
html[data-theme="dark"] .ft-team-hero { border-color: var(--ft-border); background: linear-gradient(105deg, var(--ft-surface) 65%, #302E55); border-left-color: #827EFF; }
html[data-theme="dark"] .ft-score-team strong { color: var(--ft-text); }
html[data-theme="dark"] .ft-team-hero h1 { color: var(--ft-text); }
html[data-theme="dark"] .ft-score-center span { color: var(--ft-accent); }
html[data-theme="dark"] .ft-team-hero-pattern { color: #827EFF14; }
html[data-theme="dark"] .ft-outline-icon-button { color: var(--ft-text); border-color: var(--ft-border-strong); }
html[data-theme="dark"] .ft-chat-compose input { background: var(--ft-surface-raised); border-color: var(--ft-border-strong); }
html[data-theme="dark"] .ft-detail-callout { color: var(--ft-text); }
html[data-theme="dark"] .ft-create-preview { color: var(--ft-text); }
html[data-theme="dark"] .ft-cash-note { color: var(--ft-text); }
html[data-theme="dark"] .ft-lineup-pitch { background: #1F555F; border-color: #347882; }
html[data-theme="dark"] .ft-pitch-player small { color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-slot.free { background: #1F464F; border-color: #39737E; }
html[data-theme="dark"] .ft-slot.booked { background: #36345A; border-color: #595580; }
html[data-theme="dark"] .ft-slot-area { color: var(--ft-text); }
html[data-theme="dark"] .ft-slot-time { color: var(--ft-text); }
html[data-theme="dark"] .ft-post-menu { background: var(--ft-surface-raised); border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-post-comment { background: var(--ft-surface-raised); border-color: var(--ft-border); color: var(--ft-text); }
html[data-theme="dark"] .ft-cash-status { background: var(--ft-surface-raised); color: var(--ft-accent); border-color: var(--ft-border); }
html[data-theme="dark"] .ft-cash-status.paid { color: var(--ft-accent); }
html[data-theme="dark"] .ft-cash-progress { background: #45435D; }
html[data-theme="dark"] .ft-cash-score-side { border-color: var(--ft-border); }
html[data-theme="dark"] .ft-profile-portrait { border-color: var(--ft-background); }
html[data-theme="dark"] .ft-profile-connections .ft-avatar { border-color: var(--ft-background); }
html[data-theme="dark"] .ft-profile-tags span { border-color: #676480; }
html[data-theme="dark"] .ft-profile-post-footer a { color: var(--ft-accent); }
html[data-theme="dark"] .ft-post-actions button { color: var(--ft-accent); }
html[data-theme="dark"] .ft-bottom-nav { background: #201F3A; border-color: var(--ft-border); box-shadow: 0 -6px 22px #09091B66; }
html[data-theme="dark"] .ft-bottom-nav a { color: var(--ft-text-soft); }
html[data-theme="dark"] .ft-bottom-nav a.active { color: var(--ft-accent); }
html[data-theme="dark"] .ft-nav-create { background: var(--ft-brand-primary); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-feed-next-match:not(.ft-post-context-preview--compact) { background: #4843BB; }
html[data-theme="dark"] .ft-feed-next-match:not(.ft-post-context-preview--compact):hover { background: #5751D2; }
html[data-theme="dark"] .ft-post-score-art { background: radial-gradient(circle at 80% 20%, #625DE3, transparent 40%), #3833A6; }
html[data-theme="dark"] .ft-topbar .ft-icon-button:hover { background: var(--ft-hover-surface); color: var(--ft-brand-white); }
html[data-theme="dark"] .ft-theme-toggle:hover { background: #48456C; color: var(--ft-accent); }
html[data-theme="dark"] .ft-top-search:hover { background: var(--ft-hover-surface); color: var(--ft-accent); }
html[data-theme="dark"] .ft-matchday-shortcuts a { border-color: var(--ft-border); border-bottom-color: var(--ft-accent); }
html[data-theme="dark"] .ft-matchday-shortcuts a:hover { background: #302E51; border-color: var(--ft-accent); }
html[data-theme="dark"] .ft-shortcut-icon { color: var(--ft-accent); }
html[data-theme="dark"] .ft-matchday-shortcuts a > .ft-app-icon { color: var(--ft-accent); }
@media(max-width: 1199px) {
  :root {
    --ft-page-max-width: 980px;
  }
  .ft-content-area {
    max-width: var(--ft-page-max-width);
    width: 100%;
    margin: 0;
  }
  .ft-main-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-context-rail { display: none; }
}
@media(max-width: 767px) {
  :root {
    --ft-page-gutter: 15px;
    --ft-page-padding-top: 24px;
    --ft-page-padding-bottom: calc(101px + env(safe-area-inset-bottom));
  }
  .ft-top-search { display: none; }
  .ft-bottom-nav a .ft-app-icon { width: 21px; height: 21px; }
  .ft-nav-create .ft-app-icon { width: 24px; height: 24px; }
  .ft-page-intro { margin-bottom: 20px; }
  .ft-page-intro .ft-eyebrow { font-size: 10px; }
  .ft-page-intro h1 { font-size: 32px; margin: 7px 0 4px; }
  .ft-page-intro p { font-size: 12px; }
  .ft-home-page .ft-page-intro { margin-bottom: 20px; }
  .ft-section-heading>a { font-size: 11px; }
  .ft-detail-page .ft-back-link { margin-bottom: 20px; }
  .ft-score-center span { font-size: 8px; }
  .ft-game-info-line { font-size: 11px; gap: 10px; }
  .ft-detail-callout { padding: 14px; gap: 9px; }
  .ft-detail-callout .ft-button { font-size: 11px; padding: 8px; }
  .ft-detail-callout strong { font-size: 12px; }
  .ft-detail-callout p { font-size: 10px; }
  .ft-detail-tabs { margin-top: 23px; }
  .ft-detail-tabs button { padding: 8px 7px; font-size: 11px; }
  .ft-detail-columns { grid-template-columns: 1fr; gap: 2px; }
  .ft-team-stats { margin-top: 23px; }
  .ft-team-stats strong { font-size: 20px; }
  .ft-team-hero { min-height: 200px; padding: 20px; }
  .ft-team-hero-bottom h1 { font-size: 27px; }
  .ft-team-people { grid-template-columns: repeat(2,1fr); }
  .ft-step-content { padding: 23px 18px; min-height: 330px; }
  .ft-steps small { font-size: 9px; }
  .ft-create-header h1 { font-size: 31px; }
  .ft-post-actions { gap: 15px; }
  .ft-post-actions button { font-size: 11px; }
  .ft-post-actions button:last-child { font-size: 0; }
  .ft-post-actions button:last-child .ft-app-icon { width: 19px; }
  .ft-agenda-filters { flex-direction: column; }
  .ft-agenda-filters .ft-area-select select { flex: 1; max-width: 190px; }
  .ft-desktop-sidebar { display: none; }
  .ft-mobile-brand { font-size: 25px; display: grid; place-items: center; width: 35px; height: 35px; }
  .ft-bottom-nav a { display: grid; justify-items: center; gap: 3px; min-height: 48px; font-size: 10px; font-weight: 750; color: var(--ft-text-soft); }
  .ft-bottom-nav a.active { color: var(--ft-primary-strong); }
  .ft-nav-create { justify-self: center; display: grid; place-items: center; width: 47px; height: 47px; border: 0; transform: translateY(-9px); background: var(--ft-primary); color: var(--ft-brand-white); border-radius: 10px; }
  .ft-desktop-create { display: none; }
  .ft-section-heading { margin: 32px 0 13px; margin-top: 31px; }
  .ft-scoreboard { gap: 5px; padding: 24px 12px; }
  .ft-score-center strong { font-size: 34px; }
  .ft-score-team { gap: 8px; font-size: 10px; }
  .ft-profile-cover { height: 158px; }
  .ft-profile-stats { margin-top: 19px; }
  .ft-profile-stats strong { font-size: 21px; }
  .ft-agenda-toolbar { flex-direction: column; align-items: stretch; }
  .ft-agenda-hour { grid-template-columns: 43px 1fr; display: block; border-top: 1px solid var(--ft-border); padding-top: 11px; }
  .ft-hour-label { padding: 0 0 7px; font-size: 15px; }
  .ft-slot-grid { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .ft-slot { display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 52px; padding: 8px 10px; }
  .ft-slot-area { font-size: 10px; }
  .ft-slot-time { font-size: 10px; }
  .ft-slot strong { font-size: 11px; }
  .ft-topbar { padding: 0 18px; height: 60px; padding-inline: 16px; background: var(--ft-primary); }
  .ft-topbar-location { margin-right: auto; margin-left: 13px; font-size: 12px; display: none; }
  .ft-topbar-actions { margin-left: auto; gap: 2px; }
  .ft-section-heading h2 { font-size: 25px; }
}
@media(max-width: 380px) {
  :root {
    --ft-page-gutter: 14px;
  }
  .ft-score-team { font-size: 10px; }
}
@media (max-width: 767px) {
  .ft-mobile-brand .ft-brand-mark-field { width: 18px; height: 22px; }
  .ft-home-intro { display: block; margin-bottom: 20px; }
  .ft-home-intro h1 { font-size: clamp(33px, 9vw, 43px); }
  .ft-home-intro p { font-size: 12px; max-width: 320px; }
  .ft-decision-band { display: grid; grid-template-columns: 30px 1fr; gap: 7px 10px; padding: 13px; }
  .ft-decision-band .ft-button { grid-column: 2; justify-self: start; min-height: 38px; }
  .ft-home-lower { grid-template-columns: 1fr; gap: 4px; }
  .ft-profile-story-grid { grid-template-columns: 1fr; gap: 4px; }
  .ft-cash-content { grid-template-columns: 1fr; gap: 4px; }
  .ft-language-board { grid-template-columns: 1fr; gap: 4px; }
  .ft-profile-tags { grid-column: 1 / -1; }
  .ft-profile-person > .ft-button { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
  .ft-profile-stats span { font-size: 10px; }
  .ft-team-actions { flex-wrap: wrap; }
  .ft-team-actions .ft-button { flex: 1 1 auto; }
  .ft-cash-score { grid-template-columns: 1fr; }
  .ft-cash-score-main { padding: 22px; }
  .ft-cash-score-side { border-left: 0; border-top: 1px solid var(--ft-border); padding: 17px 22px; }
  .ft-cash-score-side strong { font-size: 23px; }
  .ft-mobile-wordmark { display: inline-block; margin-left: 12px; color: var(--ft-text); font-family: var(--ft-font-primary); font-size: 23px; font-weight: 900; letter-spacing: -.06em; }
  .ft-topbar-round { font-size: 8px; }
  .ft-theme-toggle { width: 35px; height: 35px; }
  .ft-matchday-intro h1 > span { font-size: .55em; }
  .ft-matchday-intro p { max-width: 315px; }
  .ft-fixture-board { display: block; min-height: 0; }
  .ft-fixture-pitch { min-height: 205px; }
  .ft-pitch-caption { padding: 17px 20px; }
  .ft-fixture-content { padding: 18px; gap: 16px; }
  .ft-fixture-topline { font-size: 9px; }
  .ft-fixture-heading h2 { font-size: 36px; }
  .ft-fixture-meta { grid-template-columns: .8fr 1.2fr; }
  .ft-fixture-meta > span { padding: 12px 6px; }
  .ft-fixture-meta strong { font-size: 10px; }
  .ft-fixture-confirmation { grid-template-columns: 20px 1fr; }
  .ft-decision-number { font-size: 26px; }
  .ft-locker-post { padding: 18px; }
  .ft-locker-post h3 { font-size: 28px; }
  .ft-post-score-art { min-height: 210px; padding: 15px; }
  .ft-post-score-art > div { gap: 4px; }
  .ft-post-score-art > div > span { font-size: 9px; }
  .ft-post-score-art > div strong { font-size: clamp(46px, 14vw, 70px); }
  .ft-post-score-art > b { font-size: 17px; }
  .ft-post-score-corner { display: none; }
  .ft-pitch-surface { height: 118%; top: -8%; width: 72%; right: -3%; }
  .ft-field-player { width: 25px; height: 25px; font-size: 7px; }
  .ft-pitch-caption strong { font-size: 72px; }
  .ft-pitch-caption > small { max-width: 160px; font-size: 8px; }
  .ft-matchday-intro h1 { margin-top: 15px; font-size: clamp(43px, 11vw, 50px); }
  .ft-matchday-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .ft-matchday-shortcuts a { display: grid; justify-items: start; align-content: start; gap: 5px; min-height: 93px; padding: 9px; }
  .ft-matchday-shortcuts a > .ft-app-icon { display: none; }
  .ft-matchday-shortcuts small { white-space: normal; font-size: 8px; line-height: 1.2; }
}
@media (max-width: 380px) {
  .ft-cash-status { font-size: 9px; padding-inline: 6px; }
  .ft-fixture-topline > span:last-child { display: none; }
  .ft-fixture-team small { font-size: 9px; }
  .ft-fixture-link { font-size: 10px; }
  .ft-topbar-round { font-size: 7px; padding-inline: 5px; }
  .ft-matchday-shortcuts strong { font-size: 10px; }
}
@media (max-width: 1020px) {
  .ft-fixture-board { grid-template-columns: 35% 65%; }
  .ft-fixture-content { padding: 22px; }
  .ft-fixture-heading h2 { font-size: clamp(31px, 4vw, 45px); }
  .ft-fixture-meta { grid-template-columns: 1fr 1fr; }
  .ft-fixture-meta > span:nth-child(2) { border-right: 0; }
  .ft-fixture-meta > span:last-child { display: none; }
}
/* Design System laboratory: documentation through working examples. */
.ft-ds-lab-heading h2 { margin: 5px 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 850; }
.ft-ds-lab-heading p { color: var(--ft-text-soft); }
.ft-ds-lab-grid > section { min-width: 0; }
.ft-ds-lab-card { height: 100%; padding: clamp(20px, 3vw, 28px); background: var(--ft-surface); border: 1px solid var(--ft-border); border-radius: var(--ft-radius-lg); }
.ft-ds-lab-card h3 { margin: 8px 0 20px; font-size: 20px; font-weight: 800; }
.ft-ds-lab-card p { color: var(--ft-text-soft); }
.ft-ds-lab-note { margin: 16px 0 0; font-size: 12px; }
.ft-ds-choice-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ft-text); }
.ft-ds-choice-row input { accent-color: var(--ft-primary); width: 17px; height: 17px; }
.ft-ds-lab-card .ft-ds-type-lead { font-size: clamp(26px, 4vw, 38px); font-weight: 850; line-height: 1.1; letter-spacing: -.04em; color: var(--ft-text); }
.ft-ds-type-lead em { color: var(--ft-primary); font-style: normal; }


/* =========================================================
   6. RUNTIME INTEGRATION
   ========================================================= */


/* Application integration */
/* Boundaries between the Footeba design system shell and live Blazor controls. */
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button { display: none; }
.ft-app-shell .ft-topbar__leading { min-width: 0; }
.ft-app-shell .ft-topbar-context { background: transparent; cursor: pointer; }
.ft-app-shell .ft-topbar__search { display: none; }
.ft-app-shell .ft-topbar__search.is-expanded {
    position: absolute;
    z-index: 42;
    top: calc(100% + 8px);
    right: 24px;
    display: block;
    width: min(530px, calc(100vw - 48px));
    margin: 0;
}
.ft-app-shell .ft-topbar__search.is-expanded .ft-search-field { background: var(--ft-surface); box-shadow: var(--ft-shadow-card); }
.ft-app-shell .ft-topbar__actions .ft-topbar-action {
    display: grid;
    place-items: center;
    flex: none;
    width: var(--ft-touch-target);
    height: var(--ft-touch-target);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ft-on-primary);
    cursor: pointer;
}
.ft-app-shell .ft-topbar__actions .ft-topbar-action:hover,
.ft-app-shell .ft-topbar__actions .ft-topbar-action:focus-visible,
.ft-app-shell .ft-topbar__actions .ft-topbar-action[aria-expanded="true"] {
    background: var(--ft-primary-hover);
    color: var(--ft-on-primary);
}
.ft-app-shell .ft-topbar__actions .ft-topbar-action:focus-visible {
    outline: 2px solid var(--ft-accent);
    outline-offset: 2px;
}
.ft-app-shell .ft-topbar__actions .ft-topbar-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
}
.ft-app-shell .ft-topbar__actions .ft-topbar-context-toggle .ft-context-identity__icon {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}
.ft-app-shell .ft-topbar__actions .ft-topbar-context-toggle .ft-context-identity__icon svg {
    width: 20px;
    height: 20px;
}
.ft-app-shell .ft-topbar__actions .ft-user-menu__trigger .ft-person-avatar {
    width: 34px;
    height: 34px;
}
.ft-app-shell .ft-topbar { z-index: 40; margin-left: 0; }
.ft-app-shell .ft-topbar.is-menu-open,
.ft-app-shell .ft-topbar.is-search-open { border-bottom: 0; }
.ft-app-shell .ft-topbar.is-menu-open::before { content: ""; position: absolute; z-index: 1; inset: 0; background: var(--ft-layer-scrim); pointer-events: none; }
.ft-app-shell .ft-topbar.is-menu-open .ft-topbar__actions { position: relative; z-index: 2; }
.ft-app-shell .ft-topbar.is-search-open .ft-topbar__search { z-index: 2; }
.ft-app-shell .ft-sidebar__top { padding: 0; }
.ft-app-shell .ft-sidebar__brand { margin-bottom: 48px; }
.ft-app-shell .ft-sidebar__list { display: block; padding: 0; list-style: none; }
.ft-app-shell .ft-sidebar__list > li { list-style: none; }
.ft-app-shell .ft-sidebar__list a { text-decoration: none; }
.ft-app-shell .ft-sidebar__brand-symbol { display: block; flex: none; width: 34px; height: 38px; object-fit: contain; }
.ft-app-shell .ft-topbar__brand-symbol { display: block; flex: none; width: 25px; height: 28px; object-fit: contain; }
.ft-app-shell .ft-theme-logo--dark { display: none; }
html[data-theme="dark"] .ft-app-shell .ft-theme-logo--light,
html[data-bs-theme="dark"] .ft-app-shell .ft-theme-logo--light { display: none; }
html[data-theme="dark"] .ft-app-shell .ft-theme-logo--dark,
html[data-bs-theme="dark"] .ft-app-shell .ft-theme-logo--dark { display: block; }
.ft-app-shell .ft-desktop-sidebar { position: fixed; top: 0; bottom: 0; left: 0; display: flex; gap: 0; height: 100dvh; overflow-y: auto; }
.ft-app-shell > .ft-app-main { width: calc(100% - var(--ft-sidebar-width)); margin-left: var(--ft-sidebar-width); }
.ft-app-shell .ft-sidebar__backdrop { flex: none; }
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link:hover {
    color: var(--ft-brand-white);
    background: var(--ft-primary);
    font-weight: 800;
}
.ft-app-shell .ft-side-nav a.active .ft-icon,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link .ft-icon {
    color: var(--ft-accent);
}
.ft-app-shell .ft-profile-post-photo:is(img, picture, video) { display: block; width: 100%; height: 215px; object-fit: cover; }
.ft-toast-layer { position: fixed; z-index: 110; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.ft-toast-layer .ft-toast { position: relative; inset: auto; width: 100%; max-width: none; margin: 0; pointer-events: auto; }
.ft-toast-layer .ft-toast-icon { flex: none; width: 20px; height: 20px; }
.ft-toast-layer .ft-toast-message { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.ft-toast-layer .ft-toast-close-button { display: grid; place-items: center; flex: none; width: 26px; height: 26px; padding: 0; border-radius: 4px; cursor: pointer; }
.ft-toast-layer .ft-toast-close-button svg { width: 16px; height: 16px; }
.ft-toast-layer .ft-toast-count { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--ft-primary-soft); color: var(--ft-primary-strong); font-size: 10px; font-weight: 850; }
.ft-toast-layer .ft-toast-warning { border-left-color: var(--ft-primary); }
.ft-toast-layer .ft-toast-warning .ft-toast-icon,
.ft-toast-layer .ft-toast-info .ft-toast-icon { color: var(--ft-primary); }
#user-notifications { scroll-margin-top: 92px; }
@media (max-width: 767px) {
    .ft-toast-layer { right: 16px; left: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); width: auto; }
    .ft-app-shell .ft-topbar { width: 100%; min-width: 0; gap: 0; padding-inline: .5rem; }
    .ft-app-shell .ft-topbar__leading,
    .ft-app-shell .ft-topbar__actions { min-width: 0; gap: 0; }
    .ft-app-shell .ft-topbar__brand-name { display: none; }
}
@media (max-width: 991.98px) {
    .ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button { display: grid; }
    .ft-app-shell > .ft-app-main { width: 100%; margin-left: 0; }
    .ft-app-shell .ft-sidebar__brand { margin-bottom: 0; }
}


/* The application shell has a distinct, coordinated surface in each theme. */
.ft-app-shell {
    --ft-shell-topbar: #d9d7f5;
    --ft-shell-topbar-border: #c7c4e9;
    --ft-shell-topbar-hover: #c8c5ed;
    --ft-shell-context-border: #aaa5df;
    --ft-shell-context-surface: #eeecff;
    --ft-shell-sidebar: var(--ft-shell-topbar);
    --ft-shell-sidebar-text: #42415f;
    --ft-shell-sidebar-muted: #66638e;
    --ft-shell-sidebar-hover: var(--ft-shell-topbar-hover);
    --ft-shell-sidebar-line: var(--ft-shell-topbar-border);
    --ft-shell-brand-text: #323052;
    --ft-shell-topbar-text: #323052;
}
html[data-theme="dark"] .ft-app-shell {
    --ft-shell-topbar: #211f3b;
    --ft-shell-topbar-text: #f0efff;
    --ft-shell-topbar-hover: #343154;
    --ft-shell-context-border: #625d88;
    --ft-shell-context-surface: #ffffff0d;
    --ft-shell-topbar-border: #403d60;
    --ft-shell-sidebar: var(--ft-shell-topbar);
    --ft-shell-sidebar-text: #f0efff;
    --ft-shell-sidebar-muted: #bcb9d8;
    --ft-shell-sidebar-hover: var(--ft-shell-topbar-hover);
    --ft-shell-sidebar-line: var(--ft-shell-topbar-border);
    --ft-shell-brand-text: var(--ft-brand-white);
}
.ft-app-shell .ft-desktop-sidebar {
    background: var(--ft-shell-sidebar);
    border-right: 1px solid var(--ft-shell-sidebar-line);
    scrollbar-color: var(--ft-shell-sidebar-line) transparent;
}
.ft-app-shell .ft-sidebar__brand,
.ft-app-shell .ft-sidebar__brand:hover { color: var(--ft-shell-brand-text); }
.ft-app-shell .ft-sidebar-label { color: var(--ft-shell-sidebar-muted); }
.ft-app-shell .ft-side-nav .ft-nav-link,
.ft-app-shell .ft-side-nav .ft-nav-subitem__link { color: var(--ft-shell-sidebar-text); }
.ft-app-shell .ft-side-nav .ft-nav-link:hover:not(.active),
.ft-app-shell .ft-side-nav .ft-nav-subitem__link:hover {
    background: var(--ft-shell-sidebar-hover);
    color: var(--ft-shell-sidebar-text);
}
.ft-app-shell .ft-side-nav .ft-nav-link.active,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link:hover {
    background: var(--ft-brand-primary);
    color: var(--ft-brand-white);
}
.ft-app-shell .ft-side-nav .ft-nav-submenu { border-left-color: var(--ft-shell-sidebar-line); }
.ft-app-shell .ft-side-nav .ft-nav-subitem__title { color: var(--ft-shell-sidebar-muted); }
.ft-app-shell .ft-side-nav .ft-nav-subitem__link {
    min-height: 38px;
    margin-bottom: 0;
    padding: .55rem .65rem;
    font-size: .78rem;
    font-weight: 600;
}
.ft-app-shell .ft-side-nav .ft-nav-subitem.is-active > .ft-nav-subitem__link {
    background: var(--ft-shell-sidebar-hover);
    color: var(--ft-shell-sidebar-text);
    font-weight: 800;
}
.ft-app-shell .ft-sidebar-bottom {
    border-color: var(--ft-shell-sidebar-line);
    color: var(--ft-shell-sidebar-text);
}
.ft-app-shell .ft-sidebar-bottom small { color: var(--ft-shell-sidebar-muted); }
.ft-app-shell .ft-sidebar__blocked { border-color: var(--ft-shell-sidebar-line); color: var(--ft-shell-sidebar-text); }
.ft-app-shell .ft-sidebar__close { color: var(--ft-shell-sidebar-text); }
.ft-app-shell .ft-sidebar__close:hover { background: var(--ft-shell-sidebar-hover); }
.ft-app-shell .ft-topbar {
    background: var(--ft-shell-topbar);
    border-bottom: 1px solid var(--ft-shell-topbar-border);
    color: var(--ft-shell-topbar-text);
}
.ft-app-shell .ft-topbar__brand,
.ft-app-shell .ft-topbar__brand:hover { color: var(--ft-shell-topbar-text); }
.ft-app-shell .ft-topbar-context {
    min-height: 36px;
    padding: 6px 11px;
    border: 1px solid var(--ft-shell-context-border);
    border-radius: 8px;
    color: var(--ft-shell-topbar-text);
    background: var(--ft-shell-context-surface);
    font-size: 10px;
    letter-spacing: .07em;
}
.ft-app-shell .ft-topbar-context:hover,
.ft-app-shell .ft-topbar-context:focus-visible { background: var(--ft-shell-topbar-hover); color: var(--ft-shell-topbar-text); }
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button,
.ft-app-shell .ft-topbar__actions .ft-topbar-action { color: var(--ft-shell-topbar-text); }
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button:hover,
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button:focus-visible,
.ft-app-shell .ft-topbar__actions .ft-topbar-action:hover,
.ft-app-shell .ft-topbar__actions .ft-topbar-action:focus-visible,
.ft-app-shell .ft-topbar__actions .ft-topbar-action[aria-expanded="true"] {
    background: var(--ft-shell-topbar-hover);
    color: var(--ft-shell-topbar-text);
}
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button:focus-visible,
.ft-app-shell .ft-topbar-context:focus-visible,
.ft-app-shell .ft-side-nav :is(a, button):focus-visible,
.ft-app-shell .ft-sidebar__close:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 2px; }
@media (max-width: 991.98px) {
    .ft-app-shell .ft-bottom-nav a:not(.ft-nav-create) { color: var(--ft-text); }
    .ft-app-shell .ft-bottom-nav a.active:not(.ft-nav-create) { color: var(--ft-primary-strong); }
}
/* Override the older dark product rules with the shell's shared surface. */
html[data-theme="dark"] .ft-app-shell .ft-desktop-sidebar,
html[data-theme="dark"] .ft-app-shell .ft-topbar {
    background: var(--ft-shell-topbar);
}
html[data-theme="dark"] .ft-app-shell .ft-desktop-sidebar { border-right-color: var(--ft-shell-topbar-border); }
html[data-theme="dark"] .ft-app-shell .ft-topbar { border-bottom-color: var(--ft-shell-topbar-border); }
html[data-theme="dark"] .ft-app-shell .ft-sidebar-label,
html[data-theme="dark"] .ft-app-shell .ft-sidebar-bottom small { color: var(--ft-shell-sidebar-muted); }
html[data-theme="dark"] .ft-app-shell .ft-sidebar-bottom { border-color: var(--ft-shell-sidebar-line); }
html[data-theme="dark"] .ft-app-shell .ft-topbar-context { border-color: var(--ft-shell-context-border); }
/* =========================================================
   7. COMPONENT AND PAGE DETAILS
   ========================================================= */


/* Pattern: entity identity labels */
.ft-home-highlight__identity,
.ft-location-link__identity {
    font-size: 1.125rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

/* Page: managed locations — separate cover and profile identity */
.ft-location-card {
    min-width: 0;
    overflow: hidden;
}

.ft-location-logo .ft-person-avatar__image {
    object-fit: contain;
}
.ft-profile-portrait.ft-profile-portrait--square {
    height: auto;
    aspect-ratio: 1;
}

.ft-profile-card__avatar {
    margin-top: calc(var(--ft-avatar-size) * -.5);
}

.ft-location-card__name,
.ft-location-card__address {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ft-location-card__address {
    font-style: normal;
}

/* Component: ActionFlowStep */
.ft-action-flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    color: var(--ft-text);
}

.ft-action-flow-step::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: -18px;
    left: 9.5px;
    width: 1px;
    background: var(--ft-border);
}

.ft-action-flow-step:last-child::before { display: none; }

.ft-action-flow-step-status {
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
}

.ft-action-flow-step-status::after {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ft-border);
}

.ft-action-flow-step.current .ft-action-flow-step-status::after {
    background: var(--ft-primary);
    box-shadow: 0 0 0 4px var(--ft-primary-soft);
}

.ft-action-flow-step.completed .ft-action-flow-step-status::after { display: none; }
.ft-action-flow-step.completed .ft-action-flow-step-status svg { width: 20px; height: 20px; color: var(--ft-accent-strong); fill: none; }

.ft-action-flow-step-header {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.ft-action-flow-step-info { flex: 1; min-width: 0; }
.ft-action-flow-step--compact-summary.completed:not(.current) {
    margin-bottom: .5rem;
    padding-bottom: .5rem;
}
.ft-action-flow-step--compact-summary.completed:not(.current)::before {
    bottom: -.5rem;
}
.ft-action-flow-step-title { margin: 0; font-size: 13px; font-weight: 850; line-height: 20px; }
.ft-action-flow-step-title,
.ft-quick-setup .ft-section-title {
    scroll-margin-top: var(--ft-flow-scroll-offset, 0px);
}
.ft-action-flow-step-description,
.ft-action-flow-step-summary { margin: 0; color: var(--ft-text-muted); font-size: 12px; line-height: 1.45; }

.ft-action-flow-step-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin-top: 16px;
}


/* Guided task headers stay outside the scroll region. */
.ft-reservation-task__header .ft-page-intro,
.ft-management-invite__header .ft-page-intro,
.ft-player-create__header .ft-page-intro {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
.ft-reservation-task__header .ft-page-intro h1,
.ft-management-invite__header .ft-page-intro h1,
.ft-player-create__header .ft-page-intro h1 {
        overflow-wrap: anywhere;
}
/* Pilot: LocationReservation/Hub. Short fields keep their content-sized measure. */
.ft-reservation-task .ft-reservation-choice {
    font: inherit;
}
.ft-reservation-task .ft-reservation-choice > div {
    min-width: 0;
    flex: 1;
}
.ft-reservation-sheet {
    container-type: inline-size;
}
.ft-reservation-sheet__copy {
    min-width: 0;
    overflow-wrap: anywhere;
}
.ft-reservation-sheet__location {
    border-top: 1px solid var(--ft-border);
}
.ft-reservation-sheet__note {
    white-space: pre-wrap;
}
.ft-reservation-sheet__when {
    border: 1px solid var(--ft-primary-soft);
    background: linear-gradient(135deg, var(--ft-primary-soft), var(--ft-surface));
}
.ft-reservation-sheet__calendar {
    width: 4.25rem;
    background: var(--ft-surface);
    color: var(--ft-text);
    box-shadow: var(--ft-shadow-card);
}
.ft-reservation-sheet__month {
    background: var(--ft-primary);
    color: var(--ft-on-primary);
    font-size: .75rem;
    letter-spacing: .08em;
}
.ft-reservation-sheet__time {
    color: var(--ft-primary-strong);
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
}
.ft-reservation-sheet__costs {
    --bs-primary-bg-subtle: var(--ft-primary-soft);
    --bs-primary-text-emphasis: var(--ft-primary-strong);
    --bs-tertiary-bg: var(--ft-surface-tint);
}
.ft-reservation-sheet__amounts dd {
    font-variant-numeric: tabular-nums;
}
@container (min-width: 480px) {
    .ft-reservation-sheet__amounts:has(> div:nth-child(2)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.ft-profile-cover--slim {
    position: relative;
    height: var(--ft-cover-slim-height);
    background: var(--ft-primary-soft);
}
@container (min-width: 600px) {
    .ft-reservation-sheet__when {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
        .ft-reservation-sheet__when .ft-reservation-sheet__where {
            margin-top: 0 !important;
            padding-top: 0 !important;
            border-top: 0 !important;
            max-width: 50%;
        }
    .ft-reservation-sheet__identities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ft-reservation-sheet__location {
        border-top: 0;
        border-left: 1px solid var(--ft-border);
    }
}

.ft-reservation-pilot-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
}
.ft-reservation-pilot-main {
    min-width: 0;
}
.ft-reservation-field--short {
    width: 9rem;
    max-width: 100%;
}

/* Component: Button */
.ft-button-wrap {
    position: relative;
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    vertical-align: middle;
}
.ft-button-wrap--full { display: flex; width: 100%; }
.ft-button-wrap > .ft-button {
    --ft-button-icon-size: 17px;
    position: relative;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    cursor: pointer;
}
.ft-button__content {
    display: inline-flex;
    flex: 1;
    align-self: stretch;
    align-items: inherit;
    justify-content: inherit;
    flex-direction: inherit;
    gap: inherit;
    min-width: 0;
    max-width: 100%;
}
.ft-button__content--custom { display: grid; grid-template-columns: minmax(0, 1fr); }
.ft-button__content--custom:has(> .ft-button__loading),
.ft-button__content--custom:has(> .ft-button__icon) { grid-template-columns: auto minmax(0, 1fr); }
.ft-button__custom-content {
    display: inline-flex;
    align-items: inherit;
    justify-content: inherit;
    flex-direction: inherit;
    gap: inherit;
    min-width: 0;
    max-width: 100%;
}
.ft-button__loading { width: var(--ft-button-icon-size); height: var(--ft-button-icon-size); min-height: 0; align-self: center; color: inherit; outline: 1px solid currentColor; outline-offset: -1px; pointer-events: none; }
.ft-button__loading .ft-loading__symbol { width: 100%; }
.ft-button__text {
    min-width: 0;
    text-box: trim-both cap alphabetic;
    overflow-wrap: anywhere;
}
.ft-button-wrap > .ft-button:focus-visible { outline: 3px solid var(--ft-focus-soft); outline-offset: 2px; }
.ft-button-wrap > .ft-button.ft-button--text {
    min-height: var(--ft-touch-target);
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: var(--ft-primary-strong);
    text-align: left;
}
.ft-button-wrap > .ft-button.ft-button--text:hover,
.ft-button-wrap > .ft-button.ft-button--text:focus-visible {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.ft-button-wrap > .ft-button.ft-button--text:focus-visible {
    outline-color: var(--ft-primary);
}
.ft-button-wrap > .ft-button.ft-profile-slug {
    font: inherit;
    letter-spacing: inherit;
    color: var(--ft-tertiary-strong);
    overflow-wrap: anywhere;
    text-align: inherit;
}
.ft-button-wrap > .ft-button.ft-profile-slug,
.ft-button-wrap > .ft-button.ft-profile-slug:hover,
.ft-button-wrap > .ft-button.ft-profile-slug:focus-visible {
    text-decoration: none;
}
.ft-profile-slug-line {
    font-size: .8125rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.ft-profile-slug-line .ft-button-wrap {
    max-width: 100%;
}
.ft-location-contacts > span { min-width: 0; }
.ft-location-contact-separator { white-space: pre; }
.ft-profile-person-copy.ft-profile-person-copy--compact h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.ft-profile-counts:has(> :nth-child(3)) {
    container: ft-profile-counts / inline-size;
}
.ft-profile-counts .ft-button-wrap {
    max-width: 100%;
}
.ft-profile-counts .ft-button-wrap > .ft-button.ft-profile-count,
.ft-profile-counts > .ft-profile-count {
    font-size: .875rem;
    font-weight: 400;
    color: var(--ft-text-soft);
    white-space: nowrap;
    text-decoration: none;
}
.ft-profile-counts > .ft-profile-count {
    min-height: var(--ft-touch-target);
}
.ft-profile-counts > .ft-profile-count:focus-visible {
    outline: 3px solid var(--ft-primary);
    outline-offset: 2px;
}
.ft-profile-count strong {
    color: var(--ft-text);
    font-weight: 750;
}
.ft-profile-counts .ft-button-wrap > .ft-button.ft-profile-count:hover,
.ft-profile-counts .ft-button-wrap > .ft-button.ft-profile-count:focus-visible {
    color: var(--ft-primary-strong);
    text-decoration: none;
}
.ft-profile-count:hover strong,
.ft-profile-count:focus-visible strong {
    color: inherit;
}
@media (max-width: 575.98px) {
    .ft-profile-person-copy--compact .ft-profile-counts {
        justify-content: center;
    }
}
@container ft-profile-counts (max-width: 24rem) {
    .ft-profile-counts > .ft-button-wrap,
    .ft-profile-counts > .ft-profile-count {
        flex: 1 0 auto;
    }
    .ft-profile-counts .ft-button-wrap > .ft-button.ft-profile-count,
    .ft-profile-counts > .ft-profile-count {
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
}
.ft-button-wrap > .ft-button:disabled, .ft-button-wrap > .ft-button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.ft-button-wrap > .ft-button[aria-busy="true"] { opacity: 1; cursor: wait; }
.ft-button-wrap > .ft-button svg:not(.ft-loading__symbol) { width: var(--ft-button-icon-size); height: var(--ft-button-icon-size); flex: none; fill: none; }
.ft-button-wrap > .ft-button.ft-button--icon-md .ft-button__icon { width: 20px; height: 20px; }
.ft-button-wrap > .ft-button.ft-button--icon-lg .ft-button__icon { width: 24px; height: 24px; }
.ft-button-wrap > .ft-button.ft-button--icon-only {
    width: var(--ft-control-height-md);
    height: var(--ft-control-height-md);
    min-height: var(--ft-control-height-md);
    padding: 0;
}
.ft-button-wrap > .ft-button.ft-button--circle { border-radius: 50%; }
.ft-button-wrap > .ft-button.ft-button--square { border-radius: 7px; }
.ft-button-wrap > .ft-button.ft-button--bordered { border-color: var(--ft-border); }
.ft-button-wrap > .ft-button.ft-button--joined { border-radius: 0; }
.ft-button-wrap > .ft-button.ft-button--compact { min-height: 36px; padding: 6px 10px; }
.ft-button-wrap > .ft-button.ft-button--lg {
    min-height: var(--ft-control-height-lg);
}
.ft-button-wrap > .ft-button.ft-button--xl {
    min-height: var(--ft-control-height-xl);
}
.ft-button-wrap > .ft-button.ft-button--compact-mobile {
    min-height: var(--ft-control-height-md);
}

@media (max-width: 767.98px) {
    .ft-button-wrap > .ft-button.ft-button--compact-mobile {
        min-width: var(--ft-control-height-md);
        padding: 0;
    }
}

.ft-button__badge { position: absolute; z-index: 1; right: -6px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--ft-surface); border-radius: 10px; background: var(--ft-danger); color: var(--ft-brand-white); font-size: 10px; font-weight: 800; }
.ft-button__badge--top { top: -5px; }
.ft-button__badge--bottom { bottom: -5px; }


/* Component: SharePreview. Sharing uses the existing dialog lifecycle as a bottom sheet. */
.ft-dialog.ft-share-dialog {
    --ft-share-sheet-height: max(0px, calc(var(--ft-visual-viewport-height, 100dvh) - env(safe-area-inset-top, 0px) - 1rem));
    top: auto;
    bottom: calc(100% - var(--ft-visual-viewport-top, 0px) - var(--ft-visual-viewport-height, 100dvh));
    width: min(calc(var(--ft-visual-viewport-width, 100vw) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 36rem);
    max-height: var(--ft-share-sheet-height);
    margin: 0 auto;
}
.ft-share-dialog .ft-dialog__box {
    max-height: var(--ft-share-sheet-height);
    border-radius: var(--ft-radius-lg) var(--ft-radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
}
.ft-share-dialog .ft-dialog__box::before { content: ""; display: block; flex: none; width: 2.5rem; height: .25rem; margin: .5rem auto 0; border-radius: var(--ft-radius-sm); background: var(--ft-border-subtle); }
.ft-share-dialog .ft-dialog__title { display: flex; align-items: center; min-height: var(--ft-touch-target); padding: .5rem 3.5rem .5rem 1rem; border: 0; font-size: 1rem; }
.ft-share-dialog .ft-dialog__close { top: .5rem; right: .5rem; width: var(--ft-touch-target); height: var(--ft-touch-target); }
.ft-share-dialog .ft-dialog__content { padding: .5rem 1rem 1rem; }
.ft-share-dialog .ft-dialog__footer { padding: .5rem 1rem; }
.ft-share-dialog { min-width: 0; overflow-wrap: normal; word-break: normal; }
.ft-share-dialog .ft-dialog__box,
.ft-share-dialog .ft-dialog__form,
.ft-share-dialog .ft-dialog__content { min-width: 0; max-width: 100%; }
.ft-share-dialog .ft-dialog__form { flex: 1 1 auto; }
.ft-share-dialog .ft-dialog__content { flex: 1 1 auto; }
.ft-share-preview { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.ft-share-preview > * { min-width: 0; max-width: 100%; }
.ft-share-secondary-actions > .ft-button-wrap { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.ft-share-secondary-actions .ft-button { min-height: var(--ft-touch-target); }
.ft-share-secondary-actions .ft-button__text { overflow-wrap: normal; word-break: normal; }
.ft-share-secondary-actions > .ft-button-wrap:has(> .ft-button--square) { flex-shrink: 0; }
.ft-share-target-info summary { cursor: pointer; min-height: var(--ft-touch-target); display: flex; align-items: center; }
.ft-share-target-info p, .ft-share-composer > p { overflow-wrap: break-word; word-break: normal; }

/* Component: ShareImageComposer. Export dimensions are independent of the viewport. */
.ft-button-wrap > .ft-button.ft-button--icon-above { --ft-button-icon-size: 1.75rem; width: 5.25rem; min-height: 6rem; padding: .25rem; border: 0; border-radius: var(--ft-radius-md); background: transparent; box-shadow: none; color: var(--ft-text); font-size: .75rem; font-weight: 500; line-height: 1.3; }
.ft-button--icon-above > .ft-button__content { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5rem; }
.ft-button--icon-above .ft-button__visual { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex: none; border-radius: 50%; background: var(--ft-field); color: var(--ft-primary-strong); }
.ft-button--icon-above .ft-button__text { width: 100%; min-height: 2.6em; text-align: center; overflow-wrap: normal; word-break: normal; }
.ft-button--icon-above .ft-button__loading { width: var(--ft-button-icon-size); height: var(--ft-button-icon-size); background: transparent; outline: 0; }
.ft-share-composer {
    --ft-share-preview-height: clamp(12rem, 38dvh, 22rem);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}
.ft-share-composer__preview {
    width: 100%;
    aspect-ratio: var(--ft-share-preview-ratio);
    max-height: var(--ft-share-preview-height);
}
.ft-share-composer > :not(.ft-share-composer__source) { min-width: 0; max-width: 100%; }
.ft-share-composer__heading { min-width: 0; }
.ft-share-composer__context { min-width: 0; flex: 1 1 8rem; overflow-wrap: break-word; }
.ft-share-composer__heading .ft-button-wrap { flex-shrink: 0; }
.ft-share-composer .ft-feedback { flex-wrap: wrap; min-width: 0; }
.ft-share-composer .ft-feedback > .flex-grow-1 { min-width: 0; overflow-wrap: break-word; }
.ft-share-composer__slide { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; background: var(--ft-surface-tint); border-radius: var(--ft-radius-md); padding: .5rem; }
.ft-share-composer__thumbnail { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.ft-share-composer__png { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.ft-share-composer__source { position: fixed; left: -10000px; top: 0; pointer-events: none; }
.ft-share-photos > .ft-button-wrap { flex: 0 0 auto; }
.ft-share-photo-choice { width: 3rem; height: 3rem; }
.ft-share-photo-choice .ft-button__content, .ft-share-photo-choice .ft-button__custom-content { width: 100%; height: 100%; }
.ft-share-photo-choice img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ft-radius-sm); }
.ft-share-destinations > .ft-button-wrap { flex: 0 0 auto; }
.ft-share-destinations { align-items: flex-start; background: var(--ft-surface); scrollbar-width: none; }
.ft-share-destinations::-webkit-scrollbar { display: none; }
.ft-share-art { display: flex; flex-direction: column; width: var(--ft-share-width); height: var(--ft-share-height); box-sizing: border-box; background: var(--ft-surface); color: var(--ft-text); overflow: hidden; }
.ft-share-art__heading h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ft-share-art__visual { flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.ft-share-art__visual > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ft-radius-md); }
.ft-share-art__description { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .875rem; }
.ft-share-art__footer { flex: none; color: var(--ft-primary-strong); }
.ft-share-art__url { max-width: 75%; font-size: .625rem; line-height: 1.2; overflow-wrap: anywhere; }
.ft-share-art__details { font-size: .875rem; }
.ft-share-art--identity .ft-share-art__visual { flex: 0 1 45%; }
.ft-share-art--identity .ft-share-art__visual > img { width: auto; max-width: 100%; object-fit: contain; }
.ft-share-art--identity .ft-share-art__heading { order: 1; text-align: center; }
.ft-share-art--identity .ft-share-art__description { order: 2; text-align: center; }
.ft-share-art--identity .ft-share-art__footer { order: 3; margin-top: auto; }
.ft-share-art--playercard .ft-share-art__visual { overflow: visible; }
.ft-share-art--playercard .ft-player-card { width: auto; height: 100%; max-width: 100%; }
.ft-share-art--identity.ft-share-art--story .ft-share-art__visual { flex: 1; }
.ft-share-art--identity.ft-share-art--story .ft-person-avatar { transform: scale(1.5); }
.ft-share-art--identity.ft-share-art--portrait .ft-share-art__visual { order: 1; }
.ft-share-art--identity.ft-share-art--portrait .ft-share-art__heading { order: 0; }
.ft-share-art--identity.ft-share-art--landscape .ft-share-art__visual { grid-column: 1; grid-row: 1 / 3; }
.ft-share-art--identity.ft-share-art--landscape .ft-share-art__heading, .ft-share-art--identity.ft-share-art--landscape .ft-share-art__description { grid-column: 2; }
.ft-share-art--playercard .ft-share-art__description { display: none; }
.ft-share-art--photo .ft-share-art__visual > img { object-fit: contain; background: var(--ft-surface-tint); }
.ft-share-art--photo.ft-share-art--story .ft-share-art__visual { order: -1; margin: -1rem -1rem 0; }
.ft-share-art--photo.ft-share-art--square .ft-share-art__heading { order: 1; }
.ft-share-art--photo.ft-share-art--square .ft-share-art__description { display: none; }
.ft-share-art--photo.ft-share-art--square .ft-share-art__footer { order: 2; }
.ft-share-art--portrait { background: linear-gradient(160deg, var(--ft-primary-soft), var(--ft-surface)); }
.ft-share-art--story { background: linear-gradient(160deg, var(--ft-primary-soft), var(--ft-accent-soft)); }
.ft-share-art--story .ft-share-art__heading { text-align: center; }
.ft-share-art--story .ft-share-art__description { -webkit-line-clamp: 5; }
.ft-share-art--game .ft-share-art__description { display: none; }
.ft-share-art--game .ft-share-art__visual { flex: 0 1 35%; }
.ft-share-art--game .ft-share-art__details { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ft-share-art--landscape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.ft-share-art--landscape .ft-share-art__visual { grid-column: 2; grid-row: 1 / 4; }
.ft-share-art--landscape .ft-share-art__heading { grid-column: 1; text-align: start; }
.ft-share-art--landscape .ft-share-art__description, .ft-share-art--landscape .ft-share-art__details { grid-column: 1; align-self: center; -webkit-line-clamp: 3; }
.ft-share-art--landscape .ft-share-art__footer { grid-column: 1; grid-row: 3; }

/* Shared team list export: measured pages keep the existing readable font size. */
.ft-share-art--teamlist { display: flex; }
.ft-share-art--teamlist .ft-share-art__details { flex: 1; min-height: 0; overflow: hidden; align-self: stretch; }
.ft-team-draw__header .ft-page-header { margin: 0; padding: 0; }

/* Component: QrCodeButton */
.ft-qr-code {
    image-rendering: pixelated;
}
.ft-qr-preview { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.ft-qr-preview__image { width: 100%; max-width: 22rem; }
.ft-qr-preview > p { overflow-wrap: break-word; }
.ft-qr-preview .ft-button__text { overflow-wrap: normal; word-break: normal; }

/* Component: CardButton */
.ft-action-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-block: 20px; }
.ft-action-toolbar__leading { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
.ft-action-toolbar__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ft-action-toolbar__filters { flex: 1 1 100%; width: 100%; margin: 0; border-radius: 7px; }
.ft-action-toolbar__filters fieldset > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); align-items: end; gap: 1rem; }
.ft-action-toolbar__filters fieldset > div > * { min-width: 0; }
.ft-action-toolbar__filters fieldset > div .mt-4 { margin-top: 0 !important; }
@media (min-width: 768px) { .ft-action-toolbar__filters fieldset > div > .ft-date-range { grid-column: span 2; } }
@media (max-width: 767px) { .ft-action-toolbar__filters fieldset > div { grid-template-columns: minmax(0, 1fr); } }
.ft-action-toolbar__loading { color: var(--ft-text-soft); font-size: 13px; }
@media (max-width: 767px) { .ft-action-toolbar__leading { flex-basis: 100%; } .ft-action-toolbar__actions { width: 100%; justify-content: flex-start; margin-left: 0; } }


/* Component: CommentReactionControl */
.ft-comment-reaction { position: relative; display: inline-flex; align-items: center; }
.ft-comment-reaction > .ft-button-wrap > .ft-button { min-width: var(--ft-touch-target); }
.ft-comment-reaction .ft-reaction-picker__options { right: 0; left: auto; }
.ft-comment-reaction__popover { position: absolute; z-index: 12; top: calc(100% + .4rem); right: 0; display: grid; gap: .4rem; min-width: 170px; padding: .7rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }


/* Component: ContentInteractionFooter */
.ft-social-actions__summary { color: var(--ft-text-soft); font-size: .75rem; }
.ft-social-actions__buttons .ft-button-wrap > .ft-button.ft-button--text { --ft-button-icon-size: 22px; color: var(--ft-text); }
.ft-social-actions__buttons .ft-button-wrap > .ft-button.ft-button--text:hover,
.ft-social-actions__buttons .ft-button-wrap > .ft-button.ft-button--text:focus-visible,
.ft-social-actions__buttons .ft-button-wrap > .ft-button.ft-button--text[aria-pressed="true"] { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-social-actions__buttons .ft-button__badge { background: var(--ft-field); color: var(--ft-text); }


/* Component: ContextIdentity */
.ft-context-identity { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; color: inherit; }
.ft-context-identity__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid color-mix(in srgb, var(--ft-context-identity-ink) 24%, transparent); border-radius: 12px; background: var(--ft-context-identity-soft); color: var(--ft-context-identity-ink); }
.ft-context-identity__icon svg { width: 22px; height: 22px; fill: none; }
.ft-context-identity__copy { display: grid; gap: .15rem; min-width: 0; }
.ft-context-identity__label { color: inherit; font-size: .8rem; font-weight: 800; }
.ft-context-identity__description { color: inherit; font-size: .72rem; opacity: .72; }
.ft-context-identity--compact { gap: .5rem; }
.ft-context-identity--compact .ft-context-identity__icon { width: 27px; height: 27px; border-radius: 6px; }
.ft-context-identity--compact .ft-context-identity__icon svg { width: 16px; height: 16px; }
.ft-context-identity--compact .ft-context-identity__label { font-size: .72rem; }
.ft-context-identity--compact .ft-context-identity__description { font-size: .66rem; }
.ft-context-identity--icon-only { gap: 0; }
.ft-context-identity.ft-context-player { --ft-context-identity-ink: var(--ft-secondary-strong); --ft-context-identity-soft: var(--ft-secondary-soft); }
.ft-context-identity.ft-context-management { --ft-context-identity-ink: var(--ft-primary-strong); --ft-context-identity-soft: var(--ft-primary-soft); }
.ft-context-identity.ft-context-referee { --ft-context-identity-ink: var(--ft-warning); --ft-context-identity-soft: var(--ft-warning-soft); }
.ft-context-identity.ft-context-photographer,
.ft-context-identity.ft-context-venue { --ft-context-identity-ink: var(--ft-tertiary-strong); --ft-context-identity-soft: var(--ft-tertiary-soft); }

/* Component: ContextOption */
.ft-context-option { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 70px; padding: .85rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-context-option:hover, .ft-context-option:focus-visible, .ft-context-option.is-selected { border-color: var(--ft-primary); background: var(--ft-primary-soft); }
.ft-context-option > .ft-context-identity { flex: 1 1 auto; }
.ft-context-option__action, .ft-context-option__current { margin-left: auto; color: var(--ft-primary-strong); font-size: .68rem; font-weight: 800; }
.ft-context-option__current { display: inline-flex; align-items: center; gap: .25rem; }
.ft-context-option__check { width: 17px; height: 17px; fill: none; }


/* Component: DiffViewer */
.ft-diff-viewer { overflow: hidden; margin: 1.35rem 0; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); color: var(--ft-text); }
.ft-diff-viewer__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 52px; padding: .7rem 1rem; border: 0; background: transparent; color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-diff-viewer__header:hover, .ft-diff-viewer__header:focus-visible { background: var(--ft-field); }
.ft-diff-viewer__header:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: -3px; }
.ft-diff-viewer__header > svg { width: 17px; height: 17px; color: var(--ft-primary); }
.ft-diff-viewer__heading { display: inline-flex; align-items: center; gap: .65rem; font-size: .82rem; font-weight: 750; }
.ft-diff-viewer__heading strong { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: .25rem; border-radius: 99px; background: var(--ft-primary-soft); color: var(--ft-primary-strong); font-size: .7rem; }
.ft-diff-viewer__mark { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-diff-viewer__mark svg { width: 15px; height: 15px; }
.ft-diff-viewer__static-heading { margin: 0; padding: .9rem 1rem; font-size: .82rem; font-weight: 750; }
.ft-diff-viewer__content { border-top: 1px solid var(--ft-border); padding: .3rem 1rem .5rem; }
.ft-diff-viewer__list { display: grid; }
.ft-diff-viewer__row { padding: .75rem 0; border-bottom: 1px solid var(--ft-border); }
.ft-diff-viewer__row:last-child { border-bottom: 0; }
.ft-diff-viewer__row p { display: grid; gap: .45rem; margin: 0; color: var(--ft-text); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.ft-diff-viewer__property { display: block; color: var(--ft-text); font-size: .75rem; font-weight: 800; }
.ft-diff-viewer__values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .55rem; }
.ft-diff-viewer__old, .ft-diff-viewer__new { display: grid; align-content: center; gap: .15rem; min-width: 0; min-height: 48px; padding: .35rem .6rem; border-radius: var(--ft-radius-sm); overflow-wrap: anywhere; }
.ft-diff-viewer__old { background: var(--ft-field); color: var(--ft-text-muted); }
.ft-diff-viewer__new { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-diff-viewer__old small, .ft-diff-viewer__new small { font-size: .58rem; font-weight: 850; letter-spacing: .09em; }
.ft-diff-viewer__new strong { font-weight: 800; }
.ft-diff-viewer__row .ft-render-del { color: var(--ft-text-muted); text-decoration-color: var(--ft-text-muted); }
.ft-diff-viewer__row .ft-highlighted { color: var(--ft-accent-strong); font-weight: 750; }
.ft-diff-viewer__arrow { color: var(--ft-primary); font-weight: 800; }
.ft-diff-viewer__group { display: block; margin-top: .35rem; padding-left: .7rem; border-left: 2px solid var(--ft-accent); }
@media (max-width: 430px) { .ft-diff-viewer__values { grid-template-columns: 1fr; } .ft-diff-viewer__arrow { line-height: 1; } }


/* Component: StatusTabFilter */
.ft-status-tabs { border-bottom: 1px solid var(--ft-border); }
.ft-status-tabs .ft-button-wrap > .ft-button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ft-text-muted); }
.ft-status-tabs .ft-button-wrap > .ft-button[aria-pressed="true"] { border-bottom-color: var(--ft-primary); color: var(--ft-primary-strong); }
.ft-status-tabs .ft-button-wrap > .ft-button:hover { background: var(--ft-field); }

/* Component: EntityManagementHub */
.ft-management-hub { width: 100%; min-width: 0; }
.ft-management-nav { margin: 6px 0 18px; padding-bottom: 9px; }
.ft-management-nav .ft-chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ft-management-nav .ft-chip svg { width: 17px; height: 17px; flex: none; }
.ft-management-nav .ft-chip:disabled { opacity: .45; cursor: not-allowed; }
.ft-management-subnav { overflow-x: auto; margin: 0 0 20px; }
.ft-management-subnav .ft-segmented { white-space: nowrap; }
.ft-management-subnav .ft-segmented button:disabled { opacity: .45; cursor: not-allowed; }
.ft-management-content { min-width: 0; }

/* Schedule management follows the page flow without nested scroll regions. */
.ft-schedule-management .ft-management-nav {
    flex-wrap: wrap;
    overflow: visible;
}
.ft-schedule-player__name {
    min-width: 0;
}
.ft-schedule-player + .ft-schedule-player {
    border-top: 1px solid var(--ft-border);
}
.ft-schedule-player--assignment {
    border-inline-start: 3px solid var(--ft-schedule-team-color, transparent);
}
.ft-schedule-team-selector {
    min-width: 0;
    max-width: 45%;
}
.ft-schedule-team-selector .ft-button__custom-content {
    white-space: normal;
}
.ft-app-shell .ft-schedule-management .ft-schedule-team-choice .ft-button-wrap > .ft-button.ft-schedule-team-choice__button {
    border-color: var(--ft-schedule-team-color, var(--ft-border));
}
.ft-app-shell .ft-schedule-management .ft-schedule-team-choice .ft-button-wrap > .ft-button.ft-schedule-team-choice__button[aria-pressed="true"] {
    background: color-mix(in srgb, var(--ft-schedule-team-color) 18%, var(--ft-surface));
    color: var(--ft-text);
    box-shadow: inset 0 0 0 1px var(--ft-schedule-team-color);
}
.ft-schedule-activity .ft-button__custom-content {
    width: 100%;
    white-space: normal;
}
.ft-schedule-transfer {
    background: var(--ft-primary-soft);
    color: var(--ft-text);
}
.ft-app-shell .ft-surface.ft-schedule-team {
    border-color: var(--ft-schedule-team-color, var(--ft-border));
    border-top: 4px solid var(--ft-schedule-team-color, var(--ft-border));
}
.ft-schedule-date {
    min-width: 4rem;
    border-radius: var(--ft-radius-sm);
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}
@media (max-width: 767px) {
    .ft-schedule-management > .ft-page-intro h1 {
        font-size: 1.4rem;
        overflow-wrap: anywhere;
    }
}
@media (max-width: 767px) {
  .ft-management-nav { flex-wrap: wrap; overflow: visible; margin-bottom: 12px; }
  .ft-management-nav .ft-chip { flex: none; }
}
.ft-management-drill__menu .ft-button-wrap > .ft-button.ft-management-drill__item { justify-content: flex-start; padding: .65rem .85rem; border-radius: var(--ft-radius-sm); color: var(--ft-text); font-weight: 700; }
.ft-management-drill__menu .ft-button-wrap > .ft-button.ft-management-drill__item:hover,
.ft-management-drill__menu .ft-button-wrap > .ft-button.ft-management-drill__item:focus-visible { background: var(--ft-field); color: var(--ft-text); text-decoration: none; }
.ft-management-drill__item .ft-button__content, .ft-management-drill__item .ft-button__custom-content { display: flex; align-items: center; gap: .75rem; width: 100%; }
.ft-management-drill__item .ft-icon { width: 20px; height: 20px; flex: none; }
.ft-management-drill__item .ft-management-drill__chevron { width: 16px; height: 16px; color: var(--ft-text-muted); }
.ft-management-drill__body { min-height: calc(100dvh - var(--ft-analytics-notice-height, 0px)); overflow-anchor: none; }
.ft-management-drill__dropdown { width: min(100%, 22rem); }
.ft-management-drill__menu-header { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-.5rem); transition: max-height var(--ft-motion-fast) ease-out, opacity var(--ft-motion-fast) ease-out, transform var(--ft-motion-fast) ease-out, padding var(--ft-motion-fast) ease-out, margin var(--ft-motion-fast) ease-out; }
.ft-management-drill__body.is-header-out .ft-management-drill__menu-header { max-height: 6rem; margin-bottom: .75rem; padding: .5rem .85rem; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ft-management-drill__menu-header { transition: none; }
}
.ft-management-drill__dropdown .ft-button-wrap > .ft-button.ft-management-drill__item[aria-pressed="true"] { background: var(--ft-border-subtle); color: var(--ft-text); }
@media (min-width: 992px) {
  .ft-management-drill__sidebar { width: var(--ft-sidebar-width); position: sticky; top: calc(var(--ft-topbar-height) + 1rem); align-self: flex-start; max-height: calc(100dvh - var(--ft-topbar-height) - var(--ft-analytics-notice-height, 0px) - 2rem); padding-block: .25rem; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--ft-text-muted) transparent; }
  .ft-management-drill__menu .ft-button-wrap > .ft-button.ft-management-drill__item[aria-pressed="true"] { background: var(--ft-border-subtle); color: var(--ft-text); }
}


/* Component: HomeNowInvitations */
.ft-home-invitations { margin-bottom: 1.25rem; }
.ft-home-invitations__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.ft-home-invitations__heading p { margin: 0; color: var(--ft-danger-strong); font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.ft-home-invitations__heading h2 { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 850; letter-spacing: -.035em; }
.ft-home-invitations__list { display: grid; gap: .55rem; }
.ft-home-invitations__item { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .85rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); }
.ft-home-invitations__item > div { display: grid; gap: .15rem; min-width: 0; }
.ft-home-invitations__item strong { color: var(--ft-text); font-size: .8rem; }
.ft-home-invitations__item span, .ft-home-invitations__item small { color: var(--ft-text-muted); font-size: .73rem; }


/* Component: InputImage */
.ft-image-avatar-preview {
    width: 120px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 4px solid var(--ft-surface);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-primary-soft);
    box-shadow: 0 0 0 1px var(--ft-border);
}

.ft-image-avatar-preview img,
.ft-image-avatar-preview canvas { display: block; width: 100%; height: 100%; }

.ft-image-editor { display: grid; gap: .85rem; min-width: 0; }
.ft-image-editor__hint { margin: 0; color: var(--ft-text-soft); font-size: .8rem; line-height: 1.45; text-align: center; }
.ft-image-editor__stage { display: grid; place-items: center; min-width: 0; padding: .9rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-field); }
.ft-image-editor__stage .ft-image-preview { width: 100%; min-width: 0; }
.ft-image-editor__stage .ft-image-avatar-preview { width: min(100%, 360px); height: auto; margin-inline: auto; border: 1px solid var(--ft-border); background: var(--ft-surface); box-shadow: var(--ft-shadow-card); }
.ft-image-editor__canvas { display: block; max-width: 100%; height: auto; border-radius: var(--ft-radius-sm); background: var(--ft-surface); cursor: grab; touch-action: none; user-select: none; }
.ft-image-editor__canvas:active { cursor: grabbing; }
.ft-image-editor__tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem; }
.ft-image-editor__tool.btn-link { min-height: 40px; padding: .4rem .65rem; color: var(--ft-primary-strong); font-size: .8rem; font-weight: 700; text-decoration: none; }
.ft-image-editor__tool.btn-link:hover, .ft-image-editor__tool.btn-link:focus-visible { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-image-editor__backgrounds { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ft-border); }
.ft-image-editor__backgrounds .ft-image-swatch { display: block; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--ft-border); border-radius: 8px; background: var(--ft-image-swatch-color, var(--ft-surface)); }
.ft-image-editor__backgrounds .ft-image-transparent { background: conic-gradient(var(--ft-field) 25%, var(--ft-surface) 0 50%, var(--ft-field) 0 75%, var(--ft-surface) 0) 0 0 / 12px 12px; }
.ft-image-editor__backgrounds .ft-image-swatch.is-selected { outline: 2px solid var(--ft-primary); outline-offset: 2px; }
.ft-color-picker.compact { display: block; flex: none; width: var(--ft-touch-target); height: var(--ft-touch-target); }
.ft-color-picker.compact .ft-color-picker-swatch { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); cursor: pointer; }
.ft-color-picker.compact .ft-color-picker-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.ft-color-picker.compact .ft-color-picker-swatch span { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ft-primary-strong); font-weight: 800; }

@media (max-width: 575.98px) {
    .ft-image-editor__stage { padding: .6rem; }
    .ft-image-editor__footer .ft-button-wrap { flex: 1; }
    .ft-image-editor__footer .ft-button-wrap > .ft-button { width: 100%; }
}


/* Component: InputRatingSlider */
.ft-rating-slider { min-width: 0; }
.ft-rating-slider output {
    min-width: 2.5rem;
    color: var(--ft-text);
    font-variant-numeric: tabular-nums;
}
.ft-rating-slider .form-range {
    display: block;
    width: 100%;
    min-height: var(--ft-touch-target);
    cursor: pointer;
}
.ft-rating-slider .form-range:disabled { cursor: default; opacity: .55; }
.ft-rating-slider .form-range::-webkit-slider-runnable-track { background: linear-gradient(var(--ft-rating-color), var(--ft-rating-color)) 0 / var(--ft-rating-value) 100% no-repeat, var(--ft-border); }
.ft-rating-slider .form-range::-moz-range-track { background: var(--ft-border); }
.ft-rating-slider .form-range::-moz-range-progress { background: var(--ft-rating-color); }
.ft-rating-slider .form-range::-webkit-slider-thumb { background: var(--ft-rating-color); border: 2px solid var(--ft-surface); box-shadow: 0 0 0 1px var(--ft-border); }
.ft-rating-slider .form-range::-moz-range-thumb { background: var(--ft-rating-color); border: 2px solid var(--ft-surface); box-shadow: 0 0 0 1px var(--ft-border); }


/* Component: ColorPickerExtended */
.ft-color-picker-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.ft-color-picker .input-group { flex-wrap: nowrap; margin-top: .45rem; }
.ft-color-picker .form-control { min-width: 0; min-height: 46px; border-color: var(--ft-border-strong); background-color: var(--ft-surface); color: var(--ft-text); }
.ft-color-picker .form-control-color { flex: 0 0 50px; width: 50px; height: 46px; padding: .4rem; cursor: pointer; }
.ft-color-picker input[type="color"]:not(:disabled) { cursor: pointer; }
.ft-color-picker input[type="color"]:disabled, .ft-color-picker label:has(input[type="color"]:disabled) { cursor: not-allowed; }

/* Component: InputTextExtended */
.ft-form-control-wrap { position: relative; min-width: 0; }
.ft-form-control-wrap--sm {
    --ft-input-height: var(--ft-control-height-sm);
}
.ft-form-control-wrap--md {
    --ft-input-height: var(--ft-control-height-md);
}
.ft-form-control-wrap--lg {
    --ft-input-height: var(--ft-control-height-lg);
}
.ft-form-control-wrap--xl {
    --ft-input-height: var(--ft-control-height-xl);
}
.ft-form-control-wrap > input.ft-app-input,
.ft-form-control-wrap > .form-select,
.ft-form-control-wrap .ft-select {
    height: max(var(--ft-input-height, var(--ft-control-height-lg)), calc(1.5em + 1rem + 2px));
    min-height: max(var(--ft-input-height, var(--ft-control-height-lg)), calc(1.5em + 1rem + 2px));
}
.ft-form-control-wrap.has-action {
    display: flex;
    align-items: flex-end;
    gap: .25rem;
}
.ft-form-control-wrap.has-action > .ft-app-input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
}
.ft-form-control-wrap .ft-field__action {
    position: static;
    flex: none;
    padding: 0;
    transform: none;
}
.ft-form-control-wrap .ft-field__action .ft-button.ft-button--icon-only {
    width: var(--ft-control-height-md);
    height: var(--ft-control-height-md);
    min-height: var(--ft-control-height-md);
}
.ft-form-control-wrap .ft-field__suffix {
    position: static;
    align-self: center;
    flex: none;
    margin: 0;
    color: var(--ft-text-muted);
    font-size: 12px;
}
.ft-form-field textarea.app-input { height: auto; min-height: 96px; padding-block: 12px; resize: vertical; }

/* Component: InputSelectExtendedMultiple */
.ft-form-field.ft-select-multiple > .form-select[multiple],
.ft-form-control-wrap.ft-select-multiple .ft-select {
    height: auto;
    min-height: var(--ft-input-height, var(--ft-control-height-md));
    padding: .5rem .75rem;
    font-size: var(--ft-control-font-size);
    line-height: 1.5;
}
.ft-select-multiple .choices {
    position: relative;
    min-width: 0;
    width: 100%;
}
.ft-select-multiple .choices__inner,
.ft-select-multiple .choices__list--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}
.ft-select-multiple .choices__inner {
    border-color: var(--ft-border-strong);
}
.ft-select-multiple .choices.is-focused .choices__inner {
    border-color: var(--ft-primary);
    outline: 2px solid var(--ft-focus);
    outline-offset: 1px;
}
.ft-select-multiple .choices.is-disabled {
    opacity: .6;
    cursor: not-allowed;
}
.ft-select-multiple .choices__input--cloned {
    flex: 1 1 auto;
    max-width: 100%;
    min-height: calc(var(--ft-input-height, var(--ft-control-height-md)) - 1rem - 2px);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: var(--ft-control-font-size);
}
.ft-select-multiple .choices__list--multiple .choices__item {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-width: 0;
    max-width: 100%;
    padding-left: .5rem;
    border-radius: var(--ft-radius-sm);
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
    overflow-wrap: anywhere;
}
.ft-select-multiple .choices__button {
    flex: none;
    width: var(--ft-control-height-md);
    height: var(--ft-control-height-md);
    padding: 0;
    border: 0;
    border-radius: var(--ft-radius-sm);
    background: transparent;
    color: inherit;
    font-size: 0;
    cursor: pointer;
}
.ft-select-multiple .choices__button::before {
    content: "×";
    font-size: 1rem;
}
.ft-select-multiple .choices__button--text {
    font-size: 1rem;
}
.ft-select-multiple .choices__button--text::before {
    content: none;
}
.ft-select-multiple .choices__button:focus-visible,
.ft-select-multiple .choices__input--cloned:focus-visible {
    outline: 2px solid var(--ft-primary);
    outline-offset: 1px;
}
.ft-select-multiple .choices__list--dropdown {
    display: none;
    position: absolute;
    z-index: var(--bs-dropdown-zindex, 1000);
    width: 100%;
    max-height: 16rem;
    overflow-y: auto;
    border: 1px solid var(--ft-border-strong);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-surface);
    color: var(--ft-text);
}
.ft-select-multiple .choices__list--dropdown.is-active {
    display: block;
}
.ft-select-multiple .choices__list--dropdown .choices__item {
    min-height: var(--ft-control-height-md);
    padding: .5rem .75rem;
    overflow-wrap: anywhere;
}
.ft-select-multiple .choices__item--selectable {
    cursor: pointer;
}
.ft-select-multiple .choices__item.is-highlighted {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}
.ft-select-multiple .choices__item--disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* Component: MobileBottomNavigation */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ft-bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 3px;
        min-height: 48px;
        font-size: 10px;
        font-weight: 750;
        color: var(--ft-text-soft);
    }

    .ft-bottom-nav a.active { color: var(--ft-primary-strong); }

    .ft-bottom-nav .ft-nav-create {
        justify-self: center;
        display: grid;
        place-items: center;
        width: 47px;
        height: 47px;
        border: 0;
        border-radius: 10px;
        transform: translateY(-9px);
        background: var(--ft-primary);
        color: var(--ft-brand-white);
    }
}

@media (max-width: 991.98px) {
    .ft-bottom-nav a { min-width: 0; padding: 0; line-height: 1.15; text-align: center; text-decoration: none; }
    .ft-bottom-nav a.active .ft-person-avatar--square { outline: 2px solid var(--ft-primary); outline-offset: 2px; }
    .ft-bottom-nav a .ft-app-icon { width: 21px; height: 21px; }
    .ft-bottom-nav .ft-nav-create .ft-app-icon { width: 24px; height: 24px; }
}


/* Component: Notification/NotificationTarget */
.ft-notifications { position: relative; }
.ft-notifications__trigger {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--ft-touch-target);
    height: var(--ft-touch-target);
    border: 0;
    border-radius: var(--ft-radius-sm);
    background: transparent;
    color: var(--ft-text-soft);
    text-decoration: none;
    cursor: pointer;
}
.ft-notifications__trigger:hover, .ft-notifications__trigger:focus-visible { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-notifications__trigger svg { width: 21px; height: 21px; fill: none; }
.ft-notifications__dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border: 2px solid var(--ft-surface); border-radius: 50%; background: var(--ft-danger); }
.ft-notifications__panel { position: absolute; z-index: 50; top: calc(100% + .65rem); right: 0; width: min(390px, calc(100vw - 24px)); max-height: min(74dvh, 680px); overflow: hidden; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
.ft-notifications__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem; border-bottom: 1px solid var(--ft-border); }
.ft-notifications__eyebrow { color: var(--ft-accent-strong); font-size: .64rem; font-weight: 850; letter-spacing: .08em; }
.ft-notifications__header h2 { margin: .15rem 0 0; color: var(--ft-text); font-size: 1.05rem; font-weight: 850; }
.ft-notifications__preferences { display: flex; gap: .15rem; }
.ft-notifications__preferences button { display: grid; place-items: center; width: var(--ft-touch-target); height: var(--ft-touch-target); border: 0; border-radius: var(--ft-radius-sm); background: var(--ft-field); color: var(--ft-text-muted); cursor: pointer; }
.ft-notifications__preferences button[aria-pressed="true"] { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-notifications__preferences button:disabled { opacity: .5; cursor: wait; }
.ft-notifications__preferences svg { width: 17px; height: 17px; fill: none; }
.ft-notifications__list { max-height: min(55dvh, 470px); overflow-y: auto; }
.ft-notifications__warning { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid var(--ft-border); background: var(--ft-accent-soft); color: var(--ft-text); font-size: .875rem; }
.ft-notifications__warning svg { width: 20px; height: 20px; flex: none; color: var(--ft-accent-strong); fill: none; }
.ft-notifications__item { padding: .85rem 1rem; border-bottom: 1px solid var(--ft-border); }
.ft-notifications__item.is-unread { background: var(--ft-primary-soft); }
.ft-notifications__content { display: flex; align-items: start; gap: .65rem; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-notifications__content:disabled { opacity: .6; cursor: wait; }
.ft-notifications__content:hover strong { color: var(--ft-primary-strong); }
.ft-notifications__copy { display: grid; gap: .15rem; min-width: 0; }
.ft-notifications__copy strong { color: var(--ft-text); font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.ft-notifications__copy span { color: var(--ft-text-soft); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.ft-notifications__copy small { color: var(--ft-text-muted); font-size: .75rem; line-height: 1.4; }
.ft-notifications__actions { display: flex; justify-content: end; margin-top: .55rem; }
.ft-notifications__empty { display: grid; justify-items: center; gap: .2rem; padding: 2rem 1rem; color: var(--ft-text-muted); font-size: .76rem; text-align: center; }
.ft-notifications__empty svg { width: 30px; height: 30px; margin-bottom: .35rem; color: var(--ft-accent-strong); fill: none; }
.ft-notifications__empty strong { color: var(--ft-text); font-size: .9rem; }
.ft-notifications__view-all { display: flex; align-items: center; justify-content: space-between; min-height: var(--ft-touch-target); padding: .65rem 1rem; color: var(--ft-primary-strong); font-size: .875rem; font-weight: 800; text-decoration: none; }
.ft-notifications__view-all:hover,
.ft-notifications__view-all:focus-visible,
.ft-notifications__view-all:active {
    background: var(--ft-field);
    color: var(--ft-primary-strong);
}
.ft-notifications__view-all svg { width: 17px; height: 17px; fill: none; }
@media (max-width: 991.98px) {
    .ft-notifications__panel {
        position: fixed;
        top: calc(68px + .5rem);
        right: auto;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 50%;
        display: flex;
        flex-direction: column;
        width: min(390px, calc(100vw - 1rem));
        max-height: none;
        transform: translateX(-50%);
    }

    .ft-notifications__list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .ft-notifications__panel { top: calc(60px + .5rem); }
}

/* Component: Notification/NotificationTargetDetailModal */
.ft-notification-detail .ft-dialog__form { flex: 1 1 auto; min-height: 0; }
.ft-notification-detail .ft-dialog__fixed-content { flex: none; border-bottom: 1px solid var(--ft-border); }
.ft-notification-detail .ft-dialog__content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
.ft-notification-detail__type { color: var(--ft-primary-strong); font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.ft-notification-detail__date { color: var(--ft-text-muted); font-size: .8rem; }
.ft-notification-detail__heading { color: var(--ft-text); font-size: 1.35rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ft-notification-detail__summary { color: var(--ft-text-soft); font-size: .95rem; line-height: 1.55; }
.ft-notification-detail__message { border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-field); color: var(--ft-text); }
.ft-notification-detail__message-content { font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.ft-notification-detail__message-content > :last-child { margin-bottom: 0; }
.ft-notification-detail__message-content img { max-width: 100%; height: auto; }
.ft-notification-detail__metadata { border-top: 1px solid var(--ft-border); }
.ft-notification-detail__metadata dt { color: var(--ft-text-muted); font-size: .78rem; font-weight: 650; }
.ft-notification-detail__metadata dd { color: var(--ft-text); font-size: .9rem; }


/* Component: Notification/NotificationTargetCenterItem */
.ft-notice-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ft-notice-body { display: flex; align-items: flex-start; gap: 11px; margin-top: 9px; }
.ft-notice-body > div { min-width: 0; }
.ft-notice-body strong { display: block; color: var(--ft-text); font-size: 14px; line-height: 1.35; }
.ft-notice-image, .ft-notice-icon { flex: none; width: 37px; height: 37px; border-radius: 10px; object-fit: cover; }
.ft-notice-icon { display: grid; place-items: center; background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-notice-icon svg { width: 19px; height: 19px; }
.ft-notice-message { margin: 5px 0 0; color: var(--ft-text-soft); font-size: 12px; line-height: 1.5; }
.ft-notice-secondary { padding-top: 10px; border-top: 1px solid var(--ft-border); }
.ft-notice-detail { padding-top: 14px; }

.ft-notification-row {
    border-bottom: 1px solid var(--ft-border);
}
.ft-notification-row__link {
    min-width: 0;
    min-height: var(--ft-touch-target);
    color: var(--ft-text);
}
.ft-notification-row__link:hover,
.ft-notification-row__link:focus-visible,
.ft-notifications__view-all:focus-visible {
    background: var(--ft-hover-surface);
    color: var(--ft-text);
}
.ft-notification-row__link:focus-visible {
    outline: 2px solid var(--ft-primary);
    outline-offset: -2px;
}
.ft-notification-row__content {
    min-width: 0;
    line-height: 1.4;
}
.ft-notification-row__unread {
    flex: none;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--ft-primary);
}


/* Component: PersonAvatar */
.ft-person-avatar {
    --ft-avatar-size: 44px;
    position: relative;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    flex: none;
    width: var(--ft-avatar-size);
    height: var(--ft-avatar-size);
    overflow: visible;
    border-radius: 50%;
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
    font-size: calc(var(--ft-avatar-size) * .3);
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.ft-person-avatar--xs { --ft-avatar-size: 24px; }
.ft-person-avatar--sm { --ft-avatar-size: 32px; }
.ft-person-avatar--lg { --ft-avatar-size: 64px; }
.ft-person-avatar--xl { --ft-avatar-size: 88px; }
.ft-person-avatar--profile { --ft-avatar-size: 120px; }
.ft-person-avatar--square { border-radius: 8px; }
.ft-person-avatar--outlined { outline: 3px solid var(--ft-surface); box-shadow: 0 0 0 4px var(--ft-border); }
.ft-person-avatar--interactive { cursor: pointer; }
.ft-person-avatar--interactive:focus-visible { outline: 3px solid var(--ft-accent); outline-offset: 4px; }
.ft-person-avatar--inactive { opacity: .55; }
.ft-person-avatar--pending { box-shadow: 0 0 0 3px var(--ft-accent); }

.ft-person-avatar__image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.ft-person-avatar__badge {
    position: absolute;
    right: -5px;
    bottom: -3px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border: 2px solid var(--ft-surface);
    border-radius: 10px;
    background: var(--ft-primary);
    color: var(--ft-on-primary);
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .ft-person-avatar--profile { --ft-avatar-size: 88px; }
}


/* Component: PersonPreviewCard */
.ft-person-preview { min-height: 110px; margin: 0; padding: 16px; }
.ft-person-preview > .ft-profile-cover--card { --bs-aspect-ratio: max(7.5rem, calc(300 / 1184 * 100%)); }
.ft-person-preview__body strong { display: block; font-size: 15px; color: var(--ft-text); }
.ft-person-preview__body small { display: block; margin-top: 3px; color: var(--ft-text-soft); }


/* Component: PersonPreviewList */
.ft-person-preview--list { min-height: 76px; padding: 10px 14px; }
.ft-person-preview__body { min-width: 0; flex: 1; }
.ft-person-preview--list .ft-person-preview__body strong { font-size: 13px; }
.ft-person-preview--list .ft-person-preview__body small { font-size: 11px; }
.ft-person-preview__actions { flex: none; }

/* Component: ActionMenu */
.ft-button-wrap > .ft-button.ft-directions-trigger,
.ft-button-wrap > .ft-button.ft-directions-trigger:hover,
.ft-button-wrap > .ft-button.ft-directions-trigger:focus-visible { text-decoration: none; }

.ft-action-menu__toggle {
    display: grid;
    place-items: center;
    width: var(--ft-touch-target);
    height: var(--ft-touch-target);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-surface);
    color: var(--ft-text-soft);
}
.ft-action-menu__toggle:hover,
.ft-action-menu__toggle[aria-expanded="true"] {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
    border-color: var(--ft-primary);
}
.ft-dialog:has(> .ft-action-menu__content) {
    position: fixed;
    inset: auto;
    top: var(--ft-action-menu-top, 0);
    left: var(--ft-action-menu-left, 0);
    margin: 0;
}


/* Component: PlayerSportSkillRadar */
.ft-player-skill-radar { width: min(100%, 360px); margin-inline: auto; }
.ft-player-skill-radar--compact { width: min(100%, 220px); margin-inline: 0; }
.ft-player-skill-radar-chart { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.ft-player-skill-radar:not(.ft-player-skill-radar-readonly) .ft-player-skill-radar-chart { touch-action: none; user-select: none; -webkit-user-select: none; }
.ft-player-skill-radar-grid polygon { fill: none; stroke: var(--ft-border); stroke-width: 1; }
.ft-player-skill-radar-grid polygon:last-of-type {
    stroke: var(--ft-primary);
    stroke-opacity: .4;
    stroke-width: 1.4;
}
.ft-player-skill-radar-grid line { stroke: var(--ft-border); stroke-width: 1; }
.ft-player-skill-radar-area {
    fill: var(--ft-primary);
    fill-opacity: .1;
    stroke: var(--ft-rating-medium);
    stroke-width: 2;
    stroke-linejoin: round;
}
.ft-player-skill-radar-handle { fill: var(--ft-skill-color); stroke: var(--ft-surface); stroke-width: 3; }
.ft-player-skill-radar-overall-value {
    fill: var(--ft-primary-strong);
    opacity: .14;
    font-family: var(--ft-font-primary);
    font-size: 64px;
    font-weight: 800;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-anchor: middle;
    dominant-baseline: central;
}
.ft-player-skill-radar-interaction { fill: transparent; cursor: crosshair; touch-action: none; }
.ft-player-skill-radar-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.ft-player-skill-radar-legend-item { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 3px; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface); color: var(--ft-text); font-size: .75rem; line-height: 1; white-space: nowrap; }
.ft-player-skill-radar-legend-item::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--ft-skill-color); }
.ft-player-skill-radar-legend-name { font-weight: 800; letter-spacing: .03em; }
.ft-player-skill-radar-value {
    color: var(--ft-text);
    font-variant-numeric: tabular-nums;
}
.ft-player-skill-radar-help { margin: 8px 0 0; color: var(--ft-text-soft); font-size: .75rem; line-height: 1.4; text-align: center; }
.ft-player-skill-radar-readonly .ft-player-skill-radar-handle { stroke-width: 2; }
.ft-player-skill-radar--compact .ft-player-skill-radar-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) {
    .ft-player-skill-radar:not(.ft-player-skill-radar--compact) { width: min(100%, 320px); }
}
@media (min-width: 992px) {
    .ft-player-skill-editor {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
    .ft-player-skill-editor__radar,
    .ft-player-skill-editor__radar > .ft-player-skill-radar {
        display: contents;
    }
    .ft-player-skill-editor .ft-player-skill-radar-chart,
    .ft-player-skill-editor .ft-player-skill-radar-legend {
        grid-column: 1;
        justify-self: center;
        width: 100%;
        max-width: 360px;
    }
    .ft-player-skill-editor .ft-player-skill-radar-chart {
        grid-row: 1;
    }
    .ft-player-skill-editor .ft-player-skill-radar-legend {
        grid-row: 2;
    }
    .ft-player-skill-editor__controls {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        width: auto;
    }
}
@media (min-width: 1200px) {
    .ft-player-skill-editor {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

/* Component: PostCard */
.ft-post-list { width: 100%; min-width: 0; max-width: var(--ft-post-feed-width); }
.ft-post-card { display: flex; flex-direction: column; width: 100%; }
.ft-post-card .ft-post-author { min-width: 0; }
.ft-post-card .ft-post-author > div { min-width: 0; }
.ft-post-card .ft-post-author strong { line-height: 1.4; }
.ft-post-card--feed { max-width: var(--ft-post-feed-width); margin-bottom: 0; overflow: visible; border-radius: var(--ft-radius-md); }
.ft-post-card--feed .ft-post-author strong { font-size: .875rem; overflow-wrap: anywhere; }
.ft-post-card--feed .ft-post-author small,
.ft-post-card__repost { color: var(--ft-text-soft); font-size: .75rem; }
.ft-post-card--feed .ft-post-caption { color: var(--ft-text); font-size: .875rem; overflow-wrap: anywhere; }
.ft-post-context-preview--compact { border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-field); color: var(--ft-text); overflow-wrap: anywhere; }
.ft-post-context-preview--compact > span { color: var(--ft-text-soft); font-size: .75rem; letter-spacing: normal; }
.ft-post-context-preview--compact strong { color: var(--ft-text); font-family: inherit; font-size: .875rem; line-height: 1.4; }
.ft-post-context-preview--compact small { color: var(--ft-text-soft); font-size: .75rem; }
.ft-post-context-preview--compact:hover { background: var(--ft-primary-soft); color: var(--ft-text); }
.ft-post-card__media { display: block; width: 100%; }

/* Component: PostMedia */
.ft-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ft-surface-tint);
}
.ft-image-frame > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ft-image-frame > :not(img) { display: grid; place-content: center; }
.ft-post-media__slot { position: relative; width: 100%; min-width: 0; align-items: flex-start; }
.ft-post-media { min-width: 0; }
.ft-post-media .ft-post-media__frame {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--ft-surface-tint);
    touch-action: manipulation;
}
.ft-post-media .ft-post-media__frame:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: -3px; }
.ft-post-media .ft-post-media__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ft-post-card--feed .ft-media-carousel { position: relative; }
.ft-post-card--feed .ft-media-carousel__navigation { position: absolute; inset: auto 0 0; pointer-events: none; }
.ft-post-card--feed .ft-media-carousel__navigation > * { pointer-events: auto; }
.ft-post-card--feed .ft-media-carousel__navigation .ft-button-wrap > .ft-button,
.ft-post-card--feed .ft-media-carousel__navigation small { background: var(--ft-surface); color: var(--ft-text); border-radius: var(--ft-radius-sm); }
.ft-post-compose-invite { flex: 1; min-width: 0; }
.ft-post-compose-entry { box-shadow: none; }
.ft-post-compose-invite .ft-button-wrap > .ft-button { justify-content: flex-start; white-space: normal; color: var(--ft-text-soft); font-weight: 500; }
.ft-post-composer-dialog { width: min(calc(100vw - 2rem), 64rem); max-width: none; }
.ft-post-composer-dialog .ft-dialog__box { height: min(42rem, calc(100dvh - 2rem)); max-height: none; background: var(--ft-surface); }
.ft-post-composer-dialog .ft-dialog__header { flex: none; border-bottom: 1px solid var(--ft-border); }
.ft-post-composer-dialog .ft-dialog__form { flex: 1; }
.ft-post-composer-dialog .ft-dialog__content { flex: 1; padding: 0; overflow: hidden; }
.ft-post-composer-dialog .ft-dialog__content > form { height: 100%; }
.ft-post-composer-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); height: 100%; min-height: 0; }
.ft-post-composer-photo { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ft-field); }
.ft-image-inline { flex: 1; min-height: 0; min-width: 0; }
.ft-image-inline__stage { flex: 1; min-height: 0; overflow: hidden; }
.ft-image-inline__canvas { display: block; max-width: 100%; max-height: 100%; }
.ft-image-inline__thumbnails { overflow-x: auto; flex: none; }
.ft-image-inline__thumbnails > .ft-button-wrap { flex: none; }
.ft-image-inline__thumbnails > :first-child { margin-left: auto; }
.ft-image-inline__thumbnails > :last-child { margin-right: auto; }
.ft-image-inline__thumbnails .ft-button-wrap > .ft-image-inline__thumbnail { width: 5rem; height: 5rem; overflow: hidden; }
.ft-image-inline__thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--ft-radius-sm); }
.ft-image-inline__number { background: var(--ft-surface); color: var(--ft-text); font-size: .65rem; }
.ft-image-inline__thumbnails .ft-image-inline__remove .ft-button__icon { width: 1.25rem; height: 1.25rem; background: var(--ft-surface); color: var(--ft-text); border-radius: 50%; }
.ft-image-inline__thumbnails .ft-image-inline__add { border-style: dashed; }
.ft-post-composer-identity, .ft-location-link--truncate, .ft-location-link--truncate > div, .ft-post-person, .ft-post-people { min-width: 0; }
.ft-location-link--truncate { flex: 1; }
.ft-location-link--truncate > div { flex: 1; }
.ft-location-link--truncate > .ft-person-avatar, .ft-post-person .ft-player-card-mini { flex: none; }
.ft-post-person { max-width: 100%; }
.ft-post-composer-audience { font-size: 0.75rem; }
.ft-post-composer-caption { resize: none; background: var(--ft-field); border-radius: var(--ft-radius-sm); }
.ft-post-composer-mark > .ft-button-wrap { flex: none; }
.ft-post-composer-mark > div { min-width: 0; }
.ft-post-composer-mark > .ft-post-people { flex: 1; }
.ft-post-composer-audience .ft-button__custom-content > svg.ft-icon:last-child { width: 0.75rem; height: 0.75rem; }
.ft-media-carousel, .ft-media-carousel__track { min-width: 0; max-width: 100%; }
.ft-media-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ft-media-carousel__track::-webkit-scrollbar { display: none; }
.ft-media-carousel__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.ft-post-composer-copy { grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; align-content: start; overflow-y: auto; overflow-wrap: anywhere; }
@media (max-width: 767px), (max-width: 1023px) and (pointer: coarse) {
    .ft-post-composer-dialog { top: var(--ft-visual-viewport-top, 0px); bottom: auto; left: var(--ft-visual-viewport-left, 0px); right: auto; width: var(--ft-visual-viewport-width, 100vw); height: var(--ft-visual-viewport-height, 100dvh); max-width: none; max-height: var(--ft-visual-viewport-height, 100dvh); margin: 0; }
    .ft-post-composer-dialog .ft-dialog__box { height: 100%; max-height: 100%; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .ft-post-composer-dialog .ft-dialog__header { padding-top: env(safe-area-inset-top, 0px); }
    .ft-post-composer-dialog .ft-dialog__content { overflow-y: auto; }
    .ft-post-composer-dialog .ft-dialog__content > form { height: auto; }
    .ft-post-composer-layout { display: flex; flex-direction: column; height: auto; }
    .ft-image-inline__stage { flex: none; height: min(34dvh, 24rem); }
    .ft-image-inline--empty .ft-image-inline__stage { height: auto; min-height: var(--ft-control-height-md); }
    .ft-post-composer-dialog:has(textarea:focus) .ft-image-inline__stage { height: 16dvh; }
    .ft-post-composer-copy { overflow-y: visible; }
}
.ft-post-card__comments { border-top: 1px solid var(--ft-border); }
.ft-post-card__compose { display: flex; align-items: start; gap: 10px; padding: 15px 18px; }
.ft-post-card__compose .ft-form-control-wrap.has-action .ft-app-input {
    display: block;
    height: auto;
    min-height: var(--ft-control-height-md);
    padding: 10px 13px;
    line-height: 22px;
    resize: none;
    overflow-y: hidden;
}


/* Component: PostComment */
.ft-comment-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .65rem; padding: .75rem 0; color: var(--ft-text); }
.ft-comment-card--reply { margin-left: 2.5rem; }
.ft-comment-card__body { display: grid; gap: .35rem; min-width: 0; }
.ft-comment-card__text { margin: 0; padding: .65rem .8rem; border-radius: var(--ft-radius-md); background: var(--ft-field); color: var(--ft-text-soft); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.ft-comment-card__text a { color: var(--ft-text); font-weight: 850; text-decoration: none; }
.ft-comment-card__meta { display: flex; align-items: center; gap: .7rem; color: var(--ft-text-muted); font-size: .7rem; }
.ft-comment-card__meta button { padding: .15rem 0; border: 0; background: transparent; color: var(--ft-primary-strong); font-size: .7rem; font-weight: 750; cursor: pointer; }
.ft-comment-card__menu { position: relative; margin-left: auto; }
.ft-comment-card__menu > button svg { width: 17px; height: 17px; }
.ft-comment-card__menu-options { position: absolute; z-index: 12; top: 100%; right: 0; min-width: 155px; padding: .45rem .7rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
@media (max-width: 550px) { .ft-comment-card--reply { margin-left: 1rem; } }


/* Component: Profile/ProfileEditMenu */
.ft-profile-edit { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 36px; padding: .42rem .72rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface); color: var(--ft-primary-strong); font-size: .75rem; font-weight: 750; line-height: 1.2; cursor: pointer; transition: border-color var(--ft-motion-fast), background var(--ft-motion-fast); }
.ft-profile-edit:hover, .ft-profile-edit:focus-visible { border-color: var(--ft-primary); background: var(--ft-primary-soft); }
.ft-profile-edit:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-profile-edit svg { width: 15px; height: 15px; }


/* Component: VariantImage (opt-in readiness) */
img[data-ft-image-state="loading"],
img[data-ft-image-state="error"] { visibility: hidden; }

/* Component: Profile/DeclaredPlayingLevelIndicator */
.ft-declared-playing-level { color: var(--ft-text); font-size: .875rem; font-weight: 600; }
.ft-declared-playing-level__symbol { width: 1.625rem; height: 1.625rem; color: var(--ft-primary-strong); }
.ft-declared-playing-level--compact { font-size: .75rem; font-weight: 500; }
.ft-declared-playing-level--compact .ft-declared-playing-level__symbol { width: 1.25rem; height: 1.25rem; }
.ft-declared-playing-level--compact .ft-declared-playing-level__logo { width: .75rem; height: .75rem; }
.ft-declared-playing-level .ft-declared-playing-level__symbol > .ft-declared-playing-level__ring { width: 100%; height: 100%; }
.ft-declared-playing-level__logo { width: 1rem; height: 1rem; object-fit: contain; }
.ft-declared-playing-level__segment { color: var(--ft-border-strong); }
.ft-declared-playing-level__segment.is-filled { color: var(--ft-primary-strong); }

/* Component: Profile/ProfileHeader */
.ft-cover-preview { min-width: 0; width: 100%; grid-template-columns: minmax(0, 1fr); }
.ft-cover-preview > section { min-width: 0; }
.ft-cover-reference { position: relative; min-width: 0; width: 100%; max-width: 100%; overflow: hidden; }
.ft-cover-reference__content { position: absolute; top: 0; left: 0; transform-origin: top left; }
.ft-profile-cover__image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.ft-profile-cover--card .ft-profile-cover__image[data-ft-cover-presentation="catalog"],
.ft-profile-cover--slim .ft-profile-cover__image[data-ft-cover-presentation="catalog"] {
    object-position: center top;
}

.ft-profile-media { container: ft-profile-media / inline-size; min-width: 0; }
.ft-profile-media__layout { min-width: 0; }
.ft-profile-cover-surface { position: relative; isolation: isolate; overflow: hidden; background: var(--ft-primary-soft); }
.ft-profile-cover-surface > .ft-profile-cover__empty {
    position: absolute;
    inset: 0;
}
.ft-profile-cover__skeleton {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    border-radius: inherit;
}
.ft-profile-cover__image[data-ft-image-state="loading"] ~ .ft-profile-cover__skeleton { display: block; z-index: 2; }
.ft-profile-cover__image:not([data-ft-image-state="error"]) ~ .ft-profile-cover__empty { visibility: hidden; }
.ft-profile-cover--preserved { width: 100%; }
.ft-profile-cover--preserved::after { display: none; }
.ft-profile-cover--preserved.ft-profile-cover {
    height: auto;
    aspect-ratio: 1184 / 300;
    max-height: var(--ft-cover-header-max-height);
}
.ft-profile-cover > .ft-profile-cover__image[data-ft-cover-presentation="preserved"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ft-profile-cover-surface[data-ft-media-preview="true"]:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-profile-cover--catalog::after { display: none; }

@container ft-profile-media (max-width: 767px) {
    .ft-profile-cover--catalog { height: 158px; }
    .ft-profile-cover .ft-profile-cover__image[data-ft-cover-presentation="catalog"] { object-position: center top; }
    .ft-profile-cover--catalog.ft-profile-cover--card { height: auto; }
    .ft-profile-cover--catalog.ft-profile-cover--slim { height: var(--ft-cover-slim-height); }
}

@container ft-profile-media (min-width: 768px) {
    .ft-profile-cover--catalog.ft-profile-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1184 / 300;
        max-height: var(--ft-cover-header-max-height);
    }
    .ft-profile-cover--catalog.ft-profile-cover[data-ft-cover-framing="mixed-heights"] {
        aspect-ratio: 1184 / 380;
        max-height: var(--ft-cover-header-mixed-max-height);
    }
    .ft-profile-cover > .ft-profile-cover__image[data-ft-cover-presentation="catalog"] {
        position: absolute;
        inset: 0;
        object-position: var(--ft-cover-header-position, center 20%);
    }
}

.ft-profile-person { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: end; gap: 22px; position: relative; margin: -62px 15px 0; pointer-events: none; }
.ft-profile-person > .ft-profile-portrait,
.ft-profile-person > .ft-profile-person-copy > *,
.ft-profile-person > .ft-profile-actions { pointer-events: auto; }
.ft-profile-portrait { grid-column: 1; grid-row: 1; align-self: start; z-index: 1; flex: none; width: 132px; height: 150px; display: grid; place-items: center; overflow: hidden; border: 5px solid var(--ft-background); border-radius: 13px; background: var(--ft-primary-soft); }
.ft-profile-person-copy { grid-column: 2; grid-row: 1; align-self: start; min-width: 0; padding-top: 67px; overflow-wrap: anywhere; }
.ft-profile-portrait > .ft-person-avatar { --ft-avatar-size: 100%; width: 100%; height: 100%; border-radius: 8px; font-size: clamp(1.5rem, 3vw, 2.75rem); }
.ft-profile-portrait > .ft-person-avatar .ft-person-avatar__image { width: 100%; height: 100%; border-radius: 8px; }
.ft-profile-actions { grid-column: 3; grid-row: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; padding-bottom: 6px; }
.ft-profile-page--inline-controls .ft-profile-person > .ft-profile-person-copy { grid-column: 2 / -1; }
.ft-profile-controls__actions { flex-shrink: 0; max-width: 100%; margin-left: auto; }
.ft-profile-controls > .ft-segmented .ft-button { padding-inline: .5rem; }
.ft-profile-controls > .ft-segmented .ft-button.selected { text-decoration: underline; text-underline-offset: .2em; }
.ft-profile-controls__actions > .flex-shrink-0 > .ft-button-wrap,
.ft-profile-controls__share > .ft-button-wrap { margin: 0; }
.ft-profile-controls__actions > .flex-shrink-0 > .ft-button-wrap > .ft-button,
.ft-profile-controls__share > .ft-button-wrap > .ft-button {
    width: var(--ft-touch-target);
    min-width: var(--ft-touch-target);
    height: var(--ft-touch-target);
    min-height: var(--ft-touch-target);
    padding: 0;
}
.ft-profile-actions:has(> .ft-profile-edit:first-child + .ft-button-wrap:last-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; width: 340px; max-width: 100%; }
.ft-profile-actions:has(> .ft-profile-edit:first-child + .ft-button-wrap:last-child) > .ft-profile-edit,
.ft-profile-actions:has(> .ft-profile-edit:first-child + .ft-button-wrap:last-child) > .ft-button-wrap { width: 100%; min-height: 46px; }
.ft-profile-actions:has(> .ft-profile-edit:first-child + .ft-button-wrap:last-child) > .ft-button-wrap > .ft-button { width: 100%; height: 100%; }
.ft-profile-navigation { margin: 18px 0 24px; padding-bottom: 10px; }
.ft-profile-navigation .ft-chip { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.ft-profile-navigation .ft-chip svg { width: 16px; height: 16px; }
@container ft-profile-media (max-width: 767px) {
  .ft-profile-cover .ft-cover-label { top: 18px; left: 16px; }
  .ft-profile-person { grid-template-columns: 92px minmax(0, 1fr); gap: 0 10px; margin: -42px 6px 0; }
  .ft-profile-portrait { width: 92px; height: 108px; border-width: 4px; }
  .ft-profile-person-copy { padding-top: 49px; }
  .ft-profile-person-copy h1 { font-size: 26px; margin: 3px 0 4px; }
  .ft-profile-person-copy p { font-size: 11px; }
  .ft-profile-actions { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 10px 0 0; width: 100%; padding: 0; }
}
@media (max-width: 767px) {
  .ft-profile-navigation .ft-chip { flex: none; }
}


/* Component: NavigationBack */
.ft-app-shell .ft-topbar .ft-navigation-back {
    color: var(--ft-shell-topbar-text);
}
.ft-app-shell .ft-topbar .ft-navigation-back:hover,
.ft-app-shell .ft-topbar .ft-navigation-back:focus-visible {
    background: var(--ft-shell-topbar-hover);
    color: var(--ft-shell-topbar-text);
}

/* Component: PullToRefresh */
.ft-pull-to-refresh { --ft-pull-refresh-height: 72px; overflow-anchor: none; }
html.ft-pull-to-refresh-bound, html.ft-pull-to-refresh-bound body { overscroll-behavior-y: none; }
.ft-pull-to-refresh-indicator {
    height: var(--ft-pull-distance, 0px);
    overflow: hidden;
    color: var(--ft-text-soft);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: height .18s ease, opacity .18s ease, visibility .18s ease;
}
.ft-pull-to-refresh-indicator[data-state="pulling"],
.ft-pull-to-refresh-indicator[data-state="ready"],
.ft-pull-to-refresh-indicator[data-state="refreshing"] {
    opacity: 1;
    visibility: visible;
}
.ft-pull-to-refresh-indicator[data-state="idle"],
.ft-pull-to-refresh-indicator[data-state="pulling"],
.ft-pull-to-refresh-indicator[data-state="ready"] { transition: none; }
.ft-pull-to-refresh-indicator[data-state="ready"] { color: var(--ft-primary-strong); }
.ft-pull-to-refresh-indicator__content { min-height: var(--ft-pull-refresh-height); font-size: .875rem; }
.ft-pull-to-refresh-loading.ft-loading--compact { width: 40px; height: 40px; }
.ft-pull-to-refresh-loading .ft-loading__symbol { width: 32px; height: auto; }
@media (prefers-reduced-motion: reduce) {
    .ft-pull-to-refresh-indicator { transition: none; }
}


/* Component: ReactionPicker */
.ft-reaction-icon--idle { color: inherit; }
.ft-reaction-icon--seen { color: var(--bs-blue); }
.ft-reaction-icon--class { color: var(--ft-positive); }
.ft-reaction-icon--oof { color: var(--ft-danger); }
.ft-reaction-picker { position: relative; display: inline-flex; min-width: 0; }
.ft-reaction-picker > .ft-button-wrap > .ft-button.ft-reaction-picker__trigger[aria-pressed] { min-width: var(--ft-touch-target); min-height: var(--ft-touch-target); border-color: transparent; background: transparent; box-shadow: none; text-decoration: none; touch-action: manipulation; user-select: none; -webkit-touch-callout: none; }
.ft-reaction-picker > .ft-button-wrap > .ft-button.ft-reaction-picker__trigger:disabled { opacity: 1; cursor: pointer; }
.ft-reaction-picker__trigger .ft-reaction-icon { width: 22px; height: 22px; }
.ft-reaction-picker:not(.ft-reaction-picker--icon-only) .ft-reaction-picker__trigger { padding-inline: .5rem; }
.ft-reaction-picker__options { position: absolute; z-index: 12; bottom: calc(100% + .55rem); left: 0; display: flex; align-items: stretch; gap: .2rem; padding: .4rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); }
.ft-reaction-picker__options[hidden] { display: none; }
.ft-reaction-picker__options .ft-button-wrap > .ft-button { min-width: 66px; min-height: 66px; border-radius: var(--ft-radius-sm); color: var(--ft-text-soft); font-size: .75rem; text-decoration: none; }
.ft-reaction-picker__options .ft-button__custom-content { display: grid; justify-items: center; gap: .25rem; }
.ft-reaction-picker__options .ft-button-wrap > .ft-button:hover,
.ft-reaction-picker__options .ft-button-wrap > .ft-button.is-selected { background: var(--ft-primary-soft); }
.ft-reaction-picker__options .ft-button.is-selected { box-shadow: inset 0 0 0 2px var(--ft-border-strong); }
.ft-reaction-picker__options .ft-reaction-icon { width: 27px; height: 27px; }
@media (max-width: 400px) { .ft-reaction-picker__options .ft-button-wrap > .ft-button { min-width: 56px; } }


/* Component: ReactionStats */
.ft-reaction-stats { display: inline-flex; align-items: center; gap: .35rem; color: var(--ft-text-muted); font-size: .75rem; }
.ft-reaction-stats__list { display: flex; align-items: center; padding-left: .35rem; }
.ft-reaction-stats__item { position: relative; margin-left: -.35rem; }
.ft-reaction-stats__item > button { display: grid; place-items: center; width: 25px; height: 25px; padding: 2px; border: 2px solid var(--ft-surface); border-radius: 50%; background: var(--ft-surface); cursor: pointer; }
.ft-reaction-stats__item > button:focus-visible { outline: 3px solid var(--ft-focus); }
.ft-reaction-stats__item svg { width: 20px; height: 20px; }
.ft-reaction-stats__count { font-weight: 750; }
.ft-reaction-stats__popover { position: absolute; z-index: 12; bottom: calc(100% + .45rem); left: 0; display: grid; gap: .35rem; min-width: 170px; padding: .8rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface-raised); box-shadow: var(--ft-shadow-card); color: var(--ft-text-soft); font-size: .73rem; }
.ft-reaction-stats__popover strong { display: flex; align-items: center; gap: .35rem; color: var(--ft-text); }
.ft-reaction-stats__popover button { justify-self: start; padding: .3rem 0; border: 0; background: transparent; color: var(--ft-primary-strong); font-weight: 750; cursor: pointer; }
.ft-reaction-stats--compact .ft-reaction-stats__item > button { width: 21px; height: 21px; }
.ft-reaction-stats--compact .ft-reaction-stats__item svg { width: 17px; height: 17px; }
.ft-reaction-stats--breakdown { display: block; }
.ft-reaction-stats--breakdown .ft-reaction-stats__list { display: grid; padding-left: 0; }
.ft-reaction-stats--breakdown .ft-reaction-stats__item { margin-left: 0; }
.ft-reaction-stats--breakdown .ft-reaction-stats__item > button { height: auto; min-height: var(--ft-touch-target); border: 0; border-radius: var(--ft-radius-sm); background: transparent; color: var(--ft-text-soft); }


/* Component: SportGroupQuickSetup */
.ft-quick-setup { color: var(--ft-text); }
.ft-quick-setup-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.ft-quick-setup-header .ft-section-title { margin: 7px 0 8px; }
.ft-quick-setup-description { margin: 0; color: var(--ft-text-muted); line-height: 1.5; }
.ft-quick-setup-progress { height: 6px; margin-top: 26px; overflow: hidden; border-radius: 6px; background: var(--ft-primary-soft); }
.ft-quick-setup-progress-bar { height: 100%; border-radius: inherit; background: var(--ft-primary); transition: width var(--ft-motion-normal); }
.ft-quick-setup-progress-label { margin-top: 9px; color: var(--ft-text-muted); font-size: .75rem; font-weight: 700; }
.ft-quick-setup-content { margin-top: 26px; }
.ft-quick-setup-summary { display: grid; gap: 4px; margin-bottom: 18px; padding: 15px 18px; border-left: 3px solid var(--ft-accent); border-radius: var(--ft-radius-sm); background: var(--ft-accent-soft); }
.ft-quick-setup-summary span { color: var(--ft-text-soft); font-size: .84rem; }
.ft-quick-setup-player-list { display: grid; gap: 8px; }
.ft-quick-setup-player-row, .ft-quick-setup-decision-row, .ft-quick-setup-position-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 12px 15px; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface); }
.ft-quick-setup-player-row.has-warning { border-color: var(--ft-warning); background: var(--ft-warning-soft); }
.ft-quick-setup-player-info { display: grid; gap: 2px; min-width: 0; }
.ft-quick-setup-player-info span { color: var(--ft-text-muted); font-size: .78rem; }
.ft-quick-setup-textarea { width: 100%; min-height: 136px; padding: 12px 14px; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface); color: var(--ft-text); }
.ft-quick-setup-textarea:focus { outline: 0; border-color: var(--ft-primary); box-shadow: 0 0 0 3px var(--ft-focus); }
.ft-quick-setup-position-checkboxes { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ft-quick-setup-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ft-border); }
.ft-quick-setup-finish { padding: 22px; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-primary-soft); }
.ft-quick-setup-finish-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ft-primary); color: var(--ft-on-primary); }
.ft-quick-setup-finish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.ft-quick-setup-finish-grid > div { display: grid; gap: 2px; padding: 12px; border-radius: var(--ft-radius-sm); background: var(--ft-surface); }
.ft-quick-setup-finish-grid strong { font-size: 1.35rem; }
.ft-quick-setup-finish-grid span { color: var(--ft-text-muted); font-size: .75rem; }

@media (max-width: 700px) {
    .ft-quick-setup-header { display: grid; }
    .ft-quick-setup-decision-row, .ft-quick-setup-position-row { align-items: flex-start; flex-direction: column; }
    .ft-quick-setup-finish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ft-quick-setup-actions { display: grid; }
    .ft-quick-setup-actions .ft-button-wrap, .ft-quick-setup-actions .ft-button-wrap > .ft-button { width: 100%; }
}


/* Component: SportGroupScheduleCalendar */
.ft-calendar { display: grid; gap: 1rem; min-width: 0; padding: 1rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); }
.ft-calendar__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.ft-calendar__period { display: flex; align-items: center; gap: .5rem; }
.ft-calendar__period h2 { min-width: 150px; margin: 0; color: var(--ft-text); font-size: 1rem; font-weight: 850; text-align: center; text-transform: capitalize; }
.ft-calendar__period button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ft-border); border-radius: 8px; background: var(--ft-field); color: var(--ft-text-soft); cursor: pointer; }
.ft-calendar__period button:hover { border-color: var(--ft-primary); color: var(--ft-primary-strong); }
.ft-calendar__period svg { width: 18px; height: 18px; fill: none; }
.ft-calendar__views { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ft-border); border-radius: 9px; background: var(--ft-field); }
.ft-calendar__view { min-height: 32px; padding: .35rem .7rem; border: 0; border-radius: 7px; background: transparent; color: var(--ft-text-muted); font-size: .73rem; font-weight: 750; cursor: pointer; }
.ft-calendar__view.is-active { background: var(--ft-primary); color: var(--ft-on-primary); }
.ft-calendar__month { min-width: 0; overflow-x: auto; }
.ft-calendar__weekdays, .ft-calendar__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ft-calendar__weekdays { border-bottom: 1px solid var(--ft-border); }
.ft-calendar__weekdays span { padding: .45rem; color: var(--ft-text-muted); font-size: .68rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.ft-calendar__day { min-width: 0; min-height: 100px; padding: .25rem; border-right: 1px solid var(--ft-border); border-bottom: 1px solid var(--ft-border); }
.ft-calendar__day:last-child { border-right: 0; }
.ft-calendar__day.is-outside .ft-calendar__day-number { color: var(--ft-text-muted); }
.ft-calendar__day.is-selected { background: var(--ft-primary-soft); }
.ft-calendar__day-summary { display: flex; flex-wrap: wrap; align-items: center; }
.ft-calendar__day-number { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ft-text); font-size: .74rem; font-weight: 800; text-align: center; cursor: pointer; }
.ft-calendar__day.is-today .ft-calendar__day-number { background: var(--ft-accent); color: #173d45; }
.ft-calendar__day-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0; border: 0; border-radius: var(--ft-radius-sm); background: transparent; cursor: pointer; }
.ft-calendar__day-count .ft-count-badge, .ft-calendar__day-count .ft-status { flex-shrink: 0; min-width: 1rem; min-height: 0; font-size: .6875rem; line-height: 1.5; letter-spacing: normal; }
.ft-calendar__day-number:focus-visible, .ft-calendar__day-count:focus-visible { outline: 2px solid var(--ft-primary); outline-offset: -2px; }
.ft-calendar__day-events { display: grid; gap: 2px; margin-top: .2rem; }
.ft-calendar__event { display: block; width: 100%; min-width: 0; min-height: 22px; padding: .25rem .4rem; overflow: hidden; border: 0; border-radius: 5px; font-size: .67rem; font-weight: 750; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ft-calendar__event.is-past > span { opacity: .6; }
.ft-calendar__event span { margin-right: .35rem; font-weight: 850; }
.ft-calendar__event:hover, .ft-calendar__event:focus-visible { outline: 2px solid var(--ft-primary); outline-offset: 1px; }
.ft-calendar__more { padding: .25rem .3rem; border: 0; background: transparent; color: var(--ft-text-muted); font-size: .65rem; cursor: pointer; }
.ft-calendar__agenda-week { display: grid; gap: .45rem; }
.ft-calendar__agenda-day { display: flex; align-items: stretch; gap: .6rem; min-width: 0; padding: .55rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); }
.ft-calendar__agenda-date { display: grid; place-items: center; align-content: center; width: 54px; flex: none; padding: .25rem; border: 0; border-radius: 8px; background: var(--ft-field); color: var(--ft-text); cursor: pointer; }
.ft-calendar__agenda-date span { color: var(--ft-text-muted); font-size: .66rem; text-transform: uppercase; }
.ft-calendar__agenda-date strong { font-size: 1.05rem; }
.ft-calendar__agenda-items { display: grid; align-content: center; gap: .35rem; min-width: 0; flex: 1; }
.ft-calendar__agenda-items .ft-calendar__event { display: flex; align-items: center; gap: .6rem; min-height: 35px; padding: .45rem .55rem; font-size: .75rem; }
.ft-calendar__agenda-items .ft-calendar__event strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-calendar__agenda-items .ft-calendar__event svg { width: 15px; height: 15px; margin-left: auto; fill: none; }
.ft-calendar__no-events { color: var(--ft-text-muted); font-size: .73rem; }
@media (max-width: 650px) {
    .ft-calendar { padding: .75rem; }
    .ft-calendar__period h2 { min-width: 130px; font-size: .88rem; }
    .ft-calendar__weekdays span { padding: .3rem .1rem; }
    .ft-calendar__month { display: grid; grid-template-rows: auto repeat(6, 1fr); align-self: start; }
    .ft-calendar__day { min-height: 0; padding: 1px; }
    .ft-calendar__day-summary { display: grid; grid-template-rows: repeat(2, minmax(1.5rem, auto)); justify-items: stretch; }
    .ft-calendar__day-number { justify-self: center; width: auto; min-width: 24px; min-height: 1.5rem; height: auto; padding: 0; font-size: .7rem; }
    .ft-calendar__day-count { min-width: 0; min-height: 1.5rem; }
    .ft-calendar__day-count .ft-count-badge, .ft-calendar__day-count .ft-status { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .ft-calendar__day-events { display: none; }
}


/* Component: SportGroupScheduleCalendarEventsPreview */
.ft-event-preview { margin-bottom: .8rem; }
.ft-event-preview__date { margin: 0 0 .45rem; color: var(--ft-text-muted); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.ft-event-preview__list { display: grid; gap: .45rem; }
.ft-event-preview__item { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 66px; padding: .65rem .8rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-event-preview__item:hover, .ft-event-preview__item:focus-visible { border-color: var(--ft-primary); background: var(--ft-field); }
.ft-event-preview__item.is-past .ft-event-preview__info { opacity: .65; }
.ft-event-preview__time { display: grid; place-items: center; width: 58px; height: 44px; flex: none; border-radius: 8px; font-size: .85rem; }
.ft-event-preview__info { display: grid; gap: .2rem; min-width: 0; flex: 1; }
.ft-event-preview__info strong { color: var(--ft-text); font-size: .8rem; }
.ft-event-preview__info span { overflow: hidden; color: var(--ft-text-muted); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.ft-event-preview__item > svg { width: 17px; height: 17px; flex: none; color: var(--ft-primary-strong); fill: none; }


/* Component: SportGroupScheduleEventPreview */
.ft-game-card.is-past .ft-game-match, .ft-game-card.is-past .ft-game-card-bottom { opacity: .72; }
.ft-game-card svg { width: 15px; height: 15px; fill: none; }
.ft-game-card .ft-team-crest svg { width: 20px; height: 20px; }
@media (max-width: 550px) {
    .ft-game-card .ft-game-date { font-size: 10px; }
    .ft-game-card .ft-match-names { min-width: 0; }
    .ft-game-card .ft-match-names strong, .ft-game-card .ft-match-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}


/* Component: SportGroupTypeSelector */
.ft-group-type-option {
    --ft-choice-accent: var(--ft-primary);
    --ft-choice-strong: var(--ft-primary-strong);
    --ft-choice-soft: var(--ft-primary-soft);
    --ft-choice-on-accent: var(--ft-brand-white);
    --ft-choice-focus: var(--ft-focus);
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface);
    cursor: pointer;
    transition: border-color var(--ft-motion-fast), background var(--ft-motion-fast);
}
.ft-group-type-option--secondary {
    --ft-choice-accent: var(--ft-secondary);
    --ft-choice-strong: var(--ft-secondary-strong);
    --ft-choice-soft: var(--ft-secondary-soft);
    --ft-choice-on-accent: var(--ft-on-secondary);
    --ft-choice-focus: var(--ft-secondary-strong);
}
.ft-group-type-option:hover,
.ft-group-type-option:focus-within {
    border-color: var(--ft-choice-accent);
}
.ft-group-type-option.is-selected {
    border-color: var(--ft-choice-accent);
    background: var(--ft-choice-soft);
}
.ft-group-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ft-group-type-option input:focus-visible ~ .ft-group-type-option__copy {
    outline: 3px solid var(--ft-choice-focus);
    outline-offset: 4px;
    border-radius: 2px;
}
.ft-group-type-option:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.ft-group-type-option__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--ft-choice-soft);
    color: var(--ft-choice-strong);
}
.ft-group-type-option.is-selected .ft-group-type-option__icon {
    background: var(--ft-choice-accent);
    color: var(--ft-choice-on-accent);
}
.ft-group-type-option__icon svg { width: 24px; height: 24px; }
.ft-group-type-option__copy { display: grid; gap: 4px; min-width: 0; }
.ft-group-type-option__copy small {
    color: var(--ft-choice-strong);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
}
.ft-group-type-option__copy strong { color: var(--ft-text); font-size: 21px; line-height: 1.1; }
.ft-group-type-option__copy > span { color: var(--ft-text-soft); font-size: 12px; line-height: 1.45; }
.ft-group-type-option__check { flex: none; width: 17px; height: 17px; margin-left: auto; border: 2px solid var(--ft-border); border-radius: 50%; background: var(--ft-surface); }
.ft-group-type-option.is-selected .ft-group-type-option__check {
    border: 5px solid var(--ft-choice-accent);
}
@media (max-width: 767px) { .ft-group-type-option { min-height: 0; } }


/* Dedicated tasks reserve their own content and action regions inside the visual viewport. */
html:has(.ft-app-shell--task),
html:has(.ft-app-shell--task) body { overflow: hidden; }
.ft-app-shell.ft-app-shell--task {
    --ft-page-padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    --ft-bottom-navigation-space: 0px;
    position: fixed;
    top: calc(var(--ft-task-viewport-top, 0px) + var(--ft-task-host-top, 0px));
    right: 0;
    left: 0;
    height: max(0px, calc(var(--ft-task-viewport-height, 100dvh) - var(--ft-task-host-top, 0px)));
    min-height: 0;
}
.ft-app-shell--task > .ft-app-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ft-app-shell--task .ft-topbar { position: static; flex-shrink: 0; }
.ft-app-shell.ft-app-shell--task .ft-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: none;
    overflow: hidden;
}
.ft-main-grid.ft-main-grid--task { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; }
.ft-main-grid--task > .ft-content-area { display: flex; flex-direction: column; min-height: 0; }
.ft-task {
    width: 100%;
    max-width: 680px;
    min-width: 0;
    min-height: 0;
    flex: 1;
    margin: 0;
    overflow: auto;
}
.ft-task__content { flex: 1; min-width: 0; min-height: var(--ft-control-height-md); overflow: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--ft-text-muted) transparent; }
.ft-task__content .ft-page-intro { flex: 1; min-width: 0; }
.ft-task__content .ft-page-intro h1 { overflow-wrap: anywhere; }
.ft-task__footer { flex-shrink: 0; }
.ft-task > .ft-sport-editor { flex: 1; min-height: 0; }
.ft-app-shell--task .ft-priority-notice { position: static; flex-shrink: 0; width: 100%; transform: none; }
.ft-app-shell--task .ft-toast-layer { bottom: 1rem; }
.ft-sport-editor .ft-button-wrap > button.ft-button.ft-button--text,
.ft-group-create .ft-button-wrap > button.ft-button.ft-button--text { text-decoration: none; }
.ft-group-gender { --ft-group-gender-mixed: linear-gradient(90deg, var(--ft-accent-soft) 50%, var(--ft-primary-soft) 50%); }
.ft-group-gender > .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5em), 1fr));
    gap: var(--bs-gutter-y);
    margin: 0;
}
.ft-group-gender .ft-group-type-option {
    display: grid;
    align-content: center;
    justify-items: center;
    aspect-ratio: 1;
    min-height: min-content;
    text-align: center;
    overflow-wrap: anywhere;
}
.ft-group-gender .ft-group-type-option:focus-within { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-group-gender .ft-group-type-option:has(.ft-group-gender__icon--male) {
    --ft-choice-accent: var(--ft-accent);
    --ft-choice-soft: var(--ft-accent-soft);
}
.ft-group-gender .ft-group-type-option.is-selected:has(.ft-group-gender__icon--mixed) { background: var(--ft-group-gender-mixed); }
.ft-group-gender .ft-group-type-option__check { position: absolute; top: .5rem; right: .5rem; }
@media (min-width: 768px) {
    .ft-group-gender > .row {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 7.5rem));
    }
    .ft-group-gender .ft-group-type-option { aspect-ratio: auto; }
}
.ft-group-gender__icon {
    min-width: var(--ft-control-height-md);
    min-height: var(--ft-control-height-md);
    border-radius: var(--ft-radius-md);
}
.ft-group-gender__icon svg { width: 1.75rem; height: 1.75rem; flex: none; }
.ft-group-gender__icon--male { background: var(--ft-accent-soft); color: var(--ft-accent-strong); }
.ft-group-gender__icon--female { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-group-gender__icon--mixed { background: var(--ft-group-gender-mixed); }
.ft-group-gender__male { color: var(--ft-accent-strong); }
.ft-group-gender__female { color: var(--ft-primary-strong); }

/* Components: sport profile selection. The map grid grows with its labels. */
.ft-choice-chip,
.ft-button-wrap > .ft-button.ft-choice-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    min-height: var(--ft-control-height-md);
    padding: .5rem .7rem;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    background: var(--ft-surface);
    color: var(--ft-text-soft);
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.ft-choice-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ft-choice-chip.is-selected,
.ft-button-wrap > .ft-button.ft-choice-chip.is-selected { border-color: var(--ft-primary); background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-choice-chip:focus-within { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-choice-chip:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.ft-choice-chip > .ft-icon, .ft-choice-chip .ft-button__content > .ft-icon, .ft-choice-chip .ft-button__custom-content > .ft-icon, .ft-choice-chip__check .ft-icon { width: 1.1rem; height: 1.1rem; flex: none; }
.ft-choice-chip__check { display: none; flex: none; }
.ft-choice-chip.is-selected .ft-choice-chip__check { display: inline-flex; }
.ft-sport-formats, .ft-sport-formats > div, .ft-sport-formats .ft-button-wrap { min-width: 0; max-width: 100%; }
.ft-sport-formats .ft-choice-chip.is-active { outline: 2px solid var(--ft-primary); outline-offset: 2px; }
.ft-button-wrap > .ft-button.ft-choice-chip:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 3px; }
.ft-sport-focus { min-width: 0; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); }
.ft-sport-focus .ft-diff-viewer__heading { min-width: 0; }
.ft-sport-focus__summary { color: var(--ft-text-soft); font-size: .875rem; font-weight: 400; overflow-wrap: anywhere; }
.ft-sport-focus .ft-button.ft-sport-focus__trigger { width: 100%; padding: 1rem; border: 0; border-radius: var(--ft-radius-md); white-space: normal; }
.ft-sport-focus__trigger > span { min-width: 0; }
.ft-sport-profile { max-width: 680px; min-width: 0; container: sport-profile / inline-size; }
.ft-sport-profile h3, .ft-sport-profile h4 { overflow-wrap: anywhere; }
.ft-sport-editor__title:focus { outline: none; }
.ft-group-create__title:focus { outline: none; }
.ft-sport-editor__actions .ft-button-wrap > .ft-button.ft-dialog__action {
    justify-content: flex-start;
    min-height: 64px;
    white-space: normal;
}
.ft-sport-editor__icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: var(--ft-radius-md);
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}
.ft-sport-editor__icon svg { width: 22px; height: 22px; }
.ft-sport-editor__copy { min-width: 0; overflow-wrap: anywhere; }
.ft-sport-editor__arrow { flex: 0 0 18px; width: 18px; height: 18px; color: var(--ft-text-soft); }
.ft-player-review { max-width: 56rem; min-width: 0; overflow-wrap: anywhere; }
.ft-player-review > section.ft-surface { border-radius: var(--ft-radius-lg); }
.ft-player-review .ft-button-wrap { flex-shrink: 0; }
.ft-player-review__profile { border-radius: var(--ft-radius-sm); background: var(--ft-surface-tint); }
.ft-sport-dominance .ft-segmented--radios {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5em), 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    padding: 0;
    background: transparent;
}
.ft-sport-dominance .ft-check { min-width: 0; align-items: stretch; }
.ft-sport-dominance .ft-check > label {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-self: stretch;
    justify-content: center;
    gap: .25rem;
    min-width: 0;
    min-height: var(--ft-control-height-md);
    padding: .5rem .15rem !important;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-surface);
    color: var(--ft-text-soft);
    font-size: .8125rem;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}
.ft-sport-dominance input:checked + label { border-color: var(--ft-primary); background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-sport-dominance input:checked + label::after { content: "✓"; position: absolute; top: .1rem; right: .25rem; font-weight: 800; }
.ft-sport-dominance__feet { display: flex; justify-content: center; gap: .15rem; width: 100%; min-width: 0; min-height: 2.25rem; }
.ft-sport-profile-dominance { flex: 0 1 1.4rem; min-width: 0; width: 1.4rem; height: 2.25rem; max-width: 100%; fill: var(--ft-surface-tint); stroke: var(--ft-text-muted); stroke-width: 1; }
.ft-sport-profile-dominance--right { transform: scaleX(-1); }
.ft-sport-profile-dominance.is-emphasized { fill: var(--ft-primary-soft); stroke: var(--ft-primary-strong); stroke-width: 1.7; }
.ft-sport-profile-dominance .ft-sport-dominance__detail { fill: none; stroke-linecap: round; }
.ft-sport-dominance__unknown { font-size: 1.7rem; line-height: 2.25rem; font-weight: 800; }
.ft-sport-map {
    --ft-sport-map-ratio: 4 / 5;
    position: relative;
    display: grid;
    min-width: 0;
    inline-size: min(100%, 24rem, max(16rem, calc((100svh - var(--ft-topbar-height) - var(--ft-page-padding-bottom)) * var(--ft-sport-map-ratio))));
    aspect-ratio: var(--ft-sport-map-ratio);
    padding: .5rem;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: repeating-linear-gradient(90deg, transparent 0 20%, color-mix(in srgb, var(--ft-primary) 3%, transparent) 20% 40%), var(--ft-primary-soft);
}
.ft-sport-map--sand { --ft-sport-map-ratio: 4 / 3; }
.ft-sport-map--sand, .ft-sport-map--sand-pitch { background: var(--ft-accent-soft); }
.ft-sport-map--volleyball { --ft-sport-map-ratio: 4 / 3; background: linear-gradient(110deg, var(--ft-accent-soft), var(--ft-primary-soft)); }
.ft-sport-map__lines {
    position: absolute;
    inset: .5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    fill: none;
    stroke: var(--ft-primary);
    stroke-width: .7;
    opacity: .35;
    pointer-events: none;
}
.ft-sport-map__grid { position: relative; display: grid; gap: .25rem; align-content: space-between; min-width: 0; }
.ft-sport-map--sand .ft-sport-map__grid { align-content: center; }
.ft-sport-map__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: min(.375rem, 6px); align-items: center; min-width: 0; }
.ft-sport-map__grid--coordinates { grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: repeat(14, minmax(min-content, 1fr)); gap: 0; align-items: center; align-content: stretch; }
.ft-sport-map__row--coordinates { display: contents; }
.ft-sport-map__slot { min-width: 0; }
.ft-sport-map__slot > .ft-button-wrap { display: flex; width: 100%; min-width: 0; }
.ft-sport-map__slot .ft-button.ft-sport-map__choice {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: var(--ft-control-height-md);
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: normal;
}
.ft-sport-map__slot .ft-sport-map__choice .ft-sport-map__shirt { width: 1.5rem; height: 1.5rem; max-width: 100%; flex: none; fill: var(--ft-surface); stroke: var(--ft-primary); stroke-width: 1; color: var(--ft-primary-strong); }
.ft-sport-map__name { max-width: 100%; padding: .1rem .2rem; border-radius: .3rem; background: var(--ft-surface); color: var(--ft-text-soft); font-size: .75rem; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.ft-sport-map__slot--selected .ft-button.ft-sport-map__choice .ft-sport-map__shirt { fill: var(--ft-primary); color: var(--ft-on-primary); }
.ft-sport-map__slot--position-only .ft-button.ft-sport-map__choice .ft-sport-map__shirt { fill: var(--ft-surface); stroke: var(--ft-primary-strong); stroke-width: 1.8; stroke-dasharray: 3 2; }
.ft-sport-map__mark { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none; }
.ft-sport-map__equivalent { display: inline-flex; align-items: center; gap: .15rem; padding: .05rem .3rem; border: 1px solid var(--ft-border); border-radius: 999px; background: var(--ft-surface); color: var(--ft-text); font-size: .75rem; line-height: 1.4; }
.ft-sport-map__choice .ft-sport-map__equivalent .ft-icon { width: 1em; height: 1em; }
.ft-sport-preference { border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface); }
.ft-sport-preference summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; min-height: var(--ft-control-height-md); padding: .65rem .75rem; cursor: pointer; }
.ft-sport-preference summary:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: 2px; }
.ft-sport-preference__copy { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.ft-sport-preference__copy > span { font-size: .875rem; color: var(--ft-text-soft); }
.ft-sport-preference__copy small { font-size: .8125rem; color: var(--ft-text-muted); }
.ft-sport-preference__edit { color: var(--ft-primary-strong); font-size: .875rem; font-weight: 650; }
.ft-sport-preference__edit::after { content: " +"; }
.ft-sport-preference details[open] .ft-sport-preference__edit::after { content: " −"; }

/* Component: ResultTable */
.ft-results-state { margin-top: 1rem; padding: 2rem; border: 1px dashed var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); text-align: center; }
.ft-results-state h2 { margin: 0 0 .35rem; color: var(--ft-text); font-size: 1.15rem; font-weight: 800; }
.ft-results-state p { margin: 0; color: var(--ft-text-soft); font-size: .875rem; }
.ft-results-update-note { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; color: var(--ft-text-soft); font-size: .8rem; }
.ft-results-updating { opacity: .65; pointer-events: none; }
.ft-agenda-updating { opacity: .55; pointer-events: none; }
.ft-results-page-size { width: auto; min-width: 72px; background-color: var(--ft-surface); color: var(--ft-text); border-color: var(--ft-border); }
.ft-results-count { color: var(--ft-text-soft); font-size: .8rem; font-weight: 650; }
.ft-results-view, .ft-results-page-control, .ft-results-page {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    min-height: 40px; padding: .45rem .7rem; border: 1px solid var(--ft-border);
    border-radius: 8px; background: var(--ft-surface); color: var(--ft-text-soft);
    font-size: .75rem; font-weight: 750; text-decoration: none; cursor: pointer;
}
.ft-results-view:hover, .ft-results-page-control:hover, .ft-results-page:hover { background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-results-view.is-selected, .ft-results-page.is-current { border-color: var(--ft-primary); background: var(--ft-primary-soft); color: var(--ft-primary-strong); }
.ft-results-page-control:disabled { opacity: .4; cursor: default; }
.ft-results-pagination { justify-content: center; }
.ft-results-pages { flex: 0 1 auto; max-width: min(100%, 440px); min-width: 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.ft-results-page { min-width: 40px; scroll-snap-align: center; }
.ft-results-pages::-webkit-scrollbar { display: none; }
.ft-results-jump { color: var(--ft-text-soft); font-size: .8rem; white-space: nowrap; }
.ft-results-jump input { width: 68px; background: var(--ft-surface); color: var(--ft-text); border-color: var(--ft-border); }
.ft-results-table { overflow: hidden; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); }
.ft-results-table__head, .ft-results-table__row { display: flex; align-items: center; gap: .5rem; padding: .9rem 1rem; }
.ft-results-table__head { background: var(--ft-field); color: var(--ft-text-soft); font-size: .75rem; font-weight: 800; }
.ft-results-table__row { min-height: 64px; border-top: 1px solid var(--ft-border); color: var(--ft-text); font-size: .875rem; }
.ft-results-table__row--compact { min-height: 52px; }
.ft-results-table__row:hover { background: var(--ft-primary-soft); }
.ft-results-table__row .ft-button-wrap > .ft-button.ft-button--icon-only { border-color: var(--ft-border-strong); background: var(--ft-surface-raised); color: var(--ft-text); }
.ft-results-table__row .ft-button-wrap > .ft-button.ft-button--icon-only:hover,
.ft-results-table__row .ft-button-wrap > .ft-button.ft-button--icon-only:focus-visible { border-color: var(--ft-primary); background: var(--ft-primary); color: var(--ft-on-primary); }
.ft-results-cell, .ft-results-table .ft-results-cell { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.ft-results-table .ft-results-cell p { margin: 0; }

@media (max-width: 767.98px) {
    .ft-results-table__head { display: none; }
    .ft-results-table__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; padding: 1rem; }
    .ft-results-table__row:first-child { border-top: 0; }
    .ft-results-pagination { display: grid !important; grid-template-columns: repeat(4, 44px); justify-content: center; gap: .5rem; }
    .ft-results-page-control { min-width: 44px; font-size: 1.3rem; line-height: 1; }
    .ft-results-pages { grid-row: 2; grid-column: 1 / -1; width: min(100%, 352px); max-width: 100%; justify-self: center; }
    .ft-results-jump { grid-row: 3; grid-column: 1 / -1; justify-self: center; }
}

/* Page: LocationReservation/Hub */
.ft-reservation-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 5.5rem), 1fr));
}

/* Location agenda: the same calendar and slot palette used by the design system. */
.ft-location-schedule .ft-accent-dot { color: var(--ft-primary); }
.ft-location-schedule .ft-week-day span { font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.ft-location-schedule .ft-week-day strong { font-size: 1.1rem; }
.ft-location-schedule .ft-week-day:hover:not(.selected) { background: var(--ft-primary-soft); color: var(--ft-text); }
.ft-location-schedule-summary { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--ft-text-soft); font-size: .8rem; }
.ft-location-schedule-summary strong { color: var(--ft-text); }
.ft-location-schedule-board { overflow: hidden; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-md); background: var(--ft-surface); }
.ft-location-schedule-scroll { max-height: min(70vh, 760px); overflow: auto; }
.ft-location-schedule-grid { display: grid; grid-template-columns: 72px repeat(var(--ft-location-schedule-area-count), minmax(190px, 1fr)); min-width: max(100%, calc(72px + 190px * var(--ft-location-schedule-area-count))); }
.ft-location-schedule-corner, .ft-location-schedule-area-header { position: sticky; top: 0; z-index: 3; display: grid; align-content: center; min-height: 66px; padding: .6rem .8rem; border-bottom: 1px solid var(--ft-border); background: var(--ft-primary-soft); }
.ft-location-schedule-corner { left: 0; z-index: 4; font-size: .75rem; font-weight: 800; }
.ft-location-schedule-area-header { border-left: 1px solid var(--ft-border); }
.ft-location-schedule-area-header small { color: var(--ft-text-soft); font-size: .7rem; }
.ft-location-schedule-area-header strong { color: var(--ft-text); font-size: .85rem; }
.ft-location-schedule-time-rail, .ft-location-schedule-area-column { position: relative; min-width: 0; }
.ft-location-schedule-time-rail { border-right: 1px solid var(--ft-border); }
.ft-location-schedule-area-column { border-left: 1px solid var(--ft-border-subtle); }
.ft-location-schedule-area-column.location-start { border-left-color: var(--ft-border-strong); }
.ft-location-schedule-time-label { position: absolute; left: .7rem; color: var(--ft-text-soft); font-size: .7rem; font-weight: 750; transform: translateY(-50%); }
.ft-location-schedule-grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--ft-border-subtle); }
.ft-location-schedule-grid-line.hour { background: var(--ft-border); }
.ft-location-schedule-slot { position: absolute; left: 4px; right: 4px; z-index: 1; display: grid; align-content: center; gap: 2px; overflow: hidden; padding: .25rem .5rem; border: 1px solid var(--ft-border); border-radius: 7px; background: var(--ft-surface-tint); color: var(--ft-text); text-align: left; }
.ft-location-schedule-slot.is-free { border-color: var(--ft-accent-strong); background: var(--ft-accent-soft); }
.ft-location-schedule-slot.is-occupied { border-color: var(--ft-primary); background: var(--ft-primary-soft); }
.ft-location-schedule-slot.is-past { opacity: .6; }
button.ft-location-schedule-slot:hover { border-color: var(--ft-primary); filter: brightness(.98); }
.ft-location-schedule-slot-title { overflow: hidden; font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ft-location-schedule-slot-detail { overflow: hidden; color: var(--ft-text-soft); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) { .ft-location-schedule .ft-week-day { min-height: 56px; } .ft-location-schedule .ft-week-day span { font-size: .6rem; } .ft-location-schedule-grid { grid-template-columns: 64px repeat(var(--ft-location-schedule-area-count), minmax(160px, 1fr)); min-width: max(100%, calc(64px + 160px * var(--ft-location-schedule-area-count))); } }

/* Component: AddressForm */
/* Components: SearchAddressDropdown / AddressForm */
.ft-search-address__panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + .65rem);
    right: 0;
    width: min(390px, calc(100vw - 1rem));
    max-height: min(74dvh, 680px);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface-raised);
    color: var(--ft-text);
    box-shadow: var(--ft-shadow-card);
}

.ft-search-address__list { min-height: 0; }

.ft-search-address__panel--bottom {
    position: fixed;
    top: auto;
    right: .5rem;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 68px - 76px - 1rem - env(safe-area-inset-bottom));
}

@media (max-width: 991.98px) {
    .ft-search-address__panel {
        position: fixed;
        top: calc(68px + .5rem);
        right: auto;
        left: 50%;
        max-height: calc(100dvh - 68px - 76px - 1rem - env(safe-area-inset-bottom));
        transform: translateX(-50%);
    }

    .ft-search-address__panel--bottom { top: auto; }
}

@media (max-width: 767.98px) {
    .ft-search-address__panel:not(.ft-search-address__panel--bottom) { top: calc(60px + .5rem); }
}

.ft-address-result { padding: .75rem; border: 1px solid var(--ft-border); border-radius: var(--ft-radius-sm); background: var(--ft-surface-tint); color: var(--ft-text); font-size: .875rem; }
.ft-address-result .ft-icon { flex: none; width: 20px; height: 20px; color: var(--ft-primary-strong); }

/* Component: PlayerSportProfileForm */
.ft-position-side .ft-check { min-height: 32px; }

/* Component: InputSelectExtended */
html[data-theme="dark"] .ft-form-field .form-select { background-color: var(--ft-surface-raised); border-color: var(--ft-border-strong); color-scheme: dark; }


/* Page: Home */
/* Only live-data states absent from the design system need page-specific styling. */
.ft-link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.ft-rail-empty { margin: 1rem 0; color: var(--ft-text-muted); font-size: 11px; line-height: 1.5; }
.ft-home-actions { margin-top: 32px; }
.ft-home-actions__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 9px; }
.ft-home-actions__list > button { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 11px 13px; border: 1px solid var(--ft-border); border-radius: 6px; background: var(--ft-surface); color: var(--ft-text); text-align: left; cursor: pointer; }
.ft-home-actions__list > button:hover { border-color: var(--ft-primary); background: var(--ft-primary-soft); }
.ft-home-actions__list > button > span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.ft-home-actions__list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ft-home-actions__list small { overflow: hidden; color: var(--ft-text-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ft-home-actions__list svg { width: 19px; height: 19px; color: var(--ft-primary); }
.ft-home-message { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--ft-border); border-radius: 8px; background: var(--ft-surface); color: var(--ft-text-soft); font-size: 12px; }
.ft-home-message button { border: 0; background: transparent; color: var(--ft-primary-strong); font-weight: 800; cursor: pointer; }

/* Page: Home — one prominent next action, player identity and compact discovery. */
.ft-home-highlight {
    overflow: hidden;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: linear-gradient(120deg, var(--ft-surface), var(--ft-primary-soft));
    border-inline-start: 4px solid var(--ft-primary);
}

.ft-home-highlight__title {
    max-width: 24ch;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ft-home-highlight__description {
    max-width: 48ch;
    color: var(--ft-text-soft);
    font-size: 1rem;
    line-height: 1.6;
}

.ft-home-highlight__badge {
    background: var(--ft-primary);
    color: var(--ft-on-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.ft-home-highlight__date {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}

.ft-home-highlight__clock {
    min-width: 0;
}

.ft-home-highlight__time {
    color: var(--ft-text);
    font-size: clamp(1.625rem, 2.5vw, 2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.ft-app-shell .ft-home-profile {
    border-inline-start: 4px solid var(--ft-primary);
    background: linear-gradient(110deg, var(--ft-surface), color-mix(in srgb, var(--ft-accent-soft) 45%, var(--ft-surface)));
}

.ft-home-profile__portrait {
    border: 3px solid var(--ft-surface);
    border-radius: var(--ft-radius-md);
    box-shadow: 0 0 0 1px var(--ft-primary-soft);
    transform: rotate(-6deg);
}

.ft-home-profile__title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 750;
    line-height: 1.2;
}

.ft-home-discover__icon {
    display: grid;
    place-items: center;
    width: var(--ft-control-height-lg);
    height: var(--ft-control-height-lg);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}

.ft-home-discover__icon--secondary {
    background: var(--ft-secondary-soft);
    color: var(--ft-secondary-strong);
}

.ft-home-discover__icon--tertiary {
    background: var(--ft-tertiary-soft);
    color: var(--ft-tertiary-strong);
}

.ft-home-discover__icon .ft-app-icon {
    width: 26px;
    height: 26px;
}

.ft-home-discover__card h3 {
    font-weight: 750;
    line-height: 1.2;
}

.ft-home-discover__card:focus-within {
    border-color: var(--ft-primary);
}

@media (hover: hover) {
    .ft-home-discover__card:hover {
        border-color: var(--ft-primary);
        background: var(--ft-hover-surface);
    }
}

/* Page: Home — upcoming releases, presented without navigation affordances. */
.ft-home-coming {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface-tint);
}

.ft-home-coming__card {
    border-top: 2px solid var(--ft-primary);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-surface);
}

.ft-home-coming__icon {
    width: var(--ft-control-height-sm);
    height: var(--ft-control-height-sm);
    color: var(--ft-primary-strong);
}

/* Pattern: compact management collections */
.ft-management-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
}

.ft-management-row__body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ft-management-row__menu {
    grid-column: 3;
    grid-row: 1;
}

.ft-management-row__action {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .ft-management-row {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
    }

    .ft-management-row__action {
        grid-column: 3;
        grid-row: 1;
    }

    .ft-management-row__menu {
        grid-column: 4;
    }
}

/* Page: TransactionalLog/Search — audit summary and technical fields */
.ft-transaction-log {
    overflow-wrap: anywhere;
}

.ft-transaction-log__mark {
    display: inline-grid;
    place-items: center;
    width: var(--ft-control-height-md);
    height: var(--ft-control-height-md);
    border-radius: var(--ft-radius-sm);
    color: var(--ft-primary-strong);
    background: var(--ft-primary-soft);
}

.ft-transaction-log__action {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}

.ft-transaction-log__panel {
    background: var(--ft-field);
    border: 1px solid var(--ft-border-subtle);
    border-radius: var(--ft-radius-sm);
}

.ft-transaction-log__field {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
    align-items: center;
    min-height: var(--ft-control-height-md);
    border-bottom: 1px solid var(--ft-border-subtle);
}

.ft-transaction-log__field:last-child {
    border-bottom: 0;
}

.ft-transaction-log__field dd,
.ft-transaction-log__value {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Page: UserProfile connections */
.ft-connection-row:hover,
.ft-connection-row:focus-within {
    background: var(--ft-primary-soft);
}

.ft-connection-row > a:focus-visible {
    outline: 2px solid var(--ft-primary);
    outline-offset: 2px;
}

/* Page: SportGroup/Search */
.ft-group-result {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--ft-radius-lg);
    box-shadow: var(--ft-shadow-card);
}

/* Page: SportGroupSchedule/Match */
.ft-match-scoreboard .ft-match-score {
    color: var(--ft-primary-strong);
    font-family: var(--ft-font-primary);
    font-size: clamp(1.6rem, 6vw, 4.25rem);
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.ft-match-score span {
    color: var(--ft-text-muted);
    font-size: .48em;
}

.ft-match-help {
    color: var(--ft-text-soft);
    font-size: .875rem;
}

.ft-match-event {
    min-height: var(--ft-touch-target);
}

.ft-match-event-minute {
    min-width: 2.5rem;
    color: var(--ft-primary-strong);
}

/* Page: User/Login */
html:has(.ft-auth) { overflow: hidden; scrollbar-gutter: auto; }
html:has(.ft-auth) body { overflow: hidden; }
.ft-auth__card > header:focus { outline: none; }
.ft-auth__card .ft-social-login-button { width: 48px; height: 48px; min-height: 48px; padding: 0; }
.ft-auth {
    position: fixed;
    top: calc(var(--ft-task-viewport-top, 0px) + var(--ft-task-host-top, 0px));
    right: 0;
    left: 0;
    height: max(0px, calc(var(--ft-task-viewport-height, 100dvh) - var(--ft-task-host-top, 0px) - var(--ft-analytics-notice-height, 0px)));
    min-height: 0;
    overflow: hidden;
}
.ft-auth__pitch {
    min-height: 0;
    border-radius: 0;
}
.ft-auth > .ft-pitch-surface { opacity: .58; }
.ft-auth__intro {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: clamp(30px, 6vw, 90px);
    color: var(--ft-brand-white);
}
.ft-auth__hero { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; }
.ft-auth__intro .ft-eyebrow { color: var(--ft-accent); }
.ft-auth__intro h1 { margin: 13px 0 14px; color: var(--ft-brand-white); font-family: var(--ft-font-primary); font-size: clamp(44px, 5vw, 76px); font-weight: 850; line-height: .95; letter-spacing: -.065em; }
.ft-auth__intro h1 em { color: var(--ft-accent); font-style: normal; }
.ft-auth__intro p { max-width: 380px; margin: 0; color: #F0EEFF; font-size: 14px; line-height: 1.5; }
.ft-auth__panel { min-width: 0; min-height: 0; padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); overflow: hidden; }
.ft-auth__card { border: 1px solid var(--ft-border); border-radius: var(--ft-radius-lg); background: var(--ft-surface); box-shadow: var(--ft-shadow-card); overflow: hidden; }
.ft-auth__card > form { min-height: 0; }
.ft-auth__card input.ft-app-input {
    font-size: max(1rem, 16px);
}
.ft-auth__title { min-width: 0; }
.ft-auth__title-logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.ft-auth__title > h2 { min-width: 0; color: var(--ft-text); font-family: var(--ft-font-primary); font-size: 32px; font-weight: 850; line-height: 1.05; letter-spacing: -.045em; }
.ft-auth__card a { color: var(--ft-primary-strong); }
.ft-auth__card .ft-lined-text { color: var(--ft-text-muted); font-size: 12px; }
.ft-auth__privacy-note { margin: 8px 0 0; color: var(--ft-text-muted); font-size: 12px; line-height: 1.4; }
.ft-auth__legal-links { margin: 0 0 10px; color: var(--ft-text-soft); font-size: 13px; line-height: 1.5; }
.ft-auth__legal-links a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 991.98px) {
    .ft-auth__pitch { min-height: 0; }
    .ft-auth:has(input:not([type="checkbox"], [type="radio"]):focus, textarea:focus, select:focus, [contenteditable="true"]:focus) .ft-auth__pitch { display: none; }
    .ft-auth__card { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
    .ft-auth__card > form { flex: 1 0 auto !important; overflow: visible !important; }
    .ft-auth__card .ft-task__content { flex: 1 0 auto; overflow: visible; }
    .ft-auth__card .ft-task__footer { position: sticky; bottom: 0; z-index: 1; background: var(--ft-surface); }
    .ft-auth__intro { padding: 1rem; }
    .ft-auth__hero { flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; min-width: 0; }
    .ft-auth__hero-copy { min-width: 0; }
    .ft-auth__intro h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1; margin: 5px 0 0; }
    .ft-auth__intro p { display: none; }
    .ft-auth__title-logo { width: 36px; height: 36px; }
    .ft-auth__title > h2 { font-size: 30px; }
}
@media (max-height: 600px) {
    .ft-auth__pitch { display: none; }
}


/* Preços e horários do local: cor de cada faixa de preço e mapa da semana. */
.ft-price-tier--0 { --ft-price-tier-color: var(--ft-text-muted); }
.ft-price-tier--1 { --ft-price-tier-color: var(--ft-primary); }
.ft-price-tier--2 { --ft-price-tier-color: var(--ft-tertiary-strong); }
.ft-price-tier--3 { --ft-price-tier-color: var(--ft-warning); }
.ft-price-tier--4 { --ft-price-tier-color: var(--ft-rose); }
.ft-price-tier--5 { --ft-price-tier-color: var(--ft-secondary-strong); }
.ft-price-swatch { flex: none; display: inline-block; width: .875rem; height: .875rem; border-radius: .25rem; background: var(--ft-price-tier-color, var(--ft-border)); }
.ft-price-adjust { width: 9rem; }
.ft-price-week { display: grid; grid-template-columns: 2.25rem repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.ft-price-week__hour { grid-column: span 6; }
.ft-price-week__cell { display: block; height: 1.25rem; border-radius: 3px; background: var(--ft-price-tier-color, var(--ft-border)); }
.ft-price-week__cell--closed { background: transparent; border: 1px dashed var(--ft-border); }

/* =========================================================
   10. FOOTEBA SIGNATURE — Bootstrap-first, brand-led
   ========================================================= */
:root,
[data-bs-theme="light"] {
    --ft-brand-secondary: #4ff461;
    --ft-brand-tertiary: #23d2e2;
    --ft-brand-rose: #ff45d4;
    --ft-brand-ink: #1d2333;

    --ft-rose: var(--ft-brand-rose);
    --ft-rose-strong: #c12ea1;
    --ft-rose-soft: #ffe6fb;

    --ft-secondary: var(--ft-brand-secondary);
    --ft-secondary-hover: #3ee650;
    --ft-secondary-strong: #187b26;
    --ft-secondary-soft: #eaffed;
    --ft-on-secondary: #16311a;

    --ft-tertiary: var(--ft-brand-tertiary);
    --ft-tertiary-hover: #19bdcc;
    --ft-tertiary-strong: #087f8b;
    --ft-tertiary-soft: #ddf9fb;
    --ft-on-tertiary: #10353a;

    --ft-accent: var(--ft-tertiary);
    --ft-accent-strong: var(--ft-tertiary-strong);
    --ft-accent-deep: var(--ft-tertiary-strong);
    --ft-accent-soft: var(--ft-tertiary-soft);
}

html[data-theme="dark"],
html[data-bs-theme="dark"] {
    --ft-rose-strong: #ff8be8;
    --ft-rose-soft: #4a2744;

    --ft-secondary: var(--ft-brand-secondary);
    --ft-secondary-hover: #67f576;
    --ft-secondary-strong: #8df59a;
    --ft-secondary-soft: #203e27;
    --ft-on-secondary: #132817;

    --ft-tertiary: var(--ft-brand-tertiary);
    --ft-tertiary-hover: #53e2ed;
    --ft-tertiary-strong: #72edf5;
    --ft-tertiary-soft: #1e434d;
    --ft-on-tertiary: #102d31;

    --ft-accent: var(--ft-tertiary);
    --ft-accent-strong: var(--ft-tertiary-strong);
    --ft-accent-deep: var(--ft-tertiary-strong);
    --ft-accent-soft: var(--ft-tertiary-soft);
}

.ft-app-shell {
    --ft-app-canvas: #f7f7fb;
    --ft-shell-fixed: var(--ft-primary);
    --ft-shell-fixed-hover: #504be6;
    --ft-shell-fixed-active: #4540ba;
    --ft-shell-fixed-border: #4d49da;
    --ft-shell-fixed-text: var(--ft-brand-white);
    --ft-shell-fixed-muted: #d7d5ff;
    --ft-shell-topbar: var(--ft-shell-fixed);
    --ft-shell-topbar-hover: var(--ft-shell-fixed-hover);
    --ft-shell-topbar-active: var(--ft-shell-fixed-active);
    --ft-shell-topbar-border: var(--ft-shell-fixed-border);
    --ft-shell-topbar-text: var(--ft-shell-fixed-text);
    --ft-card-border: #d9d9e5;
    --ft-context-accent: var(--ft-primary);
    --ft-context-ink: var(--ft-primary-strong);
    --ft-context-soft: var(--ft-primary-soft);
    --ft-context-on: var(--ft-on-primary);
    --ft-brand-stripe: linear-gradient(
        90deg,
        var(--ft-primary) 0 48%,
        var(--ft-secondary) 48% 90%,
        var(--ft-tertiary) 90% 100%
    );
}

html[data-theme="dark"] .ft-app-shell,
html[data-bs-theme="dark"] .ft-app-shell {
    --ft-app-canvas: #171722;
    --ft-shell-fixed: #211f36;
    --ft-shell-fixed-hover: #302d4c;
    --ft-shell-fixed-active: #2a2843;
    --ft-shell-fixed-border: #403c60;
    --ft-shell-fixed-text: #f4f3ff;
    --ft-shell-fixed-muted: #b9b7cd;
    --ft-shell-topbar: var(--ft-shell-fixed);
    --ft-shell-topbar-hover: #302d4c;
    --ft-shell-topbar-active: #383456;
    --ft-shell-topbar-border: var(--ft-shell-fixed-border);
    --ft-shell-topbar-text: #f4f3ff;
    --ft-card-border: #3d3b52;
}

.ft-app-shell.ft-context-player {
    --ft-context-accent: var(--ft-secondary);
    --ft-context-ink: var(--ft-secondary-strong);
    --ft-context-soft: var(--ft-secondary-soft);
    --ft-context-on: var(--ft-on-secondary);
}

.ft-app-shell.ft-context-management {
    --ft-context-accent: var(--ft-primary);
    --ft-context-ink: var(--ft-primary-strong);
    --ft-context-soft: var(--ft-primary-soft);
    --ft-context-on: var(--ft-on-primary);
}

.ft-app-shell.ft-context-referee {
    --ft-context-accent: var(--ft-warning);
    --ft-context-ink: var(--ft-warning);
    --ft-context-soft: var(--ft-warning-soft);
    --ft-context-on: #352300;
}

.ft-app-shell.ft-context-photographer,
.ft-app-shell.ft-context-venue {
    --ft-context-accent: var(--ft-tertiary);
    --ft-context-ink: var(--ft-tertiary-strong);
    --ft-context-soft: var(--ft-tertiary-soft);
    --ft-context-on: var(--ft-on-tertiary);
}

/* Fixed shell: same family in each theme, visibly separate from scrollable content. */
.ft-app-shell,
.ft-app-shell .ft-app-main,
.ft-app-shell .ft-content {
    background: var(--ft-app-canvas);
}

.ft-app-shell .ft-desktop-sidebar,
.ft-app-shell .ft-topbar {
    background: var(--ft-shell-fixed) !important;
    color: var(--ft-shell-fixed-text);
    border-color: var(--ft-shell-fixed-border) !important;
    box-shadow: none;
}

.ft-app-shell .ft-desktop-sidebar {
    border-right: 1px solid var(--ft-shell-fixed-border);
}

.ft-app-shell .ft-topbar {
    position: sticky;
    background: var(--ft-shell-topbar) !important;
    border-bottom-color: var(--ft-shell-topbar-border) !important;
    color: var(--ft-shell-topbar-text);
}

.ft-app-shell .ft-topbar__brand,
.ft-app-shell .ft-topbar__brand:hover,
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button,
.ft-app-shell .ft-topbar__actions .ft-topbar-action {
    color: var(--ft-shell-topbar-text);
}

.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button:hover,
.ft-app-shell .ft-topbar__leading > .ft-topbar__icon-button:focus-visible,
.ft-app-shell .ft-topbar__actions .ft-topbar-action:hover,
.ft-app-shell .ft-topbar__actions .ft-topbar-action:focus-visible,
.ft-app-shell .ft-topbar__actions .ft-topbar-action[aria-expanded="true"] {
    background: var(--ft-shell-topbar-hover);
    color: var(--ft-shell-topbar-text);
}

.ft-app-shell .ft-topbar::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--ft-rose);
    pointer-events: none;
    transition: opacity var(--ft-motion-fast);
}

.ft-app-shell .ft-sidebar__brand,
.ft-app-shell .ft-sidebar__brand:hover,
.ft-app-shell .ft-topbar__brand,
.ft-app-shell .ft-topbar__brand:hover {
    color: var(--ft-shell-fixed-text);
}

.ft-app-shell .ft-sidebar__brand-dot {
    color: var(--ft-secondary);
}

.ft-app-shell .ft-sidebar-label,
.ft-app-shell .ft-sidebar-bottom small {
    color: var(--ft-shell-fixed-muted);
}

/* Navigation uses the current context as a marker instead of painting the whole item. */
.ft-app-shell .ft-side-nav .ft-nav-link,
.ft-app-shell .ft-side-nav .ft-nav-subitem__link {
    color: var(--ft-shell-fixed-text);
    border-radius: 5px;
}

.ft-app-shell .ft-side-nav .ft-nav-link:hover:not(.active),
.ft-app-shell .ft-side-nav .ft-nav-subitem__link:hover {
    background: var(--ft-shell-fixed-hover);
    color: var(--ft-shell-fixed-text);
}

.ft-app-shell .ft-side-nav .ft-nav-link.active,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link:hover {
    position: relative;
    padding-left: calc(.85rem - 3px);
    border-left: 3px solid var(--ft-secondary);
    background: var(--ft-shell-fixed-active);
    color: var(--ft-shell-fixed-text);
}

.ft-app-shell .ft-side-nav .ft-nav-link > .ft-icon:first-child,
.ft-app-shell .ft-side-nav .ft-nav-item > .ft-nav-link > .ft-icon:first-child {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #d9d7ff;
}

.ft-app-shell .ft-side-nav .ft-nav-link.active > .ft-icon:first-child,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link > .ft-icon:first-child {
    border-color: color-mix(in srgb, var(--ft-secondary) 50%, transparent);
    background: color-mix(in srgb, var(--ft-secondary) 18%, transparent);
    color: var(--ft-secondary);
}

.ft-app-shell .ft-side-nav .ft-nav-submenu {
    border-left-color: var(--ft-shell-fixed-border);
}

.ft-app-shell .ft-topbar-context {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #ffffff40;
    border-bottom: 3px solid var(--ft-context-accent);
    border-radius: 6px;
    background: #ffffff12;
    color: var(--ft-shell-topbar-text);
}

.ft-app-shell .ft-topbar-context__icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: none;
    border-radius: 6px;
    background: var(--ft-context-soft);
    color: var(--ft-context-ink);
}

.ft-app-shell .ft-topbar-context__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
}

.ft-app-shell .ft-topbar-context:hover,
.ft-app-shell .ft-topbar-context:focus-visible {
    background: #ffffff20;
    color: var(--ft-shell-topbar-text);
}

html[data-theme="dark"] .ft-app-shell .ft-topbar-context,
html[data-bs-theme="dark"] .ft-app-shell .ft-topbar-context {
    border-color: var(--ft-shell-topbar-border);
    background: #ffffff0d;
}

html[data-theme="dark"] .ft-app-shell .ft-topbar-context:hover,
html[data-bs-theme="dark"] .ft-app-shell .ft-topbar-context:hover,
html[data-theme="dark"] .ft-app-shell .ft-topbar-context:focus-visible,
html[data-bs-theme="dark"] .ft-app-shell .ft-topbar-context:focus-visible {
    background: var(--ft-shell-topbar-hover);
}

/* Header overlays dim the whole topbar, including its brand stripe. */
.ft-app-shell .ft-topbar.is-menu-open,
.ft-app-shell .ft-topbar.is-search-open {
    border-bottom-color: transparent !important;
}

.ft-app-shell .ft-topbar.is-menu-open::before,
.ft-app-shell .ft-topbar.is-search-open::before {
    z-index: 1;
    background: var(--ft-layer-scrim);
}

.ft-app-shell .ft-topbar.is-menu-open::after,
.ft-app-shell .ft-topbar.is-search-open::after {
    opacity: 0;
}

.ft-app-shell .ft-topbar.is-menu-open .ft-topbar__actions {
    z-index: auto;
}

.ft-app-shell .ft-topbar.is-menu-open .ft-topbar-action[aria-expanded="true"],
.ft-app-shell .ft-topbar.is-search-open .ft-topbar-search-toggle {
    position: relative;
    z-index: 2;
    background: var(--ft-shell-topbar-active);
    color: var(--ft-shell-topbar-text);
}

.ft-app-shell .ft-user-menu__panel,
.ft-app-shell .ft-notifications__panel,
.ft-app-shell .header-dropdown {
    z-index: 50;
}

/* Floating navigation keeps the safe area outside its surface. */
@media (max-width: 991.98px) {
    .ft-app-shell {
        --ft-bottom-navigation-space: calc(101px + env(safe-area-inset-bottom));
        --ft-priority-notice-space: 10rem;
    }
    .ft-app-shell--priority-notice {
        --ft-page-padding-bottom: calc(var(--ft-bottom-navigation-space) + var(--ft-priority-notice-space));
    }
    .ft-priority-notice {
        position: fixed;
        z-index: 30;
        right: max(1rem, env(safe-area-inset-right, 0px));
        bottom: var(--ft-bottom-navigation-space);
        left: max(1rem, env(safe-area-inset-left, 0px));
        max-width: 36rem;
        margin-inline: auto;
        max-height: var(--ft-priority-notice-space);
        overflow-y: auto;
        border-radius: var(--ft-radius-md);
        box-shadow: var(--ft-shadow-card);
    }
    html.ft-dialog-open .ft-priority-notice,
    .ft-app-shell:has(input:focus, textarea:focus, [contenteditable="true"]:focus) .ft-priority-notice {
        display: none;
    }
    .ft-app-shell .ft-bottom-nav {
        position: fixed;
        z-index: 30;
        right: max(1rem, env(safe-area-inset-right, 0px));
        bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
        left: max(1rem, env(safe-area-inset-left, 0px));
        max-width: 36rem;
        margin-inline: auto;
        display: grid;
        align-items: center;
        border: 1px solid var(--ft-border);
        background: var(--ft-surface);
        color: var(--ft-text);
        box-shadow: var(--ft-shadow-card);
    }

    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .ft-app-shell .ft-bottom-nav {
            background: color-mix(in srgb, var(--ft-surface) 85%, transparent);
            -webkit-backdrop-filter: blur(20px) saturate(140%);
            backdrop-filter: blur(20px) saturate(140%);
        }
    }

    @media (prefers-reduced-transparency: reduce) {
        .ft-app-shell .ft-bottom-nav {
            background: var(--ft-surface);
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
    }

    .ft-app-shell .ft-bottom-nav a {
        position: relative;
        min-height: calc(var(--ft-touch-target) + .75rem);
        color: var(--ft-text-soft);
        border-radius: var(--bs-border-radius-pill);
    }

    .ft-app-shell .ft-bottom-nav a.active {
        background: var(--ft-primary-soft);
        color: var(--ft-primary-strong);
        font-weight: 850;
    }

    .ft-app-shell .ft-bottom-nav a:focus-visible {
        outline: 2px solid var(--ft-primary);
        outline-offset: 1px;
    }

    .ft-app-shell .ft-bottom-nav .ft-nav-create {
        width: 45px;
        height: 45px;
        border: 1px solid var(--ft-border);
        border-radius: var(--bs-border-radius-pill);
        background: var(--ft-secondary);
        color: var(--ft-on-secondary);
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Buttons: primary purple, secondary green, tertiary cyan. Never decorative elevation. */
.ft-button--secondary {
    border-color: var(--ft-secondary);
    background: var(--ft-secondary);
    color: var(--ft-on-secondary);
}

.ft-button--secondary:hover {
    border-color: var(--ft-secondary-hover);
    background: var(--ft-secondary-hover);
    color: var(--ft-on-secondary);
}

.ft-button--tertiary {
    border-color: var(--ft-tertiary);
    background: var(--ft-tertiary);
    color: var(--ft-on-tertiary);
}

.ft-button--tertiary:hover {
    border-color: var(--ft-tertiary-hover);
    background: var(--ft-tertiary-hover);
    color: var(--ft-on-tertiary);
}

.ft-button--soft.ft-button--tone-primary {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}

.ft-button--soft.ft-button--tone-secondary {
    background: var(--ft-secondary-soft);
    color: var(--ft-secondary-strong);
}

.ft-button--soft.ft-button--tone-tertiary {
    background: var(--ft-tertiary-soft);
    color: var(--ft-tertiary-strong);
}

.ft-button--soft.ft-button--tone-neutral {
    background: var(--ft-field);
    color: var(--ft-text-soft);
}

.ft-button--soft.ft-button--tone-error {
    background: var(--ft-danger-soft);
    color: var(--ft-danger-strong);
}

.ft-button--outline.ft-button--tone-primary {
    border-color: var(--ft-primary);
    color: var(--ft-primary-strong);
}

.ft-button--outline.ft-button--tone-primary:hover {
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
}

.ft-button--outline.ft-button--tone-secondary {
    border-color: var(--ft-secondary);
    color: var(--ft-secondary-strong);
}

.ft-button--outline.ft-button--tone-secondary:hover {
    background: var(--ft-secondary-soft);
    color: var(--ft-secondary-strong);
}

.ft-button--outline.ft-button--tone-tertiary {
    border-color: var(--ft-tertiary);
    color: var(--ft-tertiary-strong);
}

.ft-button--outline.ft-button--tone-tertiary:hover {
    background: var(--ft-tertiary-soft);
    color: var(--ft-tertiary-strong);
}

.ft-app-shell .ft-button,
.ft-app-shell .btn {
    border-radius: 5px;
    box-shadow: none !important;
    transform: none !important;
}

.ft-app-shell .ft-button:hover,
.ft-app-shell .ft-button:active,
.ft-app-shell .btn:hover,
.ft-app-shell .btn:active {
    box-shadow: none !important;
    transform: none !important;
}

.ft-app-shell .ft-button--primary {
    border-color: var(--ft-primary);
    background: var(--ft-primary);
    color: var(--ft-on-primary);
}

.ft-app-shell .ft-button--primary:hover {
    border-color: var(--ft-primary-hover);
    background: var(--ft-primary-hover);
    color: var(--ft-on-primary);
}

.ft-app-shell .ft-button--outline:not(.ft-button--tone-primary):not(.ft-button--tone-secondary):not(.ft-button--tone-tertiary),
.ft-app-shell .ft-button--neutral {
    border-color: var(--ft-border-strong);
    background: transparent;
}

.ft-app-shell .btn:focus-visible,
.ft-app-shell .ft-button:focus-visible {
    outline: 2px solid var(--ft-context-accent);
    outline-offset: 2px;
    box-shadow: none !important;
}

.ft-button-wrap > .ft-button.ft-button--selection-positive[aria-pressed="true"],
.ft-app-shell .ft-button-wrap > .ft-button.ft-button--selection-positive[aria-pressed="true"] {
    background: var(--ft-positive-soft);
    color: var(--ft-positive);
    border-color: var(--ft-positive);
}

/* Shared semantic components expose the three brand tones. */
.ft-feedback--secondary {
    background: var(--ft-secondary-soft);
    color: var(--ft-secondary-strong);
}

.ft-feedback--tertiary {
    background: var(--ft-tertiary-soft);
    color: var(--ft-tertiary-strong);
}

.ft-dashboard-tone--secondary { color: var(--ft-secondary-strong); }
.ft-dashboard-tone--tertiary { color: var(--ft-tertiary-strong); }
.ft-dashboard-accent--secondary { background: var(--ft-secondary); }
.ft-dashboard-accent--tertiary { background: var(--ft-tertiary); }

/* Inputs: crisp geometry and contextual focus instead of glow. */
.ft-app-shell .ft-search-field,
.ft-app-shell .ft-app-input,
.ft-app-shell .ft-field__control,
.ft-app-shell .ft-form-field .form-select {
    border-radius: 6px;
    box-shadow: none;
}

.ft-app-shell .ft-search-field:focus-within,
.ft-app-shell .ft-field__control:focus-within {
    border-color: var(--ft-context-accent);
    outline: 2px solid var(--ft-context-accent);
    outline-offset: 1px;
    box-shadow: none;
}

.ft-app-shell .ft-app-input:focus,
.ft-app-shell .ft-form-field .form-select:focus {
    border-color: var(--ft-context-accent);
    outline: 2px solid var(--ft-context-accent);
    outline-offset: 1px;
    box-shadow: none;
}

/* Pills stay for status; generic controls remain compact and geometric. */
.ft-app-shell .ft-chip {
    border-radius: 5px;
}

.ft-app-shell .ft-chip.active {
    border-color: var(--ft-context-accent);
    background: var(--ft-context-accent);
    color: var(--ft-context-on);
}

.ft-app-shell .ft-segmented {
    padding: 2px;
    border: 1px solid var(--ft-border);
    border-radius: 6px;
    background: transparent;
}

.ft-app-shell .ft-segmented button {
    border-radius: 4px;
}

.ft-app-shell .ft-segmented button.selected {
    background: var(--ft-context-soft);
    color: var(--ft-context-ink);
}

/* Repeated Futeba signature: context marker plus cyan finish. */
.ft-app-shell .ft-section-heading {
    position: relative;
    padding-left: 14px;
}

.ft-app-shell .ft-section-heading::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 2px;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ft-context-accent) 0 70%, var(--ft-tertiary) 70% 100%);
}

.ft-app-shell .ft-section-heading .ft-eyebrow,
.ft-app-shell .ft-matchday-kicker {
    color: var(--ft-context-ink);
}

.ft-app-shell .ft-matchday-kicker-marker {
    border-radius: 2px;
    background: var(--ft-context-accent);
}

.ft-app-shell .ft-home-intro h1::after,
.ft-app-shell .ft-page-intro h1::after {
    content: "";
    display: block;
    width: 78px;
    height: 4px;
    margin-top: 14px;
    background: var(--ft-brand-stripe);
}

.ft-app-shell .ft-home-intro h1 em,
.ft-app-shell .ft-matchday-intro h1 em {
    color: var(--ft-primary);
}

/* Content surfaces are flat; hierarchy comes from borders and rhythm. */
.ft-app-shell .ft-surface,
.ft-app-shell .card,
.ft-app-shell .ft-state-panel {
    border-color: var(--ft-card-border);
    border-radius: 7px;
    box-shadow: none;
}

.ft-app-shell .ft-empty-state {
    border-radius: 7px;
    box-shadow: none;
}

.ft-app-shell .ft-game-card {
    border: 1px solid var(--ft-card-border);
    border-top: 3px solid var(--ft-context-accent);
    border-radius: 6px;
    box-shadow: none;
    transform: none;
}

.ft-app-shell .ft-game-card::after {
    top: -3px;
    right: 0;
    width: 44px;
    height: 3px;
    border: 0;
    border-radius: 0;
    background: var(--ft-secondary);
}

.ft-app-shell .ft-game-card:hover {
    border-color: var(--ft-border-strong);
    box-shadow: none;
    transform: none;
}

/* Match hero carries the strongest purple/green/cyan brand moment. */
.ft-app-shell .ft-fixture-board {
    border-color: var(--ft-card-border);
    border-radius: 7px;
    box-shadow: none;
}

.ft-app-shell .ft-fixture-pitch {
    background:
        radial-gradient(circle at 72% 16%, #7772ff 0, transparent 40%),
        linear-gradient(145deg, var(--ft-primary) 0%, #4d48c8 58%, #312e79 100%);
}

.ft-app-shell .ft-fixture-pitch::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    height: 5px;
    background: linear-gradient(90deg, var(--ft-secondary), var(--ft-tertiary));
    pointer-events: none;
}

.ft-app-shell .ft-pitch-centre {
    border-color: #ffffff99;
}

.ft-app-shell .ft-pitch-centre::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ft-secondary);
    transform: translate(-50%, -50%);
}

.ft-app-shell .ft-fixture-live i,
.ft-app-shell .ft-locker-live-dot {
    background: var(--ft-secondary);
    box-shadow: none;
}

.ft-app-shell .ft-notification-count {
    background: var(--ft-secondary);
    color: var(--ft-on-secondary);
}

.ft-app-shell .ft-team-crest,
.ft-app-shell .ft-mini-crest,
.ft-app-shell .ft-crest-large {
    border-radius: 6px;
}

/* Home actions use colour as a recurring edge marker, not decorative fill. */
.ft-app-shell .ft-decision-band {
    border-left-color: var(--ft-context-accent);
    border-radius: 6px;
}

.ft-app-shell .ft-decision-number {
    color: var(--ft-context-ink);
}

.ft-app-shell .ft-home-actions__list > button {
    border-radius: 5px;
    border-left: 3px solid var(--ft-border);
    box-shadow: none;
}

.ft-app-shell .ft-home-actions__list > button:hover,
.ft-app-shell .ft-home-actions__list > button:focus-visible {
    border-color: var(--ft-border-strong);
    border-left-color: var(--ft-context-accent);
    background: var(--ft-context-soft);
    box-shadow: none;
}

.ft-app-shell .ft-home-actions__list > button > .ft-app-icon:first-child {
    color: var(--ft-context-ink);
}

/* Bootstrap Tooltip is the only visible tooltip language. */
.ft-bootstrap-tooltip {
    --bs-tooltip-bg: var(--ft-brand-ink);
    --bs-tooltip-color: var(--ft-brand-white);
    --bs-tooltip-opacity: 1;
    font-size: .75rem;
    font-weight: 650;
}


/* Sidebar identity needs visible containers on the purple shell. */
.ft-app-shell .ft-side-nav .ft-mini-crest {
    width: 28px;
    height: 28px;
    border: 1px solid #ffffff66;
    border-radius: 6px;
    background: #ffffff14;
    color: var(--ft-brand-white);
    font-size: 15px;
    line-height: 1;
}

.ft-app-shell .ft-side-nav .ft-person-avatar--square {
    border: 1px solid #ffffff8c;
    background: #f4f2ff;
    color: var(--ft-primary-strong);
}

.ft-app-shell .ft-side-nav .ft-person-avatar--square .ft-person-avatar__initials {
    color: inherit;
}

.ft-app-shell .ft-side-nav .ft-nav-link.active .ft-mini-crest,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link .ft-mini-crest {
    border-color: #ffffff8c;
    background: #ffffff20;
    color: var(--ft-brand-white);
}

.ft-app-shell .ft-sidebar-label {
    position: relative;
    color: var(--ft-shell-fixed-muted);
}

.ft-app-shell .ft-sidebar-label::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin-top: 6px;
    background: var(--ft-secondary);
    opacity: .95;
}

/* Green is the main highlight; cyan stays tertiary. */
.ft-app-shell .ft-section-heading::before {
    background: linear-gradient(
        180deg,
        var(--ft-context-accent) 0 68%,
        var(--ft-secondary) 68% 100%
    );
}

.ft-app-shell .ft-home-intro h1::after,
.ft-app-shell .ft-page-intro h1::after {
    background: linear-gradient(
        90deg,
        var(--ft-primary) 0 48%,
        var(--ft-secondary) 48% 90%,
        var(--ft-tertiary) 90% 100%
    );
}

.ft-app-shell .ft-game-card::after {
    background: var(--ft-secondary);
}

.ft-app-shell .ft-fixture-pitch::after {
    background: linear-gradient(90deg, var(--ft-secondary) 0 78%, var(--ft-tertiary) 78% 100%);
}


/* Deliberate green highlights: meaning, not large surfaces. */
.ft-app-shell .ft-sidebar-bottom__tagline {
    color: var(--ft-brand-white);
    font-weight: 800;
}

.ft-app-shell .ft-sidebar-bottom .ft-live-dot {
    background: var(--ft-secondary);
}

.ft-profile-team--together > span:nth-child(2) > strong {
    color: var(--ft-secondary-strong);
}

html[data-theme="dark"] .ft-profile-team--together > span:nth-child(2) > strong,
html[data-bs-theme="dark"] .ft-profile-team--together > span:nth-child(2) > strong {
    color: var(--ft-secondary-strong);
}

/* Global search: categories lead into compact refinements and a scan-friendly result list. */
.ft-global-search__categories .ft-chip { min-height: var(--ft-touch-target); }
.ft-global-search__category-count { margin-left: .4rem; font-size: .75rem; font-weight: 600; opacity: .75; }
.ft-global-search__active { min-width: 0; flex: 1; scrollbar-width: none; }
.ft-global-search__active .ft-button-wrap { flex: none; }
.ft-global-search__sidebar { border-right: 1px solid var(--ft-border-subtle); }
.ft-global-search__sidebar-title { font-size: 1.1rem; }
.ft-search-facet-title { font-size: .875rem; font-weight: 800; }
.ft-search-facet-count { flex: none; color: var(--ft-text-muted); font-size: .75rem; }
.ft-global-search__results-heading h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ft-global-search__result-row { border-bottom: 1px solid var(--ft-border-subtle); }
.ft-global-search__result-row:hover, .ft-global-search__result-row:focus-within { background: var(--ft-hover-surface); }
.ft-global-search__result { min-width: 0; min-height: 76px; border: 0; border-radius: 0; background: transparent; color: var(--ft-text); text-decoration: none; }
.ft-global-search__result:hover, .ft-global-search__result:focus-visible { color: var(--ft-text); text-decoration: none; }
.ft-global-search__result-copy { min-width: 0; }
.ft-global-search__result-type { display: block; margin-bottom: .2rem; color: var(--ft-primary-strong); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ft-global-search__result strong { font-size: .9375rem; }
.ft-global-search__result small { font-size: .75rem; }
.ft-global-search__result strong, .ft-global-search__result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-global-search__skeleton-row { border-bottom: 1px solid var(--ft-border-subtle); }
.ft-global-search__skeleton-avatar { width: var(--ft-touch-target); height: var(--ft-touch-target); flex: none; }
.ft-global-search__skeleton-title { width: 55%; height: 1rem; }
.ft-global-search__skeleton-detail { width: 35%; height: .75rem; }

/* Rose and cyan stay small supporting accents, never dominant surfaces. */
.ft-app-shell .ft-sidebar__brand-dot {
    color: var(--ft-rose);
}

.ft-app-shell .ft-topbar-context__icon {
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}


.ft-app-shell .ft-side-nav .ft-nav-link.active .ft-person-avatar--square,
.ft-app-shell .ft-side-nav .ft-nav-item.is-active > .ft-nav-link .ft-person-avatar--square {
    outline: 2px solid var(--ft-secondary);
    outline-offset: 1px;
}

/* Footeba field signature: a compact goal-frame instead of a generic active bar. */
.ft-app-shell .ft-sidebar-label::after {
    width: 24px;
    height: 3px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--ft-secondary) 0 72%, var(--ft-rose) 72% 100%);
}

/* Direct messages share the available viewport; each pane scrolls independently. */
.ft-direct-chat {
    height: var(--ft-chat-height, calc(100dvh - 12rem));
    min-height: 0;
}

.ft-direct-chat__list-pane,
.ft-direct-chat__detail,
.ft-direct-chat__preview {
    min-width: 0;
    min-height: 0;
}

.ft-direct-chat__detail {
    border-left: 1px solid var(--ft-border);
    overflow-y: auto;
    overflow-x: hidden;
}

.ft-direct-chat__list,
.ft-direct-chat__history {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    overscroll-behavior: contain;
}

.ft-direct-chat__list .ft-direct-chat__row {
    display: flex;
    min-width: 0;
    border-radius: 0;
    color: var(--ft-text);
    background: var(--ft-surface);
}

.ft-direct-chat__list .ft-direct-chat__row:hover {
    background: var(--ft-field);
}

.ft-direct-chat__list .ft-direct-chat__row--selected,
.ft-direct-chat__list .ft-direct-chat__row--selected:hover {
    background: var(--ft-primary-soft);
    box-shadow: inset 3px 0 var(--ft-primary);
}

.ft-direct-chat__list .ft-button-wrap {
    display: block;
}

.ft-direct-chat__composer {
    flex-shrink: 0;
    background: var(--ft-surface);
}

.ft-direct-chat__composer textarea.app-input {
    min-height: var(--ft-touch-target);
    max-height: max(var(--ft-touch-target), calc(var(--ft-chat-height, 60dvh) / 3));
    resize: none;
}

.ft-direct-chat__detail > header {
    flex-shrink: 0;
}

.ft-direct-chat__bubble {
    max-width: 85%;
    border-radius: var(--ft-radius-md);
    background: var(--ft-surface-raised);
    overflow-wrap: anywhere;
}

.ft-direct-chat__bubble--own {
    background: var(--ft-primary-soft);
}

.ft-direct-chat__bubble .ft-user-content {
    white-space: pre-wrap;
}

@media (max-width: 991.98px) {
    .ft-direct-chat__detail {
        border-left: 0;
    }
}

/* Mobile navigation follows the selected surface in both themes. */
@media (max-width: 991.98px) {
    .ft-app-shell .ft-bottom-nav a.active .ft-app-icon,
    .ft-app-shell .ft-bottom-nav a.active > .ft-icon {
        color: var(--ft-primary-strong);
    }

    .ft-app-shell .ft-bottom-nav a.active .ft-person-avatar--square {
        outline: 2px solid var(--ft-primary);
        outline-offset: 1px;
    }
}

/* Component: PlayerCard — smooth vector athlete card inspired by modern football items. */
.ft-player-card {
    --ft-player-card-width: 220px;
    --ft-player-card-unit: 1cqw;
    --ft-player-card-deep: #121827;
    --ft-player-card-shadow: #111827;
    --ft-player-card-mid: #1b2133;
    position: relative;
    container-type: inline-size;
    isolation: isolate;
    width: min(100%, var(--ft-player-card-width));
    aspect-ratio: 240 / 340;
    flex: none;
    color: var(--ft-brand-white);
    font-family: var(--ft-font-primary);
    filter: drop-shadow(0 14px 24px color-mix(in srgb, var(--ft-player-card-shadow) 24%, transparent));
}

.ft-player-card__defs,
.ft-player-card-mini__defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ft-player-card__surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 12%, color-mix(in srgb, var(--ft-tertiary) 12%, transparent), transparent 30%),
        radial-gradient(circle at 18% 86%, color-mix(in srgb, var(--ft-primary) 14%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, #2a3042 94%, white) 0%, var(--ft-player-card-mid) 58%, var(--ft-player-card-deep) 100%);
}

.ft-player-card__ornament {
    position: absolute;
    inset: -12% -30% 18%;
    z-index: 0;
    background: repeating-conic-gradient(from 210deg at 50% 80%, color-mix(in srgb, var(--ft-brand-white) 5%, transparent) 0deg 7deg, transparent 7deg 17deg);
    opacity: .5;
    transform: rotate(-5deg);
    pointer-events: none;
}

.ft-player-card__photo {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 67%;
    overflow: hidden;
}

.ft-player-card__photo.is-interactive { cursor: pointer; }
.ft-player-card__photo.is-interactive:focus-visible { outline: 3px solid var(--ft-focus); outline-offset: -6px; }

.ft-player-card__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--ft-player-card-deep) 14%, transparent) 61%, var(--ft-player-card-deep) 100%);
    pointer-events: none;
}

.ft-player-card__image,
.ft-player-card__photo canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    object-position: center 28%;
}

.ft-player-card__frame,
.ft-player-card-mini__frame {
    position: absolute;
    z-index: 8;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.ft-player-card__frame-path,
.ft-player-card-mini__frame path {
    fill: none;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ft-player-card__frame-inner {
    fill: none;
    stroke: color-mix(in srgb, var(--ft-brand-white) 16%, transparent);
    stroke-width: .85;
    vector-effect: non-scaling-stroke;
}

.ft-player-card__frame-stop--light { stop-color: color-mix(in srgb, var(--ft-brand-white) 92%, var(--ft-tertiary)); }
.ft-player-card__frame-stop--accent { stop-color: var(--ft-tertiary); }
.ft-player-card__frame-stop--primary { stop-color: var(--ft-primary); }

.ft-player-card__rating {
    position: absolute;
    z-index: 4;
    top: 13%;
    left: 10%;
    display: grid;
    justify-items: center;
    color: var(--ft-brand-white);
    text-shadow: 0 2px 8px var(--ft-player-card-shadow);
    pointer-events: none;
}

.ft-player-card__rating strong {
    font-size: calc(var(--ft-player-card-unit) * 16.7);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.07em;
    font-variant-numeric: tabular-nums;
}

.ft-player-card__positions {
    display: grid;
    row-gap: .15em;
    margin-top: .55em;
    font-size: calc(var(--ft-player-card-unit) * 5.4);
    font-weight: 850;
    line-height: 1;
}

.ft-player-card__identity {
    position: absolute;
    z-index: 4;
    top: 56%;
    left: 10%;
    width: 80%;
    height: 14%;
    text-align: center;
    pointer-events: none;
}

.ft-player-card__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    max-height: 2.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ft-brand-white);
    font-size: calc(var(--ft-player-card-unit) * 9.2);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    text-shadow: 0 2px 8px var(--ft-player-card-shadow);
}

.ft-player-card__name--long { font-size: calc(var(--ft-player-card-unit) * 7.1); }

.ft-player-card__skills {
    position: absolute;
    z-index: 4;
    top: 73%;
    left: 14%;
    width: 72%;
    height: 14%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    font-size: calc(var(--ft-player-card-unit) * 5.25);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ft-player-card__skills::before {
    content: "";
    position: absolute;
    top: -.65em;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ft-brand-white) 24%, transparent), transparent);
}

.ft-player-card__skills::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: color-mix(in srgb, var(--ft-brand-white) 12%, transparent);
}

.ft-player-card__skill {
    display: grid;
    grid-template-columns: 2.5ch 3.2ch;
    justify-content: center;
    align-items: center;
    column-gap: .55ch;
    border-radius: var(--bs-border-radius-sm);
    cursor: help;
}

.ft-player-card__skill:hover,
.ft-player-card__skill:focus-visible {
    background: color-mix(in srgb, var(--ft-primary) 13%, transparent);
}

.ft-player-card__skill:focus-visible { outline: 2px solid var(--ft-tertiary); outline-offset: 1px; }
.ft-player-card__skill dd { text-align: right; font-weight: 850; }
.ft-player-card__skill dd.ft-player-card__skill-rating--wide { justify-self: end; width: max-content; text-align: left; }
.ft-player-card__skill dt { color: color-mix(in srgb, var(--ft-brand-white) 78%, transparent); font-weight: 700; }

.ft-player-card__brand {
    position: absolute;
    z-index: 4;
    top: 91.8%;
    left: 20%;
    width: 60%;
    color: var(--ft-brand-white);
    font-size: calc(var(--ft-player-card-unit) * 4.35);
    font-weight: 900;
    text-align: center;
}

.ft-player-card__brand > span { color: var(--ft-tertiary); }

.ft-player-card__actions {
    position: absolute;
    z-index: 12;
    top: 7%;
    right: 10%;
}

.ft-player-card__actions .ft-button-wrap > .ft-button.ft-action-menu__toggle {
    display: grid;
    place-items: center;
    width: var(--ft-touch-target);
    height: var(--ft-touch-target);
    min-height: var(--ft-touch-target);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ft-brand-white);
    cursor: pointer;
    opacity: .82;
}

.ft-player-card__actions .ft-button-wrap > .ft-button.ft-action-menu__toggle svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 3px var(--ft-player-card-shadow)); }
.ft-player-card__actions .ft-button-wrap > .ft-button.ft-action-menu__toggle:hover,
.ft-player-card__actions .ft-button-wrap > .ft-button.ft-action-menu__toggle[aria-expanded="true"] {
    background: transparent;
    color: var(--ft-brand-white);
    opacity: 1;
}

.ft-player-card__actions .ft-button-wrap > .ft-button.ft-action-menu__toggle:focus-visible {
    outline: 2px solid var(--ft-tertiary);
    outline-offset: 2px;
}

.ft-player-card--minimal .ft-player-card__photo { height: 74%; }
.ft-player-card--minimal .ft-player-card__identity { top: 74%; }
.ft-player-card--minimal .ft-player-card__brand { top: 88.5%; }

.ft-player-card-mini {
    position: relative;
    isolation: isolate;
    display: inline-block;
    width: var(--ft-player-card-mini-width, 18px);
    aspect-ratio: 1 / 1;
    flex: none;
    vertical-align: middle;
}

.ft-player-card-mini__surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #182033;
    clip-path: inset(0 round 4px) !important;
    -webkit-clip-path: inset(0 round 4px) !important;
}

.ft-player-card-mini__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.ft-player-card-mini__frame { display: none; }
.ft-player-card-mini--xs { --ft-player-card-mini-width: 16px; }
.ft-player-card-mini--sm { --ft-player-card-mini-width: 18px; }
.ft-player-card-mini--md { --ft-player-card-mini-width: 28px; }
.ft-player-card-mini--lg { --ft-player-card-mini-width: 34px; }
.ft-player-card-mini--xl { --ft-player-card-mini-width: 48px; }

.ft-app-shell .ft-user-menu__trigger .ft-player-card-mini,
.ft-app-shell .ft-side-nav .ft-nav-link .ft-player-card-mini {
    border-radius: 5px;
    border: 1.5px solid var(--ft-brand-white);
    box-shadow: none;
}

.ft-player-preview__card-wrap {
    --ft-player-card-width: 160px;
    position: relative;
    z-index: 2;
    width: var(--ft-player-card-width);
    margin-top: -3.25rem;
}

.ft-player-preview__card-wrap .ft-player-card {
    aspect-ratio: 240 / 390;
}

.ft-player-preview__card-wrap .ft-player-card__skills {
    top: 76%;
    font-size: max(.625rem, calc(var(--ft-player-card-unit) * 5.25));
}

.ft-profile-person.ft-profile-person--player-card {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
    margin-top: -94px;
}

.ft-profile-person--player-card > .ft-profile-portrait {
    width: 220px;
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ft-profile-person--player-card > .ft-profile-person-copy { padding-top: 102px; }

@container ft-profile-media (max-width: 767px) {
    .ft-profile-person.ft-profile-person--player-card {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 0 12px;
        margin-top: -78px;
    }
    .ft-profile-person--player-card > .ft-profile-portrait { width: 190px; }
    .ft-profile-person--player-card > .ft-profile-person-copy { padding-top: 84px; }
    .ft-profile-person--player-card > .ft-profile-actions { grid-column: 1 / -1; grid-row: 2; }
}

@container ft-profile-media (max-width: 575.98px) {
    .ft-profile-person.ft-profile-person--player-card { grid-template-columns: minmax(0, 1fr); margin-top: -74px; }
    .ft-profile-page--inline-controls .ft-profile-person--player-card > .ft-profile-person-copy { grid-column: 1 / -1; }
    .ft-profile-person--player-card > .ft-profile-portrait { grid-column: 1; grid-row: 1; justify-self: center; }
    .ft-profile-person--player-card > .ft-profile-person-copy { grid-column: 1; grid-row: 2; padding-top: 0; text-align: center; }
    .ft-profile-person--player-card .ft-profile-tags { justify-content: center; }
    .ft-profile-person--player-card > .ft-profile-actions { grid-column: 1; grid-row: 3; justify-self: center; justify-content: center; width: 100%; }
}

/* Institutional pages: editorial composition around real product captures. */
.ft-app-download .ft-button.ft-app-download__store {
    background: var(--ft-text);
    color: var(--ft-surface);
    border-color: var(--ft-text);
}

.ft-app-download .ft-button.ft-app-download__store:hover,
.ft-app-download .ft-button.ft-app-download__store:focus-visible {
    background: var(--ft-text-soft);
    color: var(--ft-surface);
    border-color: var(--ft-text-soft);
}

.ft-institutional h1,
.ft-institutional h2 {
    font-family: var(--ft-font-primary);
    font-weight: 850;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.ft-institutional h1 {
    font-size: clamp(2.25rem, 4.5vw, 4.25rem);
    line-height: 1.06;
}

.ft-institutional h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.15;
}

.ft-institutional h1 em {
    color: var(--ft-secondary-strong);
    font-style: normal;
}

.ft-institutional .ft-page-intro {
    margin-bottom: 0;
}

.ft-institutional .ft-page-intro p,
.ft-institutional-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
}

.ft-institutional-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--ft-touch-target);
    color: var(--ft-primary-strong);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ft-institutional-link:hover {
    color: var(--ft-primary-strong);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.ft-institutional-link:focus-visible {
    outline: 2px solid var(--ft-primary);
    outline-offset: 2px;
}

.ft-institutional-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    box-shadow: var(--ft-shadow-card);
}
.ft-institutional-shot--error picture { visibility: hidden; }

.ft-institutional-feature {
    scroll-margin-top: 1.5rem;
}

.ft-institutional-shot--portrait {
    max-width: 22rem;
}

.ft-institutional-cta {
    border-color: var(--ft-primary);
    background: var(--ft-primary-soft);
}

/* Location commerce: product media, receipt identity and item quantity. */
.ft-commerce-product-media {
    display: grid;
    place-items: center;
    flex: none;
    width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-field);
    color: var(--ft-text-muted);
    font-size: .7rem;
}
.ft-commerce-image-editor { width: 16rem; max-width: 100%; }
.ft-commerce-image-empty {
    align-content: center;
    aspect-ratio: 1;
    border: 1px dashed var(--ft-border-strong);
    border-radius: var(--ft-radius-sm);
    background: var(--ft-field);
}
.ft-commerce-image-empty > .ft-icon { width: 2rem; height: 2rem; }
.ft-commerce-receipt {
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-md);
    background: linear-gradient(115deg, var(--ft-surface), var(--ft-primary-soft));
}
.ft-commerce-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 3.5rem;
    min-height: 3.5rem;
    border-radius: var(--ft-radius-sm);
    background: var(--ft-primary-soft);
    color: var(--ft-primary-strong);
    font-size: 1.5rem;
    font-weight: 850;
}
.ft-commerce-total { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 850; line-height: 1.2; }
.ft-commerce-quantity { width: 5rem; }

/* Domain documentation: diagram geometry; controls use the shared components. */
.ft-domain-map { container-type: inline-size; }
.ft-domain-node { height: 100%; min-height: 8rem; white-space: normal; overflow-wrap: anywhere; }
.ft-domain-node--proposal { border-left-style: dashed; }
.ft-domain-diagram { display: none; position: relative; }
.ft-domain-diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ft-text-muted); }
.ft-domain-diagram__lines line { stroke: currentColor; stroke-width: 2; }
.ft-domain-diagram__lines circle { fill: var(--ft-surface); stroke: var(--ft-border-strong); }
.ft-domain-diagram__lines text { fill: var(--ft-text); font-size: 14px; }
.ft-domain-diagram__proposed { stroke-dasharray: 6 5; }
.ft-domain-diagram__node { position: absolute; width: 22%; height: 10rem; transform: translate(-50%, -50%); }
.ft-domain-diagram__node > .ft-button-wrap { height: 100%; }
.ft-domain-diagram__node .ft-domain-node .ft-button__custom-content > span > strong,
.ft-domain-diagram__node .ft-domain-node .ft-button__custom-content > span > .text-break { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-domain-story__absent { border-style: dashed; background: var(--ft-surface-tint); }
.ft-domain-evidence { white-space: pre-wrap; }

@container (min-width: 900px) {
    .ft-domain-diagram { display: block; }
    .ft-domain-diagram-mobile { display: none; }
}

@media (max-width: 991px) {
    .ft-domain-story__arrow { transform: rotate(90deg); }
}

@media (min-width: 768px) {
    .ft-institutional-feature:nth-of-type(even) > .row {
        flex-direction: row-reverse;
    }
}
