.address-history > summary,
.android-attribution > summary {
    cursor: pointer;
    list-style: none;
}

.address-history > summary::-webkit-details-marker,
.android-attribution > summary::-webkit-details-marker {
    display: none;
}

.address-history-toggle::before {
    content: "+";
    font-size: 1.25rem;
    line-height: 1;
}

.address-history[open] > summary .address-history-toggle::before {
    content: "\2212";
}

.registration-review-layout {
    display: grid;
    gap: 1rem;
    grid-template-areas: "player" "responsibles" "address";
}

.registration-review-player { grid-area: player; min-width: 0; }
.registration-review-responsibles { grid-area: responsibles; min-width: 0; }
.registration-review-address {
    grid-area: address;
    min-width: 0;
    align-self: start;
}

@media (min-width: 1200px) {
    .registration-review-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "player responsibles" "address responsibles";
        align-items: start;
    }
}

.database-environment-badge {
    display: inline-block;
    flex: 0 0 auto;
    padding: .2em .5em;
    border-radius: .375rem;
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.2;
}

.database-environment-badge--local {
    background-color: #166534;
}

.database-environment-badge--development {
    background-color: #475569;
}

.database-environment-badge--unknown {
    background-color: #9a3412;
}

.database-environment-alert {
    padding: .4rem max(.75rem, env(safe-area-inset-right, 0px)) .4rem max(.75rem, env(safe-area-inset-left, 0px));
    color: #fff;
    background-color: #991b1b;
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
}

:root {
    /* Core colors */
    --ds-color-brand-700: #1d4ed8;
    --ds-color-brand-600: #2563eb;
    --ds-color-brand-500: #3b82f6;

    /* Neutral surfaces and text */
    --ds-color-bg-page: #f3f6fa;
    --ds-color-bg-subtle: #f1f5f9;
    --ds-color-surface: #ffffff;
    --ds-color-text-primary: #0f172a;
    --ds-color-text-secondary: #475569;
    --ds-color-text-muted: #64748b;

    /* Borders and dividers */
    --ds-color-border-default: #dbe3ee;
    --ds-color-border-strong: #cbd5e1;
    --ds-color-divider: #e2e8f0;

    /* Semantic states */
    --ds-color-success-600: #0f766e;
    --ds-color-success-100: #ccfbf1;
    --ds-color-warning-600: #b45309;
    --ds-color-warning-100: #fef3c7;
    --ds-color-danger-600: #b91c1c;
    --ds-color-danger-100: #fee2e2;
    --ds-color-info-600: #0c4a6e;
    --ds-color-info-100: #e0f2fe;

    /* Typography */
    --ds-font-family-sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ds-font-size-100: 0.75rem;
    --ds-font-size-200: 0.875rem;
    --ds-font-size-300: 1rem;
    --ds-font-size-400: 1.125rem;
    --ds-font-size-500: 1.25rem;
    --ds-font-size-600: 1.5rem;
    --ds-font-size-700: 1.875rem;
    --ds-line-height-tight: 1.25;
    --ds-line-height-body: 1.5;
    --ds-line-height-relaxed: 1.65;
    --ds-font-weight-medium: 500;
    --ds-font-weight-semibold: 600;
    --ds-font-weight-bold: 700;

    /* Spacing scale */
    --ds-space-0: 0;
    --ds-space-1: 0.25rem;
    --ds-space-2: 0.5rem;
    --ds-space-3: 0.75rem;
    --ds-space-4: 1rem;
    --ds-space-5: 1.25rem;
    --ds-space-6: 1.5rem;
    --ds-space-8: 2rem;
    --ds-space-10: 2.5rem;
    --ds-space-12: 3rem;

    /* Radii */
    --ds-radius-sm: 0.375rem;
    --ds-radius-md: 0.5rem;
    --ds-radius-lg: 0.75rem;
    --ds-radius-xl: 1rem;
    --ds-radius-pill: 9999px;

    /* Shadows */
    --ds-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --ds-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --ds-shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.12);

    /* Focus and interaction */
    --ds-focus-ring-color: rgba(37, 99, 235, 0.35);
    --ds-focus-ring-width: 2px;
    --ds-focus-ring-offset: 2px;
    --ds-touch-target-min: 44px;

    /* Motion */
    --ds-motion-fast: 120ms;
    --ds-motion-base: 180ms;
    --ds-ease-standard: cubic-bezier(0.2, 0, 0, 1);

    /* Bootstrap bridge: global theme */
    --bs-primary: var(--ds-color-brand-600);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: var(--ds-color-brand-600);
    --bs-link-hover-color: var(--ds-color-brand-700);

    --bs-success: var(--ds-color-success-600);
    --bs-success-rgb: 15, 118, 110;
    --bs-warning: var(--ds-color-warning-600);
    --bs-warning-rgb: 180, 83, 9;
    --bs-danger: var(--ds-color-danger-600);
    --bs-danger-rgb: 185, 28, 28;
    --bs-info: var(--ds-color-info-600);
    --bs-info-rgb: 12, 74, 110;

    --bs-success-bg-subtle: var(--ds-color-success-100);
    --bs-warning-bg-subtle: var(--ds-color-warning-100);
    --bs-danger-bg-subtle: var(--ds-color-danger-100);
    --bs-info-bg-subtle: var(--ds-color-info-100);

    --bs-success-text-emphasis: var(--ds-color-success-600);
    --bs-warning-text-emphasis: var(--ds-color-warning-600);
    --bs-danger-text-emphasis: var(--ds-color-danger-600);
    --bs-info-text-emphasis: var(--ds-color-info-600);

    --bs-font-sans-serif: var(--ds-font-family-sans);
    --bs-body-font-family: var(--ds-font-family-sans);
    --bs-body-font-size: var(--ds-font-size-300);
    --bs-body-line-height: var(--ds-line-height-body);
    --bs-body-color: var(--ds-color-text-primary);
    --bs-secondary-color: var(--ds-color-text-secondary);
    --bs-tertiary-color: var(--ds-color-text-muted);

    --bs-body-bg: var(--ds-color-bg-page);
    --bs-secondary-bg: var(--ds-color-bg-subtle);
    --bs-tertiary-bg: var(--ds-color-bg-subtle);

    --bs-border-color: var(--ds-color-border-default);
    --bs-border-color-translucent: rgba(15, 23, 42, 0.12);

    --bs-border-radius: var(--ds-radius-md);
    --bs-border-radius-sm: var(--ds-radius-sm);
    --bs-border-radius-lg: var(--ds-radius-lg);
    --bs-border-radius-xl: var(--ds-radius-xl);
    --bs-border-radius-pill: var(--ds-radius-pill);

    --bs-box-shadow-sm: var(--ds-shadow-sm);
    --bs-box-shadow: var(--ds-shadow-md);
    --bs-box-shadow-lg: var(--ds-shadow-lg);

    --bs-focus-ring-color: var(--ds-focus-ring-color);
    --bs-focus-ring-width: var(--ds-focus-ring-width);
}

@media (min-width: 768px) {
    :root {
        --ds-font-size-500: 1.3125rem;
        --ds-font-size-600: 1.625rem;
        --ds-font-size-700: 2rem;
    }
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--ds-color-text-primary);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-tight);
    letter-spacing: -0.01em;
}

h1,
.h1 {
    font-size: clamp(var(--ds-font-size-500), 1.1rem + 1.2vw, var(--ds-font-size-700));
}

h2,
.h2 {
    font-size: clamp(var(--ds-font-size-400), 1rem + 0.8vw, var(--ds-font-size-600));
}

h3,
.h3 {
    font-size: clamp(var(--ds-font-size-300), 0.95rem + 0.55vw, var(--ds-font-size-500));
}

a {
    color: var(--bs-link-color);
}

a:hover {
    color: var(--bs-link-hover-color);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
[role="button"]:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);
    outline-offset: var(--ds-focus-ring-offset);
}

body {
    font-family: var(--ds-font-family-sans);
    font-size: var(--ds-font-size-300);
    line-height: var(--ds-line-height-body);
    color: var(--ds-color-text-primary);
    min-height: 100vh;
    background-color: var(--ds-color-bg-page);
    --ds-page-background-image:
        radial-gradient(115% 78% at 18% 0%, color-mix(in srgb, var(--ds-color-brand-600) 13%, transparent), transparent 64%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--ds-color-brand-600) 6%, var(--ds-color-bg-page)) 0%,
            color-mix(in srgb, var(--ds-color-brand-500) 4%, var(--ds-color-bg-page)) 45%,
            var(--ds-color-bg-page) 100%);
    --ds-page-background-size: 100% 24rem, 100% 24rem;
    background-image: var(--ds-page-background-image);
    background-repeat: no-repeat;
    background-size: var(--ds-page-background-size);
}

/* Shared page header system (UX-01D2.1 foundation layer). */
.page-header {
    display: flex;
    flex-direction: column;
    gap: var(--ds-space-3);
    margin-bottom: var(--ds-space-4);
}

.page-header-back {
    display: inline-flex;
    align-items: center;
    gap: var(--ds-space-2);
    min-height: var(--ds-touch-target-min);
    width: fit-content;
    padding: var(--ds-space-1) var(--ds-space-2);
    border-radius: var(--ds-radius-md);
    color: var(--ds-color-text-secondary);
    text-decoration: none;
    transition:
        background-color var(--ds-motion-fast) var(--ds-ease-standard),
        color var(--ds-motion-fast) var(--ds-ease-standard);
}

.page-header-back:hover,
.page-header-back:focus-visible {
    color: var(--ds-color-text-primary);
    background-color: color-mix(in srgb, var(--ds-color-brand-600) 10%, transparent);
    text-decoration: none;
}

.page-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ds-space-3);
    flex-wrap: wrap;
    min-width: 0;
}

.page-header-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.page-header-title {
    margin: 0;
    font-size: clamp(var(--ds-font-size-400), 1rem + 0.65vw, var(--ds-font-size-600));
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-tight);
    color: var(--ds-color-text-primary);
    overflow-wrap: anywhere;
}

.page-header-subtitle {
    margin: var(--ds-space-1) 0 0;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-200);
    line-height: var(--ds-line-height-body);
    max-width: 70ch;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--ds-space-2);
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.page-header-actions > .btn,
.page-header-actions > a.btn,
.page-header-actions > button,
.page-header-actions > form > .btn,
.page-header-actions > form > button {
    min-height: var(--ds-touch-target-min);
}

.page-header-actions > .btn.page-header-action-btn,
.page-header-actions > a.btn.page-header-action-btn,
.page-header-actions > button.page-header-action-btn,
.page-header-actions > form > .btn.page-header-action-btn,
.page-header-actions > form > button.page-header-action-btn {
    min-height: 44px;
}

.page-header-action-btn {
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: 13px;
    --bs-btn-font-weight: var(--ds-font-weight-medium);
    --bs-btn-border-radius: var(--ds-radius-md);
    --bs-btn-border-width: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;
    white-space: normal;
    text-align: center;
    flex: 0 0 auto;
    box-shadow: none;
}

.page-header-help {
    display: none;
    padding: var(--ds-space-3);
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-lg);
    background-color: var(--ds-color-surface);
    color: var(--ds-color-text-secondary);
    box-shadow: var(--ds-shadow-sm);
}

.page-header-help.show,
.page-header-help.collapsing,
.page-header-help.is-open {
    display: block;
}

.page-header-help .btn-close {
    min-width: var(--ds-touch-target-min);
    min-height: var(--ds-touch-target-min);
}

.page-header-divider {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--ds-color-border-default);
    opacity: 1;
}

@media (min-width: 768px) {
    .page-header-meta {
        flex: 1 1 20rem;
    }
}

@media (max-width: 767.98px) {
    .person-index-page-header .page-header-main {
        flex-direction: row;
        align-items: center;
    }

    .person-index-page-header .page-header-meta {
        width: auto;
        flex: 1 1 auto;
    }

    .person-index-page-header .page-header-actions {
        width: auto;
        flex: 0 0 auto;
    }

    .page-header {
        gap: var(--ds-space-2);
        margin-bottom: var(--ds-space-3);
    }

    .page-header-main {
        flex-direction: column;
        align-items: stretch;
        gap: var(--ds-space-2);
    }

    .page-header-meta,
    .page-header-actions {
        min-width: 0;
        width: 100%;
    }

    .page-header-actions {
        justify-content: flex-start;
    }

    .page-header-actions--mobile-compact {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    .page-header-actions--mobile-compact > .btn {
        flex: 0 1 auto;
        width: auto;
        max-width: 100%;
        padding: 0.28rem 0.4rem;
        font-size: 0.74rem;
        line-height: 1.2;
        white-space: normal;
    }

    .page-header-actions--mobile-compact > a.btn.page-header-action-btn {
        min-height: 36px;
    }

    .page-header-actions > .btn,
    .page-header-actions > a.btn,
    .page-header-actions > button,
    .page-header-actions > form,
    .page-header-actions > form > .btn,
    .page-header-actions > form > button {
        max-width: 100%;
    }

    .page-header-subtitle {
        max-width: 100%;
    }

    .page-header-help {
        padding: var(--ds-space-2) var(--ds-space-3);
    }
}

/* Shared detail content system (UX-01D3.4 / D3.5). */
.ds-detail-card {
    border: 1px solid #d5deea;
    border-radius: var(--ds-radius-lg);
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.ds-detail-card-body {
    padding: var(--ds-space-4);
}

.ds-detail-section-title {
    margin: 0;
    font-size: var(--ds-font-size-400);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-tight);
    color: var(--ds-color-text-primary);
}

.registration-review-layout .ds-detail-card-body { padding: .875rem 1rem; }
.registration-review-layout .ds-detail-section-title { padding-bottom: .5rem; border-bottom: 1px solid #e2e8f0; font-size: 1rem; }
.registration-review-layout .ds-detail-value { font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.registration-review-layout dl > dd { margin-bottom: .4rem; overflow-wrap: anywhere; }

.ds-detail-label {
    display: block;
    margin-bottom: 0.125rem;
    color: var(--ds-color-text-secondary) !important;
    font-size: var(--ds-font-size-100);
    letter-spacing: 0.01em;
}

.ds-detail-value {
    color: var(--ds-color-text-primary);
    line-height: var(--ds-line-height-body);
    overflow-wrap: anywhere;
}

.ds-detail-empty {
    color: var(--ds-color-text-secondary);
    margin-bottom: 0;
}

.ds-detail-card .badge {
    font-size: 0.72rem;
    font-weight: var(--ds-font-weight-medium);
    padding: 0.34em 0.56em;
    vertical-align: middle;
    line-height: 1.2;
}

.ds-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-2);
}

.ds-action-btn {
    --bs-btn-font-size: var(--ds-font-size-200);
    --bs-btn-font-weight: var(--ds-font-weight-medium);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.ds-action-btn.btn-sm {
    min-height: 40px;
}

.ds-action-btn.btn-outline-danger,
.ds-action-btn.btn-outline-warning {
    border-width: 1px;
}

.ds-detail-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ds-color-text-primary);
}

.ds-detail-table thead th {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-100);
    font-weight: var(--ds-font-weight-medium);
    letter-spacing: 0.01em;
    border-bottom-color: var(--ds-color-divider);
}

.ds-detail-table tbody td {
    vertical-align: middle;
    border-bottom-color: color-mix(in srgb, var(--ds-color-divider) 88%, white);
}

@media (max-width: 767.98px) {
    .ds-detail-card-body {
        padding: var(--ds-space-3);
    }

    .ds-detail-section-title {
        font-size: var(--ds-font-size-300);
    }

    .ds-detail-label {
        margin-bottom: 0.08rem;
        line-height: 1.2;
    }

    .ds-detail-card .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.5em;
    }

    .ds-action-btn,
    .ds-action-btn.btn-sm {
        min-height: var(--ds-touch-target-min);
    }

    .person-filters-card .person-filters-toggle,
    .person-filters-card .person-filters-form .ds-action-btn,
    .registration-filter-actions > .ds-action-btn {
        min-height: 40px;
    }
}

.main-navbar {
    --bs-navbar-padding-y: var(--ds-space-2);
    --bs-navbar-brand-padding-y: 0;
    --bs-navbar-color: var(--ds-color-text-secondary);
    --bs-navbar-hover-color: var(--ds-color-text-primary);
    --bs-navbar-active-color: var(--ds-color-brand-700);
    --bs-navbar-toggler-border-color: var(--ds-color-border-strong);
    background-color: color-mix(in srgb, var(--ds-color-surface) 96%, var(--ds-color-bg-subtle));
    border-bottom-color: var(--ds-color-divider) !important;
    box-shadow: var(--ds-shadow-sm) !important;
}

.main-navbar > .main-navbar-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    gap: var(--ds-space-2);
}

.app-header-identity {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    gap: 0 var(--ds-space-2);
}

.main-navbar-brand {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: var(--ds-space-2);
    color: var(--ds-color-text-primary);
    text-decoration: none;
    min-height: var(--ds-touch-target-min);
    min-width: 0;
    margin: 0;
    white-space: normal;
    line-height: 1.2;
}

.main-navbar-brand:hover,
.main-navbar-brand:focus-visible {
    color: var(--ds-color-text-primary);
}

.app-club-logo {
    width: 2.875rem;
    height: 2.875rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.desktop-sidebar .app-club-logo {
    width: 3.5rem;
    height: 3.5rem;
}

.main-navbar-brand-details,
.desktop-sidebar-brand-details {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: var(--ds-space-1);
    flex: 1 1 auto;
    min-width: 0;
}

.main-navbar-brand-text {
    font-size: var(--ds-font-size-300);
    font-weight: var(--ds-font-weight-semibold);
    letter-spacing: -0.01em;
    color: var(--ds-color-text-primary);
}

.main-navbar-brand:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);
    outline-offset: var(--ds-focus-ring-offset);
}

.mobile-profile .mobile-profile-toggle {
    display: grid;
    place-items: center;
    inline-size: var(--ds-touch-target-min);
    block-size: var(--ds-touch-target-min);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bs-btn-color);
}

.mobile-profile-frame {
    display: grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border: 1px solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
}

.mobile-profile-toggle:is(:hover, :focus-visible, .show) .mobile-profile-frame {
    background: var(--bs-btn-hover-bg);
    color: var(--bs-btn-hover-color);
}

.mobile-profile .dropdown-item {
    display: flex;
    align-items: center;
    min-height: var(--ds-touch-target-min);
}

.mobile-navigation-destinations {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-navigation-destinations li + li {
    border-top: 1px solid var(--ds-color-divider);
}

.mobile-navigation-destination {
    display: flex;
    align-items: center;
    gap: var(--ds-space-3);
    min-height: var(--ds-touch-target-min);
    padding: var(--ds-space-3);
    color: var(--ds-color-text-primary);
    text-decoration: none;
    border-radius: var(--ds-radius-md);
}

.mobile-profile-toggle:focus-visible,
.mobile-profile .dropdown-item:focus-visible,
.mobile-navigation-destination:focus-visible,
.mobile-navigation-tab:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);
    outline-offset: calc(-1 * var(--ds-focus-ring-width));
}

.mobile-navigation-destination:hover {
    background: var(--ds-color-bg-subtle);
}

.mobile-navigation-tab[aria-current],
.mobile-navigation-destination[aria-current] {
    color: var(--ds-color-brand-700);
    background: color-mix(in srgb, var(--ds-color-brand-600) 10%, var(--ds-color-surface));
    font-weight: var(--ds-font-weight-semibold);
}

.navigation-more {
    max-width: 42rem;
    margin-inline: auto;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: var(--mobile-navigation-header-height, 0px);
    }

    .mobile-navigation-enabled {
        --mobile-navigation-bar-height: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        padding-bottom: var(--mobile-navigation-bar-height);
    }

    .app-header--authenticated {
        position: sticky;
        top: 0;
        z-index: 1030;
        padding-top: env(safe-area-inset-top, 0px);
        background-color: var(--ds-color-surface);
    }

    .app-header--authenticated .main-navbar {
        --bs-navbar-padding-y: 0;
    }

    .app-header--authenticated .main-navbar-container {
        --bs-gutter-x: .5rem;
        gap: var(--ds-space-1);
    }

    .app-header--authenticated .app-header-identity,
    .app-header--authenticated .main-navbar-brand {
        column-gap: .125rem;
    }

    .app-header--authenticated .app-club-logo {
        width: 2.875rem;
        height: 2.875rem;
    }

    .app-header--authenticated .main-navbar-brand {
        justify-content: center;
        gap: .25rem;
    }

    .app-header--authenticated .main-navbar-brand-details {
        text-align: center;
    }

    .mobile-navigation-enabled .desktop-app-shell,
    .app-header--authenticated .main-navbar {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .mobile-navigation-bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 1020;
        padding: var(--ds-space-1) max(var(--ds-space-1), env(safe-area-inset-right, 0px))
            calc(var(--ds-space-1) + env(safe-area-inset-bottom, 0px))
            max(var(--ds-space-1), env(safe-area-inset-left, 0px));
        background: var(--ds-color-surface);
        border-top: 1px solid var(--ds-color-divider);
        box-shadow: 0 -2px 8px rgb(15 23 42 / 8%);
    }

    .mobile-navigation-keyboard .mobile-navigation-bar {
        visibility: hidden;
    }

    .mobile-navigation-tabs {
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        gap: 2px;
        max-width: 40rem;
        padding: 0;
        margin: 0 auto;
        list-style: none;
    }

    .mobile-navigation-tab {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .15rem;
        width: 100%;
        height: 100%;
        min-height: 3.25rem;
        padding: .25rem .125rem;
        color: var(--ds-color-text-secondary);
        background: transparent;
        border: 0;
        border-radius: var(--ds-radius-md);
        font-size: .6875rem;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .mobile-navigation-tab .desktop-sidebar-icon {
        flex: 0 0 auto;
        width: 1.25rem;
        height: 1.25rem;
    }

    .mobile-navigation-count {
        position: absolute;
        inset: 0 .125rem auto auto;
    }

    .mobile-navigation-sheet.offcanvas-bottom {
        height: auto;
        max-height: calc(100vh - max(1rem, env(safe-area-inset-top, 0px)));
        max-height: calc(100dvh - max(1rem, env(safe-area-inset-top, 0px)));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    }

    .mobile-navigation-sheet .offcanvas-body {
        overscroll-behavior: contain;
        padding-top: 0;
    }

    .mobile-navigation-sheet .btn-close {
        min-width: var(--ds-touch-target-min);
        min-height: var(--ds-touch-target-min);
        padding: 0;
    }
}

.desktop-app-shell {
    min-width: 0;
}

.desktop-app-content {
    min-width: 0;
}

.desktop-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    flex-direction: column;
    gap: var(--ds-space-4);
    width: 16rem;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: var(--ds-space-4) var(--ds-space-3);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ds-color-border-strong) transparent;
    color: var(--ds-color-text-primary);
    background-color: var(--ds-color-surface);
    border-right: 1px solid var(--ds-color-divider);
}

.desktop-sidebar-icon-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.desktop-sidebar-identity {
    padding: 0 var(--ds-space-2) var(--ds-space-4);
    border-bottom: 1px solid var(--ds-color-divider);
}

.desktop-sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    min-height: var(--ds-touch-target-min);
    color: var(--ds-color-text-primary);
    text-decoration: none;
}

.desktop-sidebar-brand:hover,
.desktop-sidebar-brand:focus-visible {
    color: var(--ds-color-text-primary);
}

.desktop-sidebar-brand-details {
    text-align: center;
}

.desktop-sidebar-brand:focus-visible,
.desktop-sidebar-link:focus-visible {
    outline: var(--ds-focus-ring-width) solid var(--ds-focus-ring-color);
    outline-offset: var(--ds-focus-ring-offset);
}

.desktop-sidebar-brand-text {
    min-width: 0;
    font-size: var(--ds-font-size-300);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-tight);
    text-align: center;
}

.desktop-sidebar-nav {
    flex: 1 0 auto;
    min-width: 0;
}

.desktop-sidebar-list,
.desktop-sidebar-sublist {
    display: grid;
    gap: var(--ds-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-sidebar-group {
    min-width: 0;
}

.desktop-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    width: 100%;
    min-width: 0;
    min-height: var(--ds-touch-target-min);
    padding: var(--ds-space-2) var(--ds-space-3);
    color: var(--ds-color-text-secondary);
    font: inherit;
    font-weight: var(--ds-font-weight-medium);
    line-height: var(--ds-line-height-tight);
    text-align: left;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    background: transparent;
    border: 0;
    border-inline-start: 3px solid transparent;
    border-radius: var(--ds-radius-md);
    transition: background-color var(--ds-motion-fast) var(--ds-ease-standard),
        color var(--ds-motion-fast) var(--ds-ease-standard);
}

.desktop-sidebar-link:hover:not([aria-current="page"]) {
    color: var(--ds-color-text-primary);
    background-color: var(--ds-color-bg-subtle);
}

.desktop-sidebar-link[aria-current="page"] {
    color: var(--ds-color-brand-700);
    font-weight: var(--ds-font-weight-semibold);
    background-color: color-mix(in srgb, var(--ds-color-brand-600) 10%, var(--ds-color-surface));
    border-inline-start-color: var(--ds-color-brand-600);
}

.desktop-sidebar-icon {
    flex: 0 0 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-sidebar-link-label {
    flex: 1 1 auto;
    min-width: 0;
}

.navigation-task-count {
    flex: 0 0 auto;
    min-width: 1.35rem;
    padding: 0.125rem 0.375rem;
    color: #fff;
    font-size: var(--ds-font-size-100);
    font-weight: var(--ds-font-weight-semibold);
    line-height: 1.2;
    text-align: center;
    background-color: var(--ds-color-danger-600);
    border-radius: 999px;
}

.desktop-sidebar-chevron {
    display: inline-flex;
    flex: 0 0 auto;
    transition: transform var(--ds-motion-fast) var(--ds-ease-standard);
}

.desktop-sidebar-toggle[aria-expanded="true"] .desktop-sidebar-chevron {
    transform: rotate(180deg);
}

.desktop-sidebar-collapse {
    min-width: 0;
}

.desktop-sidebar-sublist {
    margin: var(--ds-space-1) 0 var(--ds-space-2) var(--ds-space-4);
    padding-left: var(--ds-space-2);
    border-left: 1px solid var(--ds-color-divider);
}

.desktop-sidebar-sublink {
    min-height: 2.5rem;
    padding-left: var(--ds-space-2);
}

.desktop-sidebar-profile {
    display: grid;
    gap: var(--ds-space-1);
    min-width: 0;
    padding-top: var(--ds-space-3);
    border-top: 1px solid var(--ds-color-divider);
}

.desktop-sidebar-profile-identity {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
    min-width: 0;
    padding: 0 var(--ds-space-3) var(--ds-space-2);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-200);
}

.desktop-sidebar-logout {
    min-width: 0;
    margin: 0;
}

@media (min-width: 992px) {
    /* Bootstrap closes open offcanvases that stop being fixed on resize. */
    .mobile-navigation-sheet.offcanvas-bottom {
        position: static;
    }

    .desktop-app-shell {
        --desktop-sidebar-width: 14rem;
        display: grid;
        grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr);
        align-items: start;
    }

    .desktop-sidebar {
        width: var(--desktop-sidebar-width);
    }

    main.container.ds-content-shell {
        max-width: var(--ds-content-max-width);
        margin-inline: auto;
    }

    .ds-content-shell .ds-form-shell {
        margin-inline: auto;
    }

    .mobile-installation-page {
        margin-inline: 0;
    }

    .mobile-installation-page > [data-controller="mobile-installation"] {
        width: 100%;
        max-width: 48rem;
        padding-inline: 0;
    }
}

@media print {
    .app-header--authenticated {
        position: static;
    }

    .mobile-navigation-bar,
    .mobile-navigation-sheet {
        display: none !important;
    }

    .mobile-navigation-enabled {
        padding-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .desktop-app-shell {
        display: block;
    }

    .desktop-sidebar {
        display: none !important;
    }
}

.card {
    border-color: #d5deea;
    border-radius: var(--ds-radius-lg);
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.card-header,
.card-footer {
    background-color: var(--ds-color-surface);
    border-color: var(--ds-color-divider);
}

.card-body {
    padding: var(--ds-space-5);
}

.btn {
    --bs-btn-font-weight: var(--ds-font-weight-medium);
    --bs-btn-border-radius: var(--ds-radius-md);
    --bs-btn-padding-x: 0.875rem;
    --bs-btn-padding-y: 0.5rem;
    min-height: var(--ds-touch-target-min);
    transition: background-color var(--ds-motion-fast) var(--ds-ease-standard),
        border-color var(--ds-motion-fast) var(--ds-ease-standard),
        color var(--ds-motion-fast) var(--ds-ease-standard),
        box-shadow var(--ds-motion-fast) var(--ds-ease-standard);
}

.btn-sm {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    min-height: var(--ds-touch-target-min);
}

.btn-primary {
    --bs-btn-bg: var(--ds-color-brand-600);
    --bs-btn-border-color: var(--ds-color-brand-600);
    --bs-btn-hover-bg: var(--ds-color-brand-700);
    --bs-btn-hover-border-color: var(--ds-color-brand-700);
    --bs-btn-active-bg: color-mix(in srgb, var(--ds-color-brand-700) 92%, black);
    --bs-btn-active-border-color: color-mix(in srgb, var(--ds-color-brand-700) 92%, black);
    --bs-btn-disabled-bg: color-mix(in srgb, var(--ds-color-brand-600) 62%, white);
    --bs-btn-disabled-border-color: color-mix(in srgb, var(--ds-color-brand-600) 62%, white);
}

.btn-outline-primary {
    --bs-btn-color: var(--ds-color-brand-600);
    --bs-btn-border-color: color-mix(in srgb, var(--ds-color-brand-600) 52%, white);
    --bs-btn-hover-bg: var(--ds-color-brand-600);
    --bs-btn-hover-border-color: var(--ds-color-brand-600);
    --bs-btn-active-bg: var(--ds-color-brand-700);
    --bs-btn-active-border-color: var(--ds-color-brand-700);
}

.btn-outline-secondary {
    --bs-btn-color: var(--ds-color-text-secondary);
    --bs-btn-border-color: var(--ds-color-border-strong);
    --bs-btn-hover-bg: var(--ds-color-bg-subtle);
    --bs-btn-hover-color: var(--ds-color-text-primary);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--ds-color-border-strong) 82%, black);
    --bs-btn-active-bg: color-mix(in srgb, var(--ds-color-bg-subtle) 82%, black 8%);
    --bs-btn-active-border-color: color-mix(in srgb, var(--ds-color-border-strong) 82%, black);
}

.btn:focus-visible {
    box-shadow: 0 0 0 var(--ds-focus-ring-width) var(--ds-focus-ring-color);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.72;
}

.form-label {
    color: var(--ds-color-text-secondary);
    font-weight: var(--ds-font-weight-medium);
    margin-bottom: var(--ds-space-1);
}

.form-control,
.form-select {
    min-height: var(--ds-touch-target-min);
    border-color: var(--ds-color-border-strong);
    border-radius: var(--ds-radius-md);
    background-color: var(--ds-color-surface);
    color: var(--ds-color-text-primary);
}

.form-control,
.form-select,
.form-check-input {
    transition: border-color var(--ds-motion-fast) var(--ds-ease-standard),
        box-shadow var(--ds-motion-fast) var(--ds-ease-standard),
        background-color var(--ds-motion-fast) var(--ds-ease-standard),
        color var(--ds-motion-fast) var(--ds-ease-standard);
}

.form-control::placeholder {
    color: var(--ds-color-text-muted);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--ds-color-brand-600) 52%, white);
    box-shadow: 0 0 0 var(--ds-focus-ring-width) var(--ds-focus-ring-color);
}

.form-check-input {
    border-color: var(--ds-color-border-strong);
}

.form-check-input:focus {
    box-shadow: 0 0 0 var(--ds-focus-ring-width) var(--ds-focus-ring-color);
}

.form-check-input:checked {
    background-color: var(--ds-color-brand-600);
    border-color: var(--ds-color-brand-600);
}

.form-label.required::after,
label.required.form-label::after {
    content: " *";
    color: var(--ds-color-danger-600);
}

.form-text,
.ds-form-help {
    margin-top: var(--ds-space-1);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-200);
    line-height: 1.4;
}

.password-strength-progress {
    height: .375rem;
}

.password-criterion {
    line-height: 1.45;
}

.invalid-feedback,
.form-error-message {
    margin-top: var(--ds-space-1);
    font-size: var(--ds-font-size-200);
    line-height: 1.4;
    color: var(--ds-color-danger-600);
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--ds-color-danger-600);
    background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: var(--ds-color-danger-600);
    box-shadow: 0 0 0 var(--ds-focus-ring-width) color-mix(in srgb, var(--ds-color-danger-600) 26%, transparent);
}

.form-control:disabled,
.form-select:disabled,
.form-check-input:disabled {
    background-color: var(--ds-color-bg-subtle);
    border-color: var(--ds-color-border-default);
    color: var(--ds-color-text-muted);
    opacity: 1;
}

.form-control[readonly],
.form-select[readonly],
.form-control-plaintext {
    background-color: color-mix(in srgb, var(--ds-color-bg-subtle) 72%, white);
    border-color: color-mix(in srgb, var(--ds-color-border-default) 80%, white);
    color: var(--ds-color-text-secondary);
}

:root {
    --ds-content-max-width: 64rem;
}

.ds-form-shell {
    width: 100%;
    max-width: var(--ds-content-max-width);
    margin: 0;
}

.ds-form-section {
    padding-top: var(--ds-space-3);
    border-top: 1px solid var(--ds-color-divider);
}

.ds-form-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.ds-form-section-title {
    margin: 0 0 var(--ds-space-3);
    font-size: var(--ds-font-size-400);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-tight);
    color: var(--ds-color-text-primary);
}

.ds-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ds-space-3);
}

.ds-form-field {
    min-width: 0;
}

.team-calendar-color-preview {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--ds-color-text-secondary);
    font-size: .875rem;
}

.team-calendar-color-swatch {
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    border: 1px solid var(--ds-color-divider);
    border-radius: var(--ds-radius-sm);
    background-color: transparent;
}

.android-install-guide > summary {
    cursor: pointer;
}

.android-guide-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.android-guide-step {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.android-guide-step img {
    width: 100%;
    height: 10rem;
    object-fit: contain;
    border-radius: .5rem;
    background: var(--bs-tertiary-bg);
}

@media (min-width: 768px) {
    .android-guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body:has(.login-page) {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

main.container:has(> .login-page) {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.app-standalone .login-installation-action {
    display: none;
}

@media (display-mode: standalone) {
    .login-installation-action {
        display: none;
    }
}

.login-form .login-remember-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 14px;
    cursor: pointer;
}

.login-form .login-remember-me .form-check-input {
    float: none;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
}

.ds-form-error-summary {
    margin-bottom: var(--ds-space-3);
    padding: var(--ds-space-2) var(--ds-space-3);
    border: 1px solid color-mix(in srgb, var(--ds-color-danger-600) 28%, white);
    border-radius: var(--ds-radius-md);
    background-color: color-mix(in srgb, var(--ds-color-danger-100) 58%, white);
    color: var(--ds-color-danger-600);
}

.ds-form-error-summary > :last-child {
    margin-bottom: 0;
}

.ds-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ds-space-2);
    margin-top: var(--ds-space-4);
}

.ds-form-actions .btn,
.ds-form-actions button,
.ds-form-actions a.btn {
    width: auto;
    max-width: 100%;
}

.ds-form-actions .btn:not(.ds-action-btn),
.ds-form-actions button:not(.ds-action-btn),
.ds-form-actions a.btn:not(.ds-action-btn) {
    --bs-btn-font-size: var(--ds-font-size-200);
    --bs-btn-font-weight: var(--ds-font-weight-medium);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.ds-form-actions .btn-outline-danger,
.ds-form-actions .btn-outline-warning,
.ds-form-actions [data-ds-action="sensitive"] {
    margin-left: var(--ds-space-1);
}

.ds-form-readonly {
    background-color: color-mix(in srgb, var(--ds-color-bg-subtle) 56%, white);
    border: 1px dashed color-mix(in srgb, var(--ds-color-border-strong) 92%, white);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-3);
}

.ds-form-disabled {
    opacity: 0.92;
    background-color: color-mix(in srgb, var(--ds-color-bg-subtle) 72%, white);
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    padding: var(--ds-space-3);
}

.ds-form-disabled .btn,
.ds-form-disabled button,
.ds-form-disabled .form-control,
.ds-form-disabled .form-select,
.ds-form-disabled .form-check-input {
    pointer-events: none;
}

.text-secondary {
    color: var(--ds-color-text-secondary) !important;
}

.small,
small {
    color: var(--ds-color-text-secondary);
}

.hero-box {
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 0.75rem;
    background-color: #ffffff;
}

.team-season-list {
    display: grid;
    gap: var(--ds-space-3);
}

.team-season-list:not(.accordion-body) {
    margin-bottom: var(--ds-space-4);
}

.team-season-block,
.ds-list-table-soft {
    --ds-list-heading-bg: color-mix(in srgb, var(--ds-color-divider) 28%, var(--ds-color-surface));
    --ds-list-emphasis: color-mix(in srgb, var(--ds-color-divider) 45%, var(--ds-color-surface));
}

.team-season-block {
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    background-color: var(--ds-color-surface);
    overflow: clip;
}

.team-season-header,
.team-season-archive-heading {
    padding: var(--ds-space-2) var(--ds-space-3);
}

.team-season-header {
    background-color: var(--ds-list-heading-bg);
    border-bottom: 1px solid var(--ds-color-border-strong);
}

.team-season-heading {
    font-weight: var(--ds-font-weight-bold);
    line-height: var(--ds-line-height-tight);
    overflow-wrap: anywhere;
}

.team-season-archive-heading {
    color: var(--ds-color-text-secondary);
    border-bottom: 1px solid var(--ds-color-divider);
}

.team-season-empty {
    padding: var(--ds-space-2) var(--ds-space-3);
}

.team-archived-teams {
    border-top: 1px solid var(--ds-color-border-strong);
}

.team-season-rows > li + li {
    border-top: 1px solid var(--ds-color-divider);
}

.team-index-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.125rem var(--ds-space-3);
    min-height: 44px;
    padding: var(--ds-space-2) var(--ds-space-3);
    color: var(--ds-color-text-primary);
}

.team-index-row:focus-visible {
    outline: 2px solid var(--ds-color-brand-700);
    outline-offset: -2px;
}

.team-index-row:is(:hover, :focus-within) {
    background-color: var(--ds-list-emphasis);
}

.team-index-row-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem var(--ds-space-2);
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .team-season-list {
        gap: var(--ds-space-2);
    }

    .team-index-row {
        padding-block: 0.375rem;
        grid-template-areas: "identity chevron" "counts chevron";
        align-content: center;
        line-height: var(--ds-line-height-tight);
    }

    .team-index-row-identity {
        grid-area: identity;
    }

    .team-index-row-counts {
        grid-area: counts;
    }

    .team-index-row > .player-mobile-card-chevron {
        grid-area: chevron;
    }
}

@media (min-width: 768px) {
    .team-index-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }
}

.team-index-headline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.team-index-title-meta {
    display: flex;
    align-items: center;
    min-width: 0;
}

.team-info-trigger {
    color: #6c757d;
}

.team-info-trigger:hover,
.team-info-trigger:focus-visible {
    color: #495057;
}

.team-back-icon-link {
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    color: #495057;
    text-decoration: none;
    flex: 0 0 auto;
}

.team-back-icon-link:hover {
    color: #212529;
}

.team-back-icon-link:focus,
.team-back-icon-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.28);
    outline-offset: 1px;
    border-radius: 0.25rem;
}

.team-show-mobile-head,
.team-show-mobile-head-text {
    min-width: 0;
}

.team-show-mobile-head-text .h3,
.team-mobile-player-name {
    overflow-wrap: anywhere;
}

.team-mobile-player-list {
    display: block;
}

.team-mobile-player-lines {
    margin: 0;
    padding: 0;
}

.team-mobile-player-line {
    border-bottom: 1px solid rgba(33, 37, 41, 0.1);
    padding: 0.2rem 0;
}

.team-mobile-player-lines .team-mobile-player-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.team-mobile-player-main {
    min-height: 44px;
    display: block;
}

.team-mobile-player-link {
    color: inherit;
    text-decoration: none;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.6rem;
    width: 100%;
    border-radius: 0.25rem;
}

.team-mobile-player-link:hover,
.team-mobile-player-link:focus-visible {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.07);
    text-decoration: none;
}

.team-mobile-player-static {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.6rem;
}

.team-mobile-player-name {
    font-weight: 600;
    line-height: 1.18;
}

.team-mobile-player-date {
    font-size: 0.82rem;
    color: #6c757d;
    white-space: nowrap;
}

.team-mobile-player-note-wrap {
    margin-top: 0.2rem;
}

.team-player-cell-link {
    display: block;
    margin: -0.45rem -0.5rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.25rem;
}

.team-player-cell-link:hover,
.team-player-cell-link:focus-visible {
    background-color: rgba(13, 110, 253, 0.07);
    text-decoration: none;
}

.table-link-subtle {
    color: inherit;
    text-decoration: none;
}

.table-link-subtle:hover,
.table-link-subtle:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.ds-list-card {
    background: #ffffff;
    border: 1px solid rgba(120, 139, 164, 0.28) !important;
    border-radius: 0.5rem;
    box-shadow: 0 0.08rem 0.28rem rgba(15, 23, 42, 0.08) !important;
}

.ds-list-card-body {
    position: relative;
    padding: 0.5rem 0.56rem;
}

.ds-list-card-title {
    overflow-wrap: anywhere;
    line-height: 1.15;
    font-weight: 700;
}

.ds-list-card-meta {
    line-height: 1.15;
}

.ds-list-card .contact-link,
.ds-list-card .wa-link-icon,
.ds-list-card .ds-list-card-actions {
    position: relative;
    z-index: 2;
}

.ds-list-table thead th {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.79rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
}

.ds-list-table tbody td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    vertical-align: middle;
}

.ds-list-row {
    transition: background-color 120ms ease;
}

.ds-list-row:hover {
    background-color: rgba(13, 110, 253, 0.04);
}

.ds-list-row:focus-within {
    background-color: rgba(13, 110, 253, 0.07);
}

.ds-list-table > tbody > .ds-list-row:hover > * {
    background-color: rgba(13, 110, 253, 0.04);
}

.ds-list-table > tbody > .ds-list-row:focus-within > * {
    background-color: rgba(13, 110, 253, 0.07);
}

@media (min-width: 992px) {
    .ds-list-table-soft {
        --bs-table-bg: var(--ds-color-surface);
        --bs-table-border-color: var(--ds-color-divider);
        border: 1px solid var(--ds-color-border-default);
        border-collapse: separate;
        border-spacing: 0;
        border-radius: var(--ds-radius-lg);
    }

    .ds-list-table-soft > :is(thead, tbody) > tr > * {
        padding-inline: var(--ds-space-3);
    }

    .ds-list-table-soft > thead > tr > * {
        --bs-table-bg: var(--ds-list-heading-bg);
        border-bottom-color: var(--ds-color-border-strong);
        color: var(--ds-color-text-primary);
        font-weight: var(--ds-font-weight-bold);
    }

    .ds-list-table-soft > thead > tr:first-child > :first-child {
        border-start-start-radius: calc(var(--ds-radius-lg) - 1px);
    }

    .ds-list-table-soft > thead > tr:first-child > :last-child {
        border-start-end-radius: calc(var(--ds-radius-lg) - 1px);
    }

    .ds-list-table-soft > tbody > tr:last-child > * {
        border-bottom-width: 0;
    }

    .ds-list-table-soft > tbody > tr > :first-child {
        border-radius: var(--ds-radius-sm) 0 0 var(--ds-radius-sm);
    }

    .ds-list-table-soft > tbody > tr > :last-child {
        border-radius: 0 var(--ds-radius-sm) var(--ds-radius-sm) 0;
    }

    .ds-list-table-soft > tbody > tr,
    .ds-list-table-soft > tbody > .ds-list-row:is(:hover, :focus-within) {
        background-color: transparent;
    }

    .ds-list-table-soft > tbody > tr:is(:hover, :focus-within) > *,
    .ds-list-table-soft > tbody > .ds-list-row:is(:hover, :focus-within) > * {
        background-color: var(--ds-list-emphasis);
    }

    .ds-list-table-soft .ds-list-cell-link {
        border-radius: var(--ds-radius-sm);
    }

    .ds-list-table-soft .ds-list-cell-link:is(:hover, :focus-visible) {
        background-color: var(--ds-list-emphasis);
    }

    .composition-desktop-workspace .ds-list-table-soft > :is(thead, tbody) > tr > * {
        padding-inline: var(--ds-space-2);
    }

    .composition-desktop-workspace .ds-list-table-soft > tbody > :is(.table-secondary, .table-light) {
        --bs-table-bg: var(--ds-color-surface);
    }

    .composition-desktop-workspace .ds-list-table-soft > tbody > .table-light > :first-child {
        box-shadow: inset 3px 0 var(--ds-color-border-strong);
    }

    .composition-desktop-workspace .ds-list-table-soft > tbody > .table-secondary > :first-child {
        box-shadow: inset 3px 0 var(--ds-color-text-muted);
    }
}

.team-player-table {
    table-layout: fixed;
}

.team-player-table-details .team-player-firstname {
    width: 19%;
}

.team-player-table-details .team-player-lastname {
    width: 23%;
}

.team-player-table-details .team-player-birthdate {
    width: 18%;
}

.team-player-table-details .team-player-contact-column {
    width: 40%;
}

.team-player-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
}

.team-player-identity .badge {
    white-space: normal;
    text-align: start;
}

.team-player-table .ds-list-row:hover,
.team-player-table .ds-list-row:focus-within {
    background-color: transparent;
}

.team-player-table > tbody > tr:hover > td,
.team-player-table > tbody > tr:focus-within > td {
    --bs-table-bg: #eef4ff;
}

.team-player-table td,
.team-membership-note,
.team-coach-row,
.team-coach-contacts {
    overflow-wrap: anywhere;
}

.team-membership-note {
    line-height: 1.25;
    font-weight: 400;
}

.team-player-contacts {
    overflow-wrap: anywhere;
}

.team-attendance-player-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 36px;
    min-height: 36px;
    color: var(--bs-secondary-color, #64748b);
    border-radius: .35rem;
}

.team-attendance-player-link:focus-visible {
    outline: 2px solid var(--bs-primary, #2563eb);
    outline-offset: 1px;
}

.team-player-table .team-attendance-player-link {
    margin-left: auto;
}
.team-mobile-attendance { position: absolute; right: .35rem; bottom: .1rem; z-index: 2; }
.player-mobile-card-body:has(.team-mobile-attendance) { padding-bottom: 36px; }
.team-mobile-attendance .team-attendance-player-link { min-width: 40px; min-height: 36px; }

.team-player-contact-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

@media (max-width: 767.98px) {
    .team-mobile-player-list .team-player-contacts a.contact-parent-link::after,
    .team-mobile-player-list .team-player-contacts a.contact-link::after,
    .team-mobile-player-list .team-player-contacts a.wa-link-icon::after {
        content: "";
        position: absolute;
        inset: -1px 0;
        /* Keep subpixel hit-testing inside the expanded target. */
        clip-path: inset(0);
    }
}

.team-coach-row + .team-coach-row {
    border-top: 1px solid var(--bs-border-color);
}

.team-linked-row {
    position: relative;
}

.team-row-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.team-row-link:focus-visible::after {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: -2px;
}

.team-linked-row .contact-link,
.team-linked-row .wa-link-icon,
.team-player-contacts .contact-parent-link {
    position: relative;
    z-index: 2;
}

.team-summary .badge {
    white-space: normal;
    text-align: start;
}

.ds-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    color: inherit;
    text-decoration: none;
    min-height: 32px;
}

.ds-sort-link:hover,
.ds-sort-link:focus-visible {
    color: #0d6efd;
    text-decoration: none;
}

.ds-sort-link.is-active {
    color: #0f172a;
}

.ds-sort-icon {
    font-size: 0.7rem;
    line-height: 1;
    color: #64748b;
}

.ds-sort-link.is-active .ds-sort-icon {
    color: #0f172a;
}

.ds-neutral-badge {
    background-color: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 0.24rem 0.44rem;
}

.ds-meta-badge {
    background-color: #ffffff;
    border: 1px solid #cad6e4;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.1;
    padding: 0.2rem 0.42rem;
}

.ds-list-cell-link {
    display: block;
    margin: -0.35rem -0.4rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.25rem;
}

.ds-list-cell-link:hover,
.ds-list-cell-link:focus-visible {
    background-color: rgba(13, 110, 253, 0.07);
    text-decoration: none;
}

.player-table-cell-link {
    display: block;
    margin: -0.35rem -0.4rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.25rem;
}

.player-table-cell-link:hover,
.player-table-cell-link:focus-visible {
    background-color: rgba(13, 110, 253, 0.07);
    text-decoration: none;
}

.player-table-teams-text {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
}

.player-table-team-badges {
    max-width: 100%;
    line-height: 1;
}

.player-table-team-badge {
    background-color: #ffffff !important;
    border-color: #cad6e4 !important;
    color: #334155 !important;
}

.player-table-team-more {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.composition-mobile-tabs .nav-link {
    min-height: 44px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.composition-mobile-tabs .nav-link.active {
    font-weight: 600;
}

.composition-team-selector-card .form-select {
    min-height: 44px;
}

.participation-preference-segments > .btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 0 0.55rem;
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
}

.participation-preference-segments > .btn-check:checked + .btn {
    color: var(--ds-color-text-primary);
    background-color: var(--ds-color-bg-subtle);
    border-color: var(--ds-color-brand-600);
    font-weight: 600;
}

.participation-preference-extra[hidden] {
    display: none !important;
}

.participation-preference-extra > :last-child {
    margin-bottom: 0 !important;
}

.participation-championship-name,
.participation-championship-value {
    min-width: 0;
    max-width: 100%;
}

.composition-participation-confirmation .composition-participation-choice {
    min-height: 44px;
    cursor: pointer;
}

.composition-participation-confirmation .composition-participation-choice:has(input:checked),
.composition-participation-confirmation .composition-participation-choice:focus-within {
    background-color: var(--bs-primary-bg-subtle);
}

.composition-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    margin-block: 0.1rem 0.2rem !important;
}

.composition-player-filters .form-label {
    font-size: 0.8rem;
    line-height: 1.15;
}

.composition-available-card .card-body {
    padding: 0.75rem;
}

.composition-player-filters-advanced {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.45rem;
}

.composition-mobile-content {
    background-color: #ffffff;
}

.composition-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.composition-mobile-card {
    border-color: rgba(120, 139, 164, 0.26) !important;
    overflow: hidden;
}

.composition-mobile-card.is-selectable {
    cursor: pointer;
    touch-action: manipulation;
}

.composition-mobile-card-locked {
    background-color: rgba(100, 116, 139, 0.08);
}

.composition-mobile-card-assigned {
    background-color: rgba(148, 163, 184, 0.09);
}

.composition-mobile-card.is-selected {
    border-color: rgba(13, 110, 253, 0.58) !important;
    background-color: rgba(13, 110, 253, 0.055);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.14);
}

.composition-action-bar {
    flex-wrap: wrap;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(120, 139, 164, 0.22);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.08);
}

.composition-action-team {
    min-width: 0;
    overflow-wrap: anywhere;
}

.composition-action-bar-remove > div {
    flex-wrap: wrap;
}

.composition-desktop-workspace {
    --bs-gutter-y: 0;
}

.composition-sticky-header {
    --composition-sticky-top: 0px;
    position: sticky;
    top: var(--composition-sticky-top);
    z-index: 6;
    display: flex;
    flex-direction: column;
    max-height: calc(100svh - var(--composition-sticky-top) - 3rem);
    background: var(--ds-color-surface);
    border-bottom: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md) var(--ds-radius-md) 0 0;
}

.composition-header-bar,
.composition-panel-heading {
    display: flex;
    align-items: center;
    gap: var(--ds-space-2);
}

.composition-header-bar {
    flex: none;
    min-height: 44px;
    padding-inline: var(--ds-space-2);
    border-bottom: 1px solid var(--ds-color-divider);
}

.composition-header-bar .composition-mobile-tabs {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
}

.composition-context-name,
.composition-panel-title {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: var(--ds-font-weight-bold);
}

.composition-header-toggle {
    flex: 0 0 44px;
    margin-inline-start: auto;
    min-height: 44px;
    color: var(--ds-color-text-secondary);
    background: transparent;
    border: 0;
    border-radius: var(--ds-radius-sm);
}

.composition-header-toggle:hover,
.composition-header-toggle:focus-visible {
    background: var(--ds-color-bg-subtle);
}

.composition-sticky-header.is-collapsed .composition-header-toggle svg {
    transform: rotate(180deg);
}

.composition-header-controls {
    min-height: 0;
    overflow: auto;
}

.composition-header-controls > .composition-desktop-workspace {
    margin-inline: 0;
}

.composition-header-controls > .composition-desktop-workspace > div {
    padding-inline: .6rem;
}

.composition-panel-header {
    padding-block: .35rem;
}

.composition-panel-heading {
    flex-wrap: wrap;
    min-height: 36px;
}

.composition-panel-title {
    margin: 0;
    font-size: .95rem;
}

.composition-panel-count {
    color: var(--ds-color-text-secondary);
    font-size: .8rem;
    white-space: nowrap;
}

.composition-panel-heading > :last-child:is(button, form) {
    margin-inline-start: auto;
}

.composition-header-details {
    display: grid;
    gap: var(--ds-space-1);
    padding-block: .35rem 0;
}

.composition-sticky-header.is-collapsed .composition-header-details {
    display: none;
}

@media (max-width: 991.98px) {
    .composition-sticky-header {
        --composition-sticky-top: var(--mobile-navigation-header-height, 0px);
        max-height: calc(100svh - var(--composition-sticky-top) - var(--mobile-navigation-bar-height, 0px) - 2.75rem);
    }

    .composition-mobile-controls {
        padding-inline: .6rem;
    }

    .composition-mobile-team-selector {
        flex: none;
        padding: .35rem .6rem;
    }

    .composition-mobile-filter-bar {
        flex-wrap: nowrap !important;
    }

    .composition-mobile-filter-bar .composition-filters-toggle {
        flex: none;
    }

    .composition-mobile-filter-bar .composition-filter-sections {
        min-width: 0;
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }

    .composition-mobile-filter-bar .composition-filter-sections .btn {
        flex: none;
        white-space: nowrap;
    }

    .composition-mobile-filter-bar .composition-filters-toggle[aria-expanded="false"] + .composition-filter-sections {
        display: none !important;
    }

    .composition-sticky-header:has(#roster-tab.active) .composition-available-controls,
    .composition-sticky-header:not(:has(#roster-tab.active)) .composition-roster-controls {
        display: none;
    }

    .composition-mobile-controls .composition-panel-title {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .composition-workspace .composition-mobile-controls .btn.composition-selection-action-btn {
        min-height: 44px;
        margin-block: 0;
    }

    .composition-workspace .composition-mobile-controls .btn.composition-selection-action-btn::after {
        content: none;
    }

    .composition-mobile-controls .composition-sort a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding-inline: .35rem;
    }
}

.composition-filter-sections { padding: .25rem; border-radius: .45rem; background: #f1f5f9; }
.composition-filter-sections .btn { --bs-btn-border-color: transparent; }

.composition-player-list {
    margin-bottom: 0;
}

.composition-roster-selector {
    flex-basis: 0;
    min-width: 0;
}

.composition-workspace .composition-roster-selector .form-select {
    height: 42px;
    min-height: 42px;
    padding: 0.3rem 1.8rem 0.3rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1.2;
    background-position: right 0.5rem center;
}

.composition-workspace .composition-panel-body {
    padding: 0.6rem;
}

.composition-workspace .btn.composition-compact-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.18rem 0.45rem;
    font-size: 0.78rem;
    line-height: 1.2;
    gap: 0.25rem;
}

.composition-workspace .composition-filters-toggle {
    --bs-btn-border-color: #cbd5e1;
}

.composition-filters-toggle svg {
    flex-shrink: 0;
}

@media (max-width: 767.98px), (pointer: coarse) {
    .composition-workspace .composition-remove-form { margin-top: .5rem; }

    .composition-workspace .btn.composition-compact-button {
        margin-block: 7px;
    }

    /* Extend the hit area without enlarging the visible button. */
    .composition-workspace .btn.composition-compact-button::after {
        content: "";
        position: absolute;
        inset: -7px 0;
    }
}

.composition-filter-sections [aria-pressed="true"] {
    color: #ffffff;
    background-color: #6c757d;
}

.composition-player-filters [hidden] {
    display: none !important;
}

.composition-mobile-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.composition-roster-row {
    position: relative;
}

.composition-roster-row.is-selectable {
    cursor: pointer;
}

.composition-desktop-workspace .composition-roster-row.is-selected > td {
    background-color: var(--ds-color-bg-subtle);
}

.composition-roster-row:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid var(--ds-color-brand-600);
    outline-offset: -2px;
}

.composition-mobile-card.is-selected .composition-mobile-player-name::after,
.composition-roster-row.is-selected .composition-roster-player-name::after {
    content: " ✓" / "";
    color: var(--ds-color-brand-600);
}

.composition-workspace .composition-candidate-card .composition-mobile-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "identity open";
    align-items: center;
    gap: 0.25rem;
}

.composition-workspace .composition-candidate-card:has(.composition-mobile-status-row) .composition-mobile-card-body {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px;
    grid-template-areas: "identity status open";
}

.composition-candidate-card .composition-mobile-card-top {
    display: contents;
}

.composition-candidate-card .composition-mobile-main {
    grid-area: identity;
}

.composition-candidate-card .composition-mobile-open-link {
    grid-area: open;
}

.composition-candidate-card .composition-mobile-status-row {
    grid-area: status;
    min-width: 0;
    min-height: 0;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.composition-workspace .composition-mobile-card .composition-mobile-card-body {
    padding: 0.3rem 0.4rem;
}

.composition-workspace .composition-mobile-card .composition-mobile-player-name {
    font-size: 0.84rem;
    line-height: 1.2;
}

.composition-workspace .composition-mobile-card .badge {
    padding: 0.22em 0.38em;
    font-size: 0.65rem;
    white-space: normal;
}

.composition-workspace .composition-mobile-player-meta {
    font-size: 0.74rem;
    line-height: 1.2;
}

.composition-workspace .composition-mobile-card-top {
    column-gap: 0.25rem;
}

.composition-workspace .composition-mobile-card-body {
    gap: 0.15rem;
}

.composition-workspace .composition-mobile-note-form {
    gap: 0.25rem;
}

.composition-workspace .composition-mobile-note-form .form-control {
    min-height: 30px;
    height: 30px;
    padding: 0.15rem 0.35rem;
    font-size: 0.8rem;
}

.composition-workspace .btn.composition-mobile-note-save-btn {
    height: 30px;
    width: 44px;
}

@media (max-width: 991.98px) {
    .composition-workspace #roster-pane .composition-mobile-card-body {
        gap: 4px;
    }

    .composition-workspace #roster-pane .composition-mobile-card-top {
        align-items: end;
    }

    .composition-workspace #roster-pane .composition-mobile-note-form {
        align-items: start;
    }

    .composition-workspace #roster-pane .composition-mobile-note-save-btn {
        margin-block: 0 14px;
    }

    /* Keep the 44px hit area below the compact save button. */
    .composition-workspace #roster-pane .composition-mobile-note-save-btn::after {
        content: "";
        position: absolute;
        inset: 0 0 -14px;
    }
}

.composition-mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.composition-mobile-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: start;
}

.composition-mobile-main {
    min-width: 0;
}

.composition-mobile-player-name {
    overflow-wrap: anywhere;
}

.composition-mobile-player-meta {
    margin-top: 0.05rem;
}

.composition-mobile-open-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.4rem;
    flex: 0 0 auto;
}

.composition-mobile-open-link:hover,
.composition-mobile-open-link:focus-visible {
    color: #334155;
    background-color: rgba(13, 110, 253, 0.08);
    text-decoration: none;
}

.composition-mobile-open-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.28);
    outline-offset: 1px;
}

.composition-mobile-status-row {
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.composition-mobile-status-row .badge {
    max-width: 100%;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.composition-mobile-note-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
}

.composition-mobile-note-form .form-control,
.composition-mobile-note-form .btn {
    min-height: 44px;
}

.composition-mobile-note-form .btn {
    justify-self: stretch;
}

.composition-mobile-note-save-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.composition-selection-action-btn {
    justify-content: center;
    text-align: center;
}

.admin-nav-card {
    color: inherit;
    transition: box-shadow var(--ds-motion-fast) var(--ds-ease-standard),
        transform var(--ds-motion-fast) var(--ds-ease-standard),
        border-color var(--ds-motion-fast) var(--ds-ease-standard);
}

.admin-nav-card-body {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-nav-card-main {
    min-width: 0;
}

.admin-nav-card-chevron {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9999px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(100, 116, 139, 0.08);
}

.admin-nav-card:hover,
.admin-nav-card:focus-visible {
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.11) !important;
    border-color: rgba(96, 124, 160, 0.32) !important;
    transform: translateY(-1px);
}

.material-admin-tabs {
    border-bottom-color: var(--ds-color-border-default);
}

.material-compact-head {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.material-compact-head .team-back-icon-link {
    width: 44px;
    padding: 0;
}

.material-history-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem 0.75rem;
    padding: 0.25rem 0;
}

.material-history-row > .small {
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.material-history-delete {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.material-history-delete > summary {
    list-style: none;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.material-history-delete > summary::-webkit-details-marker {
    display: none;
}

.material-history-delete-form {
    max-width: 18rem;
    padding: 0.25rem 0;
}

.material-admin-tabs .nav-link {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.55rem 0.35rem;
    color: var(--ds-color-text-secondary);
    text-align: center;
    white-space: nowrap;
}

.material-admin-tabs .nav-link.active {
    color: var(--ds-color-brand-700);
    font-weight: var(--ds-font-weight-semibold);
}

.material-admin-card {
    overflow: hidden;
}

.material-admin-card .card-body {
    min-width: 0;
}

.material-admin-list {
    border-top: 1px solid var(--ds-color-divider);
}

.material-admin-row,
.material-admin-actions,
.material-section-heading,
.material-item-row,
.material-return-form,
.kit-component-row,
.team-roster-actions,
.team-jersey-game-row,
.team-jersey-player,
.team-jersey-side,
.team-jersey-options {
    display: flex;
    align-items: center;
}

.material-admin-row {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--ds-color-divider);
}

.material-admin-name {
    flex: 1 1 10rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.material-admin-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.15rem;
}

.material-admin-actions .btn {
    white-space: nowrap;
}

.material-admin-actions form {
    margin: 0;
}

.material-admin-actions .btn {
    min-height: 40px;
    padding-inline: 0.5rem;
}

.material-admin-filters .btn {
    min-height: 36px;
    padding: 0.35rem 0.7rem;
}

.catalog-name-form {
    max-width: 34rem;
}

.catalog-name-form form > div {
    margin-bottom: 0.45rem;
}

.catalog-name-card .card-body {
    padding: 0.75rem;
}

.catalog-name-form .form-control,
.catalog-name-form .form-select {
    min-height: 40px;
    font-size: 0.9rem;
}

.catalog-name-form .form-control-color {
    width: 3rem;
    min-height: 2.5rem;
}

.kit-components-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kit-add-component {
    min-width: 0;
    max-width: 100%;
}

.kit-add-component[open] {
    flex: 1 0 100%;
    flex-basis: 100%;
    width: 100%;
}

.kit-add-component > summary {
    display: flex;
    width: fit-content;
    margin-left: auto;
    min-height: 40px;
    align-items: center;
    white-space: normal;
}

.kit-add-component-form {
    width: 100%;
    max-width: 34rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    background: var(--ds-color-surface);
}

.kit-add-component-form .form-control,
.kit-add-component-form .form-select {
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    font-size: 0.9rem;
}

.kit-add-component-form .form-group,
.kit-add-component-form form > div {
    margin-bottom: 0.4rem;
}

.kit-add-component-form textarea.form-control {
    height: 3.75rem;
    min-height: 3.75rem;
    resize: vertical;
}

.kit-component-row {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.25rem 0;
}

.kit-component-row > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kit-component-row form {
    flex: 0 0 auto;
}

.kit-remove-component {
    flex: 0 0 auto;
    text-align: right;
}

.kit-remove-component[open] {
    flex: 1 0 100%;
}

.kit-remove-component > summary {
    list-style: none;
    cursor: pointer;
}

.kit-remove-component > summary::-webkit-details-marker {
    display: none;
}

.kit-remove-component[open] form {
    margin-top: 0.25rem;
    padding: 0.4rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    background: var(--ds-color-surface);
    box-shadow: var(--ds-shadow-sm);
}

.material-section-heading {
    position: relative;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.material-section-heading:has(.material-add[open]) {
    flex-wrap: wrap;
}

.material-add {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}

.material-add > summary,
.material-return > summary,
.material-batch-return > summary {
    list-style: none;
    cursor: pointer;
}

.material-add > summary::-webkit-details-marker,
.material-return > summary::-webkit-details-marker,
.material-batch-return > summary::-webkit-details-marker {
    display: none;
}

.material-add > summary,
.kit-add-component > summary,
.kit-remove-component > summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.material-add > summary,
.kit-add-component > summary {
    justify-content: center;
}

.material-add[open] {
    position: static;
    flex: 1 0 100%;
    width: 100%;
}

.material-section-heading:has(.material-add[open]) > h2 {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-right: 6rem;
}

.material-add[open] > summary {
    position: absolute;
    top: 0;
    right: 0;
}

.material-add[open] > .jersey-add-panel {
    width: 100%;
    max-width: 42rem;
    min-width: 0;
    padding: 0.5rem 0 0;
}

.jersey-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.65rem;
    width: 100%;
    min-width: 0;
}

.jersey-add-form > * {
    min-width: 0;
}

.jersey-add-game,
.jersey-add-side {
    grid-column: 1 / -1;
}

.jersey-add-game .form-select,
.jersey-add-date .form-control {
    width: 100%;
}

.jersey-add-selected-game {
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.jersey-preview-swatch {
    display: inline-block;
    flex: 0 0 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
    border: 1px solid #767676;
    border-radius: 0.15rem;
    background: #f8f9fa;
}

.jersey-add-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    min-width: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0.2rem 0;
    border: 0;
    border-bottom: 1px solid var(--ds-color-divider);
}

.jersey-add-side legend,
.jersey-origin-field legend {
    float: none;
    width: auto;
    margin-bottom: 0.3rem;
}

.jersey-add-side > .form-check {
    flex: 0 0 6rem;
    margin-bottom: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.jersey-add-side > .form-check .form-check-input {
    margin-top: 0;
}

.jersey-add-side .form-check-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.jersey-side-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 10rem;
}

.jersey-number-field {
    flex: 1 1 3.25rem;
    min-width: 3.25rem;
    max-width: 8rem;
}

.jersey-origin-field {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.jersey-origin-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.jersey-origin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: 0;
    background: var(--ds-color-surface);
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-100);
    font-weight: var(--ds-font-weight-medium);
    cursor: pointer;
}

.jersey-origin-options input:checked + .jersey-origin-badge {
    border-color: var(--ds-color-brand-600);
    background: color-mix(in srgb, var(--ds-color-brand-600) 10%, var(--ds-color-surface));
    color: var(--ds-color-brand-700);
    font-weight: var(--ds-font-weight-semibold);
}

.jersey-origin-badge:first-of-type {
    border-radius: var(--ds-radius-pill) 0 0 var(--ds-radius-pill);
}

.jersey-origin-badge:last-of-type {
    border-radius: 0 var(--ds-radius-pill) var(--ds-radius-pill) 0;
}

.jersey-origin-options input:focus-visible + .jersey-origin-badge {
    outline: 2px solid var(--ds-color-brand-600);
    outline-offset: 2px;
}

.jersey-add-submit {
    display: flex;
    align-items: flex-end;
}

.jersey-add-submit .btn {
    min-height: 36px;
}

.jersey-add-form .form-control,
.jersey-add-form .form-select {
    min-height: 40px;
}

.material-add form .form-control,
.material-add form .form-select {
    min-height: 40px;
}

.material-active-list {
    border-top: 1px solid var(--ds-color-divider);
}

.material-jersey-group + .material-jersey-group {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ds-color-divider);
}

.material-jersey-game-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: var(--ds-font-weight-medium);
}

.jersey-color-swatch {
    display: inline-block;
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid #767676;
    border-radius: 0.2rem;
    background: var(--jersey-color);
}

.jersey-color-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid #767676;
    border-radius: var(--ds-radius-md);
    background: var(--jersey-color, #f8f9fa);
    color: var(--jersey-text, #212529);
    font: inherit;
    font-size: 0.875rem;
}

button.jersey-color-badge {
    cursor: pointer;
    min-height: 44px;
}

.jersey-color-badge.is-selected {
    outline: 2px solid #212529;
    outline-offset: 2px;
    font-weight: var(--ds-font-weight-semibold);
}

.team-jersey-options:has(.jersey-color-badge) {
    gap: 0.6rem;
    padding: 0.2rem;
}

button.jersey-color-badge:focus-visible {
    box-shadow: 0 0 0 5px #fff, 0 0 0 7px #212529;
    outline: 2px solid #212529;
    outline-offset: 2px;
}

.jersey-badge-loaned {
    font-size: 0.75rem;
}

.jersey-admin-colors {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.jersey-admin-color {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.5rem;
    min-width: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.jersey-admin-color > .fw-semibold {
    flex: 0 0 4.5rem;
}

.jersey-admin-color input[type="color"] {
    width: 44px;
    height: 44px;
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
    cursor: pointer;
}

.jersey-admin-color .btn {
    min-height: 44px;
}

.material-jersey-group .material-item-row {
    min-height: 40px;
    padding: 0.1rem 0;
    border-bottom: 0;
}

.material-jersey-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    align-items: start;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
}

.material-jersey-actions .material-return {
    grid-column: 1;
    width: auto;
}

.material-jersey-edit {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    color: var(--bs-secondary-color);
    font-size: 1.15rem;
    text-decoration: none;
}

.material-jersey-edit:hover,
.material-jersey-edit:focus-visible {
    border-color: var(--ds-color-brand-600);
    color: var(--ds-color-brand-700);
}

.material-jersey-correction-form,
.material-jersey-correction-alert {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 42rem;
    min-width: 0;
}

.material-jersey-correction-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    background: var(--ds-color-surface);
}

.material-jersey-correction-form > * {
    min-width: 0;
}

.material-jersey-correction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.material-jersey-correction-actions .btn {
    min-height: 40px;
}

.material-jersey-correction-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    padding: 0.5rem 0.75rem;
}

.material-jersey-group .material-return > summary {
    padding-block: 0.25rem;
}

.material-jersey-group .material-item-description {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.material-item-row {
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--ds-color-divider);
}

.material-item-description {
    min-width: 0;
    overflow-wrap: anywhere;
}

.material-return {
    width: 100%;
    min-width: 0;
}

.material-row-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
    text-align: left;
}

.material-return-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.5rem;
    color: var(--bs-link-color);
    font-size: 0.875rem;
}

.material-return-form {
    display: grid;
    grid-template-columns: auto minmax(8.5rem, 12rem) auto;
    align-items: center;
    justify-content: start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    margin-block: 0.2rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    background: color-mix(in srgb, var(--ds-color-surface) 94%, var(--ds-color-brand-50));
}

.material-return-date-label {
    margin: 0;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-100);
    white-space: nowrap;
}

.material-return-form .form-control {
    width: 100%;
    min-height: 40px;
    max-width: 100%;
    min-width: 0;
    padding-block: 0.3rem;
    font-size: 0.9rem;
}

.material-return-form .btn {
    min-height: 40px;
}

.material-jersey-return-form {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-block: 0.15rem;
    padding: 0.35rem;
}

.material-jersey-end-impact {
    display: grid;
    gap: 0.1rem;
    width: 100%;
    margin-bottom: 0.3rem;
}

.material-jersey-end-reference {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    min-width: 0;
    padding-block: 0.1rem;
}

.material-jersey-end-reference .form-select {
    width: auto;
    min-width: 9rem;
    max-width: 100%;
}

.material-return-controls {
    display: grid;
    grid-template-columns: auto minmax(8.5rem, 12rem) auto;
    align-items: center;
    justify-content: start;
    gap: 0.35rem;
}

.material-batch-return {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    text-align: right;
}

.team-roster-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.team-roster-print-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
}

.team-roster-print-actions {
    align-self: flex-start;
    flex-shrink: 0;
    font-size: var(--ds-font-size-200);
}

.team-roster-print-actions a {
    min-height: 40px;
}

@media (max-width: 575.98px) {
    .material-jersey-correction-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .material-return-controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .material-return-date-label {
        grid-column: 1 / -1;
    }

    .material-return-controls .form-control {
        grid-column: 1;
    }

    .material-return-controls .btn {
        grid-column: 2;
        grid-row: 2;
    }
}

.team-roster-print-actions a[aria-label] {
    min-width: 28px;
    justify-content: center;
}

.team-jersey-manage-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-200);
    text-decoration: none;
    min-height: 40px;
    white-space: nowrap;
}

.team-mobile-player-list .player-mobile-card-name {
    flex: 1 1 auto;
    min-width: 0;
}

.team-player-jersey-numbers {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.team-jersey-game-row {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.team-jersey-game-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.team-jersey-game-heading > span {
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.team-jersey-game-editor {
    flex: 0 0 auto;
}

.team-jersey-game-editor > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
}

.team-jersey-game-editor > summary::-webkit-details-marker {
    display: none;
}

.team-jersey-game-editor[open] {
    flex: 1 0 100%;
}

.team-jersey-game-row .btn,
.team-jersey-game-row .form-select {
    min-height: 44px;
}

.team-jersey-stale-choice summary {
    min-height: 44px;
    align-content: center;
    cursor: pointer;
}

.team-jersey-game-row form .form-select,
.team-jersey-game-row form .btn {
    min-height: 40px;
}

.loan-inventory-filters {
    display: grid;
    gap: 0.4rem;
}

.loan-inventory-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--ds-color-text-secondary);
    font-size: 0.75rem;
}

.loan-inventory-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.5rem;
}

.loan-inventory-reset,
.loan-inventory-secondary > summary,
.loan-inventory-teams summary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 32px;
    cursor: pointer;
}

.loan-inventory-secondary > summary {
    font-size: 0.8rem;
    color: var(--ds-color-text-secondary);
    list-style: none;
}

.loan-inventory-secondary > summary::-webkit-details-marker {
    display: none;
}

.loan-inventory-filter-count {
    padding: 0 0.35rem;
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-bg-subtle);
    color: var(--ds-color-brand-700);
    font-weight: var(--ds-font-weight-semibold);
}

.loan-inventory-beneficiary {
    font-weight: var(--ds-font-weight-medium);
}

.loan-inventory-teams {
    font-size: 0.75rem !important;
}

.loan-inventory-teams {
    display: inline-block;
    max-width: 100%;
}

.loan-inventory-teams summary {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    cursor: pointer;
    list-style: none;
}

.loan-inventory-teams summary::-webkit-details-marker,
.loan-inventory-kit summary::-webkit-details-marker {
    display: none;
}

.loan-inventory-teams summary::after {
    content: "›";
    flex: 0 0 auto;
    text-decoration: none;
}

.loan-inventory-teams[open] summary::after {
    transform: rotate(90deg);
}

.loan-inventory-filters .form-control,
.loan-inventory-filters .form-select,
.loan-inventory-filters .btn {
    min-height: 36px;
    padding-block: 0.25rem;
}

.loan-inventory-categories {
    display: grid;
    flex: 1 1 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    margin: 0;
}

.loan-inventory-categories .jersey-origin-badge {
    min-height: 32px;
    padding-inline: 0.25rem;
    text-align: center;
    line-height: 1.15;
}

.loan-inventory-jersey-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.loan-inventory-jersey-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.loan-inventory-jersey-meta .jersey-preview-swatch {
    flex-basis: 0.7rem;
    width: 0.7rem;
    height: 0.7rem;
}

.loan-inventory-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.loan-inventory-selects .form-select,
.loan-inventory-filters .form-control {
    min-width: 0;
}

.loan-inventory-entry {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--ds-color-divider);
    overflow-wrap: anywhere;
}

.loan-inventory-entry:last-child {
    border-bottom: 0;
}

.loan-inventory-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.loan-inventory-heading > :first-child {
    min-width: 0;
}

.loan-inventory-heading summary {
    cursor: pointer;
    min-height: 28px;
}

.loan-inventory-kit summary {
    overflow-wrap: anywhere;
}

.loan-inventory-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.loan-inventory-jersey-game {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    overflow-wrap: anywhere;
}

.loan-inventory-jersey-game .jersey-preview-swatch {
    flex-basis: 0.65rem;
    width: 0.65rem;
    height: 0.65rem;
}

.loan-inventory-view {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    flex-shrink: 0;
    padding-inline: 0.2rem;
    text-decoration: none;
    opacity: 0.75;
}

.loan-inventory-view:hover,
.loan-inventory-view:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.loan-inventory-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.3rem;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.loan-inventory-group-team {
    margin-top: 0.1rem;
}

.loan-inventory-group-lines {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.15rem;
}

.loan-inventory-group-line,
.loan-inventory-group-jerseys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.loan-inventory-group-label {
    flex: 0 0 auto;
    color: var(--ds-color-text-secondary);
    font-weight: var(--ds-font-weight-medium);
}

.loan-inventory-group-values {
    min-width: 0;
    overflow-wrap: anywhere;
}

.loan-inventory-group-line .badge {
    white-space: normal;
    text-align: left;
}

.loan-inventory-jersey-badge {
    gap: 0;
    padding: 0.05rem 0.35rem;
    border-radius: var(--ds-radius-pill);
    font-size: 0.75rem;
    font-weight: var(--ds-font-weight-medium);
    line-height: 1.4;
}

.loan-inventory-group-jerseys {
    flex: 1 1 0;
}

.loan-inventory-group-jerseys > .jersey-color-badge {
    min-width: 0;
    overflow-wrap: anywhere;
}

.loan-inventory-group-values {
    min-width: 0;
}

.loan-inventory-components {
    padding-left: 1.2rem;
    margin-block: 0.2rem;
}

@media (min-width: 768px) {
    .loan-inventory-filters {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
    }

    .loan-inventory-secondary {
        grid-column: 1 / -1;
    }
}

.team-jersey-list {
    border-top: 1px solid var(--ds-color-divider);
}

.team-jersey-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--ds-color-divider);
}

.team-jersey-player {
    justify-content: space-between;
    gap: 0.2rem;
    min-width: 0;
}

.team-jersey-player > span {
    overflow-wrap: anywhere;
}

.team-jersey-player > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex: 0 0 32px;
    min-height: 32px;
    border-radius: var(--ds-radius-pill);
    color: var(--ds-color-text-secondary);
    text-decoration: none;
}

.team-jersey-player > a:hover,
.team-jersey-player > a:focus-visible {
    background: var(--ds-color-bg-subtle);
    color: var(--ds-color-brand-700);
}

.team-jersey-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.5rem;
}

.team-jersey-provisional {
    color: var(--ds-color-text-muted);
    font-size: var(--ds-font-size-100);
}

.team-jersey-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
}

.team-jersey-side-label {
    color: var(--ds-color-text-secondary);
    font-size: 0.75rem;
}

.team-jersey-picker {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.team-jersey-picker > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-height: 36px;
    max-width: 100%;
    list-style: none;
    cursor: pointer;
}

.team-jersey-picker > summary::-webkit-details-marker {
    display: none;
}

.team-jersey-picker-arrow {
    flex: 0 0 auto;
    font-size: 0.7rem;
}

.team-jersey-picker > summary:focus-visible {
    outline: 2px solid var(--ds-color-brand-600);
    outline-offset: 2px;
}

.team-jersey-picker .team-jersey-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    margin-top: 0;
    padding: 0.25rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-md);
    background: var(--ds-color-bg-subtle);
}

.team-jersey-unresolved {
    background: #fff0dc;
    border-color: #d68a1f;
    color: #8a4000;
}

.team-jersey-empty {
    background: var(--ds-color-bg-subtle);
    color: var(--ds-color-text-secondary);
}

.team-jersey-side .jersey-color-badge {
    min-height: 0;
    min-width: 0;
    padding: 0.15rem 0.35rem;
    gap: 0.2rem;
    font-size: 0.75rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.team-jersey-side > .jersey-color-badge {
    margin-block: 0.45rem;
}

.team-jersey-side .jersey-color-badge.is-selected {
    outline-offset: 0;
}

.team-jersey-side .team-jersey-choice,
.team-jersey-side .team-jersey-clear {
    min-height: 32px;
}

.team-jersey-side .team-jersey-clear {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
}

.team-jersey-side .team-jersey-stale-choice summary {
    min-height: 32px;
}

.team-jersey-picker .jersey-color-badge {
    min-width: 0;
    overflow-wrap: anywhere;
}

.team-jersey-side > .badge {
    flex: 0 0 auto;
}

.team-jersey-options {
    flex-wrap: wrap;
    gap: 0.2rem;
    min-width: 0;
}

.team-jersey-options form {
    margin: 0;
}

.team-jersey-loaned {
    margin-left: 0.2rem;
    color: var(--ds-color-text-muted);
    font-size: var(--ds-font-size-100);
    font-weight: var(--ds-font-weight-medium);
}

.team-jersey-clear {
    min-height: 44px;
    padding-inline: 0.5rem;
    text-decoration: none;
}

.team-jersey-choice {
    min-height: 44px;
    padding: 0.25rem 0.5rem;
}

.team-jersey-game-row {
    justify-content: flex-start;
}

.team-jersey-game-row .form-select {
    flex: 1 1 10rem;
    width: auto;
    max-width: 22rem;
    min-width: 0;
}

.team-jersey-game-row button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.4rem;
}

.loan-mode-selector {
    display: inline-flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0.2rem;
    border: 1px solid var(--ds-color-border-default);
    border-radius: var(--ds-radius-pill);
    background: var(--ds-color-bg-subtle);
}

.loan-mode-selector label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.25rem 0.7rem;
    border-radius: var(--ds-radius-pill);
    cursor: pointer;
}

.loan-mode-selector label:has(input:checked) {
    background: var(--ds-color-surface);
    color: var(--ds-color-brand-700);
    font-weight: var(--ds-font-weight-semibold);
    box-shadow: var(--ds-shadow-sm);
}

.loan-add-form:has(input[name="loan_mode"][value="kit"]:checked) .loan-kit-fields {
    display: grid;
}

.loan-add-form:has(input[name="loan_mode"][value="kit"]:checked) .loan-equipment-fields {
    display: none;
}

.loan-kit-fields {
    display: none;
}

.loan-add-form,
.loan-equipment-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    min-width: 0;
}

.loan-add-form {
    max-width: 42rem;
}

.loan-add-form > *,
.loan-equipment-fields > *,
.loan-kit-fields > * {
    min-width: 0;
}

.loan-kit-composition summary {
    min-height: 44px;
    align-content: center;
    cursor: pointer;
}

.material-kit-group {
    display: block;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--ds-color-divider);
}

.material-kit-pieces {
    flex: 1 1 auto;
    min-width: 0;
}

.material-kit-pieces > summary {
    padding: 0.25rem 0;
    min-height: 36px;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.material-kit-pieces > summary strong {
    font-weight: var(--ds-font-weight-semibold);
}

.material-kit-pieces > summary .small {
    white-space: nowrap;
}

.material-kit-group .material-batch-return > summary {
    min-height: 44px;
    padding: 0.25rem;
}

.material-kit-items {
    color: var(--ds-color-text-secondary);
    font-size: var(--ds-font-size-200);
}

.material-kit-items .material-item-row:last-child {
    border-bottom: 0;
}

.material-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: start;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 40px;
    padding-block: 0.35rem;
}

.material-summary-label {
    min-width: 0;
    font-weight: var(--ds-font-weight-medium);
}

.material-summary-value {
    min-width: 0;
    color: var(--ds-color-text-secondary);
    text-align: right;
    overflow-wrap: anywhere;
}

.material-abandoned-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--ds-color-divider);
}

.material-abandoned-row > a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.material-abandoned-row > form {
    flex-shrink: 0;
}

.material-summary-row > span {
    min-width: 0;
}

.material-summary-row > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.5rem;
    text-decoration: none;
}

#jerseys-title,
#loans-title {
    scroll-margin-top: 7rem;
}

.loan-kit-fields[hidden],
.loan-equipment-fields[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .team-jersey-numbers {
        gap: 0.3rem 0.65rem;
    }
}

.admin-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.admin-mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.admin-mobile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
}

.admin-mobile-card-actions form {
    margin: 0;
}

.admin-mobile-card {
    margin: 0;
}

.admin-archive-btn {
    color: #9a3412;
    border-color: #ea580c;
}

.admin-archive-btn:hover,
.admin-archive-btn:focus-visible,
.admin-archive-btn:active {
    color: #ffffff;
    border-color: #c2410c;
    background-color: #c2410c;
}

.onboarding-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.onboarding-mobile-card {
    overflow: hidden;
}

.onboarding-mobile-card-body {
    padding: 0.4rem 0.48rem;
}

.onboarding-mobile-card-bottom {
    margin-top: 0;
}

.registration-dossier-card .player-mobile-card-link {
    display: grid;
    gap: 0.3rem;
}

.registration-dossier-card .registration-dossier-date {
    margin: 0;
    color: #64748b;
}

.registration-dossier-team {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.registration-dossier-team > span {
    font-size: 0.72rem;
}

.registration-dossier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.registration-dossier-status {
    min-width: 0;
    white-space: normal;
    text-align: left;
}

.registration-dossier-footer .onboarding-mobile-actions-row {
    flex-shrink: 0;
}

.onboarding-mobile-actions-row {
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
    gap: 0.25rem !important;
}

.onboarding-mobile-card .player-mobile-team-badge {
    background-color: #ffffff;
    border-color: #cad6e4 !important;
    color: #334155;
}

.onboarding-mobile-card .player-mobile-dossier-badge {
    margin-left: auto;
}

.onboarding-mobile-card .ds-action-btn {
    min-height: 44px;
    padding-left: 0.58rem;
    padding-right: 0.58rem;
}

.onboarding-mobile-card .person-icon-btn {
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    height: 44px;
}

.onboarding-mobile-abandon-btn {
    border-color: #dc5f66;
    color: #b4232d;
}

.onboarding-mobile-abandon-btn .person-ui-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.onboarding-mobile-abandon-btn:hover,
.onboarding-mobile-abandon-btn:focus-visible,
.onboarding-mobile-abandon-btn:active {
    border-color: #b4232d;
    color: #ffffff;
    background-color: #b4232d;
}

.onboarding-mobile-card .player-mobile-card-name {
    line-height: 1.2;
}

.onboarding-mobile-card .player-mobile-card-line {
    margin-bottom: 0.08rem;
}

.onboarding-mobile-card .player-mobile-card-line:last-child {
    margin-bottom: 0;
}

.onboarding-mobile-card .player-mobile-card-birthdate {
    font-size: 0.8rem;
}

.onboarding-mobile-card .badge {
    line-height: 1.1;
}

.registration-status-badge {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.15;
    padding: 0.3rem 0.52rem;
}

.registration-status-badge.registration-status-badge-review {
    background-color: #b45309;
}

.registration-status-badge.registration-status-badge-progress {
    background-color: #0f4c81;
}

.registration-status-badge.registration-status-badge-expired {
    background-color: #b42318;
}

.onboarding-status-badge {
    max-width: 100%;
    white-space: normal;
}

.onboarding-mode-switch > .ds-action-btn { min-height: 40px; padding: .35rem .5rem; font-size: .875rem; line-height: 1.2; }
.onboarding-mode-notice { border-color: #fdba74; background-color: #fff7ed; color: #9a3412; font-size: .85rem; line-height: 1.4; }

.ds-person-kind-badge {
    background-color: #eef2f7;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.15;
    padding: 0.24rem 0.48rem;
}

main.container:has(.composition-page) > .alert {
    margin-bottom: 0.5rem;
}

.player-mobile-card-link {
    display: block;
    min-height: 44px;
    padding: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 0.45rem;
}

.player-mobile-card-link:hover,
.player-mobile-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
    background-color: rgba(13, 110, 253, 0.07);
}

.player-mobile-card-link-disabled {
    cursor: default;
}

.player-mobile-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.person-mobile-card-item,
.player-mobile-card-item {
    margin-bottom: 0.32rem;
}

.player-mobile-card-item:last-child {
    margin-bottom: 0;
}

.person-mobile-card-item:last-child {
    margin-bottom: 0;
}

.player-mobile-card-name {
    overflow-wrap: anywhere;
    line-height: 1.15;
    font-weight: 700;
}

.player-mobile-card-chevron {
    color: #6c757d;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.player-mobile-card-chevron-icon {
    width: 14px;
    height: 14px;
    display: block;
    color: currentColor;
}

.player-mobile-card-line {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.38rem;
    margin-bottom: 0.2rem;
    line-height: 1.12;
}

.player-mobile-card-line-teams {
    align-items: flex-start;
    margin-bottom: 0;
}

.player-mobile-card-birthdate {
    min-width: 0;
    font-size: 0.84rem;
    color: #495057;
}

.player-mobile-dossier-badge {
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.player-mobile-status-badge {
    flex: 0 0 auto;
}

.player-mobile-empty-teams {
    font-size: 0.84rem;
}

.player-mobile-team-badges {
    min-width: 0;
    flex: 1 1 auto;
}

.player-mobile-team-badge {
    max-width: 100%;
    font-size: 0.72rem;
    padding: 0.2rem 0.42rem;
    overflow-wrap: anywhere;
    line-height: 1.1;
}

.player-show-card-body {
    padding: 0.85rem 0.95rem;
}

.player-show-field-value {
    line-height: 1.2;
}

.player-show-text-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.player-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.player-ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    color: currentColor;
    fill: currentColor;
}

.player-mobile-section-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem 0.56rem;
    margin-bottom: 0.38rem;
}

.player-mobile-section-card:last-child {
    margin-bottom: 0;
}

.player-mobile-section-actions {
    flex: 0 0 auto;
    gap: 0.5rem !important;
}

.player-mobile-section-actions.gap-1 {
    gap: 0.5rem !important;
}

.player-license-copy {
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.player-license-actions,
.player-license-actions form {
    flex: 0 0 auto;
    margin: 0;
}

.player-min-w-0 {
    min-width: 0;
}

.person-mobile-list {
    background-color: transparent;
}

.person-mobile-card {
    border: 0;
}

.person-mobile-card-item {
    margin-bottom: 0.32rem;
}

.person-mobile-card-body {
    padding: 0.5rem 0.56rem;
    position: relative;
}

.person-mobile-card .person-mobile-card-body {
    padding: 0.5rem 0.56rem;
}

.person-page-header {
    row-gap: 0.35rem;
}

.person-page-header-index,
.person-page-header-show,
.person-page-header-form {
    margin-bottom: 0.6rem;
}

.person-filters-card {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: var(--ds-radius-lg);
}

.player-index-filters-header {
    padding-block: .375rem;
}

.person-section-card-body {
    padding: 0.7rem 0.8rem;
}

.person-admin-operations .accordion-button {
    font-weight: 600;
    padding: 0.7rem 0.95rem;
}

.person-admin-operations .accordion-body {
    padding: 0.9rem;
}

.wa-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 1.6rem;
    color: #25d366;
    text-decoration: none;
    line-height: 1;
}

.icon-wa {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

.wa-link-icon:hover,
.wa-link-icon:focus-visible {
    color: #128c4a;
}

.person-info-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
    color: #6c757d;
    padding: 0;
    text-decoration: none;
}

.person-info-trigger:hover {
    color: #5c636a;
}

.person-info-trigger:focus-visible {
    outline: 2px solid rgba(108, 117, 125, 0.25);
    outline-offset: 1px;
    border-radius: 0.25rem;
}

.person-open-link {
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    text-decoration: none;
    white-space: nowrap;
}

.person-open-link:hover {
    color: #0b5ed7;
}

.person-open-link:focus,
.person-open-link:focus-visible {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.28);
    background-color: rgba(13, 110, 253, 0.06);
    border-radius: 0.25rem;
}

.person-open-link .person-ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.person-mobile-card .person-open-link {
    color: #0d6efd;
}

.person-index-mobile-row .h3,
.person-show-mobile-meta .h3,
.person-form-mobile-head .h3 {
    line-height: 1.2;
}

.person-mobile-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.person-mobile-row-top,
.person-mobile-row-middle {
    margin-bottom: 0.32rem;
}

.person-mobile-functions-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.person-mobile-row-top .h6 {
    min-width: 0;
    flex: 1 1 auto;
}

.person-mobile-row-bottom {
    line-height: 1.2;
}

.player-mobile-card-line-bottom {
    margin-top: 0.15rem;
}

.player-mobile-contact-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 0.5rem;
}

.player-mobile-contact-item {
    min-width: 0;
}

.player-mobile-contact-item > span {
    min-width: 0;
}

.player-responsible-contact-zone {
    position: relative;
    z-index: 2;
}

.player-responsible-contact-controls {
    max-width: 100%;
}

.player-responsible-contact-inline {
    position: relative;
    z-index: 2;
    display: inline-flex;
    max-width: min(100%, 10.5rem);
    margin-top: 0;
    margin-left: 0;
    vertical-align: middle;
}

.player-parent-choice-select {
    min-height: 1.7rem !important;
    height: 1.7rem;
    padding-top: 0.04rem;
    padding-bottom: 0.04rem;
    padding-left: 0.6rem;
    font-size: 0.74rem;
    line-height: 1.1;
    border-radius: 999px;
    border-color: color-mix(in srgb, var(--ds-color-border-strong) 82%, white);
    background-color: color-mix(in srgb, var(--ds-color-bg-subtle) 76%, var(--ds-color-surface));
    color: var(--ds-color-text-secondary);
}

.player-parent-choice-select:focus {
    border-color: #8fb3e8;
    box-shadow: 0 0 0 0.12rem rgba(13, 110, 253, 0.12);
}

.contact-parent-link {
    color: var(--ds-color-brand-600);
    text-decoration: underline;
    text-underline-offset: 0.1em;
    font-style: italic;
    white-space: nowrap;
}

.contact-parent-link:hover,
.contact-parent-link:focus-visible {
    color: var(--ds-color-brand-700);
}

.player-responsible-contact-current {
    position: relative;
    z-index: 2;
}

.player-parent-contact-row {
    min-width: 0;
}

.player-parent-phone-group {
    white-space: nowrap;
}

.player-parent-tag-wrap {
    white-space: nowrap;
}

.player-parent-email-link {
    min-width: 0;
}

.player-mobile-contact-item .player-responsible-contact-inline {
    margin-top: 0.14rem;
    max-width: min(100%, 10rem);
}

.player-parent-contact-mobile {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.player-parent-contact-mobile .player-parent-tag-wrap {
    margin-top: 0.02rem;
}

@media (max-width: 767.98px) {
    .player-mobile-parent-selected .player-parent-email-link {
        display: inline;
        max-width: 100%;
    }

    .player-mobile-contact-item .player-responsible-contact-inline {
        display: block;
        width: 100%;
        max-width: 10.5rem;
        margin-top: 0.1rem;
    }
}

.player-responsible-contact-zone .form-select {
    min-height: 32px;
    font-size: 0.8rem;
}

.contact-link--responsible {
    font-style: italic;
}

.person-mobile-card-item-disabled {
    opacity: 0.92;
}

.person-mobile-card-chevron {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1;
    flex: 0 0 auto;
}

.person-mobile-card-link-overlay {
    position: absolute;
    inset: 0;
    border-radius: 0.45rem;
    z-index: 1;
    color: inherit;
    text-decoration: none;
}

.person-mobile-card-link-overlay:hover,
.person-mobile-card-link-overlay:focus-visible {
    background-color: rgba(13, 110, 253, 0.05);
    text-decoration: none;
}

.person-mobile-card-link-overlay:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.32);
    outline-offset: 0;
}

.person-mobile-card .contact-link,
.person-mobile-card .wa-link-icon {
    position: relative;
    z-index: 2;
}

.player-responsible-card .contact-link,
.player-responsible-card .wa-link-icon,
.player-responsible-card-actions {
    position: relative;
    z-index: 2;
}

.person-show-title-block {
    min-width: 0;
}

.person-show-mobile-meta {
    min-width: 0;
}

.player-show-mobile-head {
    width: 100%;
}

.player-show-mobile-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.player-show-mobile-head-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0.5rem;
}

.person-show-mobile-meta-text {
    min-width: 0;
    flex: 1 1 auto;
}

.person-show-mobile-meta-text .h3 {
    overflow-wrap: anywhere;
}

.person-edit-mobile-btn {
    flex: 0 0 auto;
}

.person-ui-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

.person-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1;
    padding: 0;
    position: relative;
    overflow: visible;
}

.person-icon-btn .person-ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: auto;
}

.person-icon-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
}

.person-open-link.person-icon-btn .person-ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: auto;
}

.person-info-trigger .person-ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.contact-link {
    color: #212529;
    text-decoration: none;
    text-underline-offset: 0.12em;
    overflow-wrap: anywhere;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: #0d6efd;
    text-decoration: underline;
}

.person-table-name-link {
    color: #212529;
    text-decoration: none;
}

.person-table-name-link:hover,
.person-table-name-link:focus-visible {
    color: #0d6efd;
    text-decoration: underline;
}

.person-section-toggle {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0.5rem;
    background-color: rgba(13, 110, 253, 0.06);
    color: #1f2937;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    text-align: left;
}

.person-section-toggle:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.person-section-toggle:hover,
.person-section-toggle:focus-visible {
    background-color: rgba(13, 110, 253, 0.12);
    color: #1f2937;
}

.person-section-chevron {
    transition: transform 0.16s ease;
}

.person-section-toggle:not(.collapsed) .person-section-chevron {
    transform: rotate(180deg);
}

.back-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.1rem 0.4rem;
    border-radius: 0.45rem;
    color: #495057;
    text-decoration: none;
}

.back-nav-link:hover,
.back-nav-link:focus-visible {
    color: #212529;
    background-color: rgba(13, 110, 253, 0.08);
    text-decoration: none;
}

.record-mobile-head {
    min-height: 44px;
}

.record-mobile-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.record-mobile-title-wrap .h3 {
    overflow-wrap: anywhere;
}

.record-back-icon-link {
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    color: #495057;
    text-decoration: none;
    flex: 0 0 auto;
}

.record-back-icon-link:hover {
    color: #212529;
}

.record-back-icon-link:focus,
.record-back-icon-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.28);
    outline-offset: 1px;
    border-radius: 0.25rem;
}

.record-back-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

.person-back-icon-link {
    appearance: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    color: #495057;
    text-decoration: none;
    flex: 0 0 auto;
}

.person-back-icon-link:hover {
    color: #212529;
}

.person-back-icon-link:focus,
.person-back-icon-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.28);
    outline-offset: 1px;
    border-radius: 0.25rem;
}

.person-form-mobile-row,
.person-show-mobile-meta {
    min-height: 44px;
}

.person-form-mobile-head {
    min-width: 0;
    flex: 1 1 auto;
}

.person-form-mobile-head .h3 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.person-mobile-collapse {
    margin-top: 0.1rem;
}

.person-mobile-list .small.text-secondary {
    line-height: 1.3;
}

.person-info-grid {
    word-break: break-word;
}

@media (min-width: 768px) {
    .btn-md-normal {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 767.98px) {
    main.container {
        overflow-x: hidden;
    }

    main.container:has(.composition-workspace) {
        overflow-x: clip;
        overflow-y: visible;
    }

    .player-filters-form {
        row-gap: 0.3rem;
    }

    .player-filters-form > [class*="col-"] {
        min-width: 0;
    }

    .player-filters-form .form-label {
        margin-bottom: 0.08rem;
        line-height: 1.2;
        font-size: 0.78rem;
    }

    .player-filters-form .form-control,
    .player-filters-form .form-select,
    .player-filters-form .btn {
        min-height: 44px;
        padding-top: 0.33rem;
        padding-bottom: 0.33rem;
        font-size: 0.9rem;
    }

    .player-filters-form .btn {
        width: 100%;
        white-space: normal;
    }

    .composition-player-filters {
        row-gap: 0.35rem;
    }

    .composition-player-filters .form-control,
    .composition-player-filters .form-select,
    .composition-player-filters .btn {
        min-height: 44px;
        font-size: 0.88rem;
    }

    .composition-team-selector-card .form-select {
        min-height: 48px;
    }

    .player-mobile-list {
        margin-top: 0;
    }

    .composition-mobile-content {
        padding: 0.56rem !important;
    }

    .composition-mobile-tabs {
        --bs-nav-tabs-link-active-bg: #ffffff;
    }

    .composition-mobile-tabs .nav-item {
        flex: 1 1 0;
    }

    .composition-mobile-tabs .nav-link {
        width: 100%;
        padding: 0.5rem 0.45rem;
    }

    .composition-mobile-card .badge {
        font-size: 0.7rem;
    }

    .composition-selection-action-btn {
        width: auto;
        max-width: 100%;
        padding-left: 0.72rem;
        padding-right: 0.72rem;
        min-height: 44px;
        white-space: nowrap;
    }

    .admin-nav-card-body {
        min-height: 90px;
        padding: 0.46rem 0.58rem;
    }

    .admin-nav-card-main .h5,
    .admin-nav-card-main .h6 {
        line-height: 1.2;
    }

    .admin-nav-card-main p {
        margin-bottom: 0;
        line-height: 1.24;
        font-size: 0.84rem;
    }

    .admin-mobile-card .admin-mobile-card-body {
        padding: 0.44rem 0.52rem;
    }

    .admin-mobile-card .badge {
        font-size: 0.69rem;
        line-height: 1.1;
    }

    .admin-mobile-card .ds-action-btn {
        min-height: 44px;
    }

    .onboarding-mobile-card .ds-action-btn {
        min-height: 44px;
        font-size: 0.78rem;
    }

    .onboarding-mobile-card .player-mobile-card-line {
        gap: 0.26rem;
    }

    .onboarding-mobile-card .player-mobile-team-badge {
        font-size: 0.66rem;
    }

    .composition-mobile-note-form .btn {
        width: 44px;
    }

    .composition-mobile-card .ds-list-card-body,
    .composition-mobile-card .composition-mobile-card-body {
        padding: 0.4rem 0.46rem;
    }

    main.container:has(.composition-page) > .alert {
        padding: 0.44rem 0.62rem;
        font-size: 0.88rem;
        line-height: 1.28;
    }

    .player-mobile-card-item .badge {
        font-size: 0.68rem;
    }

    .ds-neutral-badge {
        font-size: 0.68rem;
    }

    .ds-meta-badge,
    .ds-person-kind-badge {
        font-size: 0.68rem;
    }

    .player-show-header {
        margin-bottom: 0.7rem !important;
    }

    .player-show-header > .d-none.d-md-inline {
        margin: 0 !important;
    }

    .record-mobile-head {
        margin-top: 0.15rem;
    }

    .player-show-header-actions {
        margin-top: 0.55rem !important;
        row-gap: 0.35rem;
    }

    .player-show-card .h5 {
        margin-bottom: 0.42rem !important;
    }

    .player-show-card-body {
        padding: 0.64rem 0.72rem;
    }

    .player-show-card .text-secondary {
        line-height: 1.15;
        margin-bottom: 0.06rem;
    }

    .player-mobile-section-list {
        margin-top: 0.1rem;
    }

    .player-mobile-section-card {
        padding: 0.46rem 0.5rem;
    }

    .player-mobile-section-card .small {
        line-height: 1.2;
    }

    .team-page-header.team-page-header-show {
        margin-bottom: 0.5rem !important;
    }

    .team-page-header.team-page-header-index {
        margin-bottom: 0.38rem !important;
    }

    .team-page-header .h3 {
        font-size: 1.14rem;
        line-height: 1.22;
    }

    .team-index-headline {
        min-height: 44px;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .team-index-title-meta {
        gap: 0.05rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .team-index-headline .h3 {
        min-width: 0;
        line-height: 1.2;
    }

    .team-index-onboarding-link-mobile {
        min-height: 44px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.26rem 0.66rem;
        border: 1px solid #0d6efd !important;
        background-color: #0d6efd !important;
        color: #ffffff !important;
        border-radius: 0.375rem;
        font-size: 0.82rem;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .team-index-onboarding-link-mobile:hover,
    .team-index-onboarding-link-mobile:focus-visible,
    .team-index-onboarding-link-mobile:active {
        border-color: #0b5ed7 !important;
        background-color: #0b5ed7 !important;
        color: #ffffff !important;
    }

    .team-index-info-copy {
        line-height: 1.28;
    }

    .team-index-onboarding-wrap {
        margin-top: 0 !important;
    }

    .team-archived-seasons .accordion-button {
        min-height: 44px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .team-archived-seasons .accordion-body {
        padding: 0.65rem;
    }

    .team-show-mobile-head {
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .team-show-mobile-head-text .h3 {
        margin-bottom: 0;
    }

    .team-show-mobile-head-text .small {
        line-height: 1.25;
    }

    .team-show-grid {
        --bs-gutter-y: 0.52rem;
    }

    .team-show-grid .team-section-card-body {
        padding: 0.62rem 0.68rem;
    }

    .team-show-grid .h5 {
        margin-bottom: 0.45rem !important;
    }

    .team-mobile-player-date {
        font-size: 0.78rem;
    }

    .team-coach-list .list-group-item {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        line-height: 1.25;
    }

    .person-page-header {
        margin-bottom: 0.55rem !important;
    }

    .person-page-header.person-page-header-index,
    .person-page-header.person-page-header-show,
    .person-page-header.person-page-header-form {
        margin-bottom: 0.36rem;
        gap: 0.25rem !important;
    }

    .person-index-mobile-row,
    .person-show-mobile-meta,
    .person-form-mobile-row {
        min-height: 44px;
    }

    .person-page-header .h3 {
        font-size: 1.18rem;
    }

    .person-page-header-show .h3,
    .person-page-header-form .h3 {
        margin-top: 0 !important;
        margin-bottom: 0.1rem !important;
    }

    .back-nav-link {
        min-height: 44px;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .person-filters-card {
        margin-bottom: 0.6rem;
    }

    .person-filters-card .card-body {
        padding: 0.65rem;
    }

    .person-filters-toggle {
        border-radius: 0.5rem;
    }

    .person-mobile-card-item,
    .player-mobile-card-item {
        margin-bottom: 0.24rem;
    }

    .person-mobile-card .person-mobile-card-body,
    .player-mobile-card .player-mobile-card-body,
    .ds-list-card .ds-list-card-body {
        padding: 0.45rem 0.52rem;
    }

    .person-mobile-card .h6 {
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .player-mobile-card .h6,
    .ds-list-card .ds-list-card-title {
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .person-mobile-row {
        gap: 0.42rem;
    }

    .person-mobile-row-top,
    .person-mobile-row-middle {
        margin-bottom: 0.24rem;
    }

    .person-mobile-card .badge {
        padding: 0.28em 0.45em;
        font-size: 0.72rem;
        line-height: 1.1;
    }

    .person-mobile-card .mb-2 {
        margin-bottom: 0.3rem !important;
    }

    .person-mobile-card .mt-2 {
        margin-top: 0.3rem !important;
    }

    .person-mobile-card .small {
        line-height: 1.22;
    }

    .person-form .form-label {
        margin-bottom: 0.12rem;
        line-height: 1.25;
    }

    .person-form .mb-3,
    .person-form .mb-2 {
        margin-bottom: 0.42rem !important;
    }

    .person-form .row {
        --bs-gutter-y: 0.42rem;
        --bs-gutter-x: 0.7rem;
    }

    .person-form-actions {
        margin-top: 0.65rem !important;
    }

    .person-show-grid {
        --bs-gutter-y: 0.5rem;
    }

    .person-show-grid .person-section-card-body {
        padding: 0.58rem 0.66rem;
    }

    .person-show-grid .h5 {
        margin-bottom: 0.42rem !important;
    }

    .person-show-mobile-meta {
        align-items: flex-start;
    }

    .person-show-mobile-meta-text .h3 {
        font-size: 1.12rem;
    }

    .person-admin-operations .accordion-button {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .person-icon-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .person-page-header-index .person-index-mobile-row > .person-icon-btn,
    .person-show-mobile-meta .person-edit-mobile-btn.person-icon-btn {
        box-sizing: border-box;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .ds-form-shell {
        max-width: 100%;
    }

    .ds-form-grid {
        gap: var(--ds-space-2);
    }

    .ds-form-section {
        padding-top: var(--ds-space-2);
    }

    .ds-form-section-title {
        margin-bottom: var(--ds-space-2);
        font-size: var(--ds-font-size-300);
    }

    .ds-form-actions {
        margin-top: var(--ds-space-3);
    }

    .ds-form-actions .btn,
    .ds-form-actions button,
    .ds-form-actions a.btn {
        min-height: var(--ds-touch-target-min);
    }
}

@media (min-width: 768px) {
    .ds-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-form-field--full,
    .ds-form-grid > .col-12,
    .ds-form-grid > [class*=" col-lg-12"],
    .ds-form-grid > [class^="col-lg-12"],
    .ds-form-grid > [class*=" col-xl-12"],
    .ds-form-grid > [class^="col-xl-12"] {
        grid-column: 1 / -1;
    }
}

.address-suggestions-panel {
    background-color: var(--bs-warning-bg-subtle);
}

.address-suggestions-icon {
    flex: 0 0 20px;
}

.address-suggestion-choice {
    white-space: normal;
}

@media (max-width: 575.98px) {
    .address-suggestion-choice {
        width: 100%;
        min-height: 2.5rem;
    }
}

.app-main-content {
    padding-top: 3rem;
}

@media (max-width: 991.98px) {
    .app-main-content {
        padding-top: 0.75rem;
    }

    main.container.app-main-content:has(> .attendance) {
        padding-top: 0;
    }

    .team-archived-seasons .accordion-body {
        background-color: var(--ds-color-bg-page);
    }
}

@media (max-width: 1199.98px) {
    .person-index-filters-card {
        margin-inline: var(--ds-space-2);
    }

    .person-index-results {
        background-color: transparent;
        border: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 1399.98px) {
    .player-index-filters-card,
    .player-index-empty-card {
        margin-inline: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .mobile-navigation-sheet.offcanvas-bottom {
        transition: transform 180ms ease-in-out;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-navigation-sheet.offcanvas-bottom {
        transition: none;
    }
}

.person-filters-card .person-filter-actions {
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .registration-compact-header-actions > a.btn.page-header-action-btn {
        height: 32px;
        min-height: 32px;
    }

    .player-filters-card .person-filters-toggle {
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .player-filters-card .collapse > .card-body {
        padding-top: 0.25rem;
    }

    .person-filters-card .collapse > .card-body {
        padding-top: 0.375rem;
    }

    .player-filters-form .form-control,
    .player-filters-form .form-select,
    .player-filters-form .btn {
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .person-filters-card .player-filters-form {
        --bs-gutter-y: 0.375rem;
        row-gap: 0;
    }

    .person-filters-card .person-filters-form .ds-action-btn {
        height: 32px;
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .person-filters-card .person-filter-actions {
        gap: 0.375rem;
    }

    .registration-filter-actions > .ds-action-btn {
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .person-form .ds-form-grid .form-control,
    .person-form .ds-form-grid .form-select {
        height: 32px;
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .person-form .ds-form-actions[data-onboarding-mode-target="existingActions"] .ds-action-btn {
        min-height: 36px;
        padding: 0.375rem 0.75rem;
        line-height: 1.2;
    }

    .composition-player-filters .form-control,
    .composition-player-filters .form-select {
        height: 32px;
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .composition-player-filters .btn.composition-compact-button:not(.composition-selection-action-btn) {
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .composition-team-selector-card .form-select {
        height: 32px;
        min-height: 32px;
        padding: 0.25rem 0.5rem;
        line-height: 1.2;
    }

    .composition-player-filters .composition-hide-non-participants {
        margin-block: 0.125rem;
    }
}
