.al-dashboard-tabs { overflow-x: auto; }
.al-dashboard-tabs .dash-tab { min-height: 44px; flex-shrink: 0; }
.am-intro { margin: .35rem 0 0; color: #b9c6dd; font-size: .9rem; line-height: 1.5; }
.am-toolbar, .as-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .4fr); gap: 1rem; align-items: end; margin-bottom: 1rem; }
.am-field, .as-toolbar label { display: flex; flex-direction: column; gap: .4rem; min-width: 0; color: #c5d1e5; font-size: .8rem; font-weight: 700; }
.am-field input, .am-field select, .as-toolbar select {
  width: 100%; min-width: 0; min-height: 44px; padding: .6rem .7rem; border: 1px solid #637391;
  border-radius: 8px; background: #0c1b3a; color: #f4f7ff; font: inherit;
}
.am-field select:disabled { opacity: .55; cursor: not-allowed; }
.am-help { padding: .9rem; border-left: 3px solid #f6c969; border-radius: 6px; background: #1c3153; color: #d5def0; line-height: 1.55; }
.am-summary { margin: 1rem 0 .6rem; color: #b9c6dd; font-size: .8rem; }
.am-card { margin-bottom: 1rem; padding: 1rem; border: 1px solid #3a4e71; border-radius: 12px; background: #112344; }
.am-card-main, .am-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.am-card-main > div:first-child, .am-card-heading > div { min-width: 180px; flex: 1; }
.am-name, .am-email, .am-meta { display: block; overflow-wrap: anywhere; }
.am-name { color: #f4f7ff; font-size: 1rem; }
.am-email, .am-meta { margin-top: .25rem; color: #aebbd3; font-size: .8rem; }
.am-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.am-actions .am-field { min-width: min(260px, 100%); }
.am-button { min-height: 44px; padding: .55rem .8rem; border: 1px solid #f6c969; border-radius: 8px; background: #f6c969; color: #0c1b3a; font-weight: 800; cursor: pointer; }
.am-button.am-secondary { border-color: #637391; background: #12264b; color: #f4f7ff; }
.am-button.am-approve { border-color: #4aa477; background: #205f43; color: #edfff5; }
.am-button.am-reject { border-color: #b86779; background: #64273a; color: #fff2f4; }
.am-button:disabled { cursor: not-allowed; opacity: .5; }
.am-status { padding: .25rem .55rem; border-radius: 999px; background: #273d60; color: #e0e9fa; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.am-status-approved { background: #153e35; color: #adf3d4; }
.am-status-pending { background: #48371d; color: #ffe1a0; }
.am-status-rejected, .am-status-inactive { background: #4a2532; color: #ffd1d7; }
.am-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.am-link-card { padding: .9rem; border: 1px solid #3a4e71; border-radius: 9px; background: #0c1b3a; }
.am-link-card h4 { margin: 0 0 .5rem; color: #f6c969; }
.am-link-card p { margin: 0 0 .8rem; color: #b9c6dd; font-size: .82rem; overflow-wrap: anywhere; }
.am-link-card .am-button { width: 100%; margin-top: .7rem; }
.am-empty, .as-empty { padding: 1rem; border: 1px dashed #637391; border-radius: 9px; background: #142a50; color: #c8d3e8; }
.am-error, .as-error { padding: 1rem; border: 1px solid #b86779; border-radius: 9px; background: #391c30; color: #ffd1d7; }
.as-toolbar { grid-template-columns: minmax(180px, 340px) auto; }
.as-toolbar .at-btn { justify-self: end; }
.as-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.as-metric { padding: 1rem; border: 1px solid #3a4e71; border-radius: 12px; background: #112344; }
.as-metric strong, .as-metric span { display: block; }
.as-metric strong { color: #f6c969; font: 2rem 'Bebas Neue', sans-serif; letter-spacing: .03em; }
.as-metric span { margin-top: .2rem; color: #b9c6dd; font-size: .78rem; }
.as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.as-card { margin-bottom: 1rem; padding: 1rem; border: 1px solid #3a4e71; border-radius: 12px; background: #112344; overflow: hidden; }
.as-card h3 { margin: 0 0 1rem; color: #f4f7ff; }
.as-heading p { margin: -.6rem 0 1rem; color: #b9c6dd; font-size: .82rem; }
.as-heading-picker { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.as-heading-picker > div { flex: 1 1 260px; }
.as-player-picker { display: flex; flex: 0 1 320px; flex-direction: column; gap: .4rem; color: #c5d1e5; font-size: .8rem; font-weight: 700; }
.as-player-picker select { min-height: 44px; padding: .6rem .7rem; border: 1px solid #637391; border-radius: 8px; background: #0c1b3a; color: #f4f7ff; font: inherit; }
.as-chart { display: grid; gap: .65rem; }
.as-bar-row { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(100px, 2fr) auto; gap: .6rem; align-items: center; font-size: .8rem; }
.as-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dce6f7; }
.as-track { height: 12px; overflow: hidden; border-radius: 999px; background: #0c1b3a; }
.as-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d4961a, #f6c969); }
.as-track-place i { background: linear-gradient(90deg, #3567c0, #73a7ff); }
.as-table-wrap { overflow-x: auto; }
.as-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.as-table th, .as-table td { padding: .7rem .6rem; border-top: 1px solid #3a4e71; text-align: right; white-space: nowrap; }
.as-table th:nth-child(2), .as-table td:nth-child(2) { text-align: left; }
.as-table thead th { color: #b9c6dd; font-size: .72rem; text-transform: uppercase; }
.as-table tbody th { color: #f4f7ff; }
.as-events { display: grid; gap: .8rem; }
.as-event { padding: .9rem; border: 1px solid #3a4e71; border-radius: 9px; background: #0c1b3a; }
.as-event > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: #b9c6dd; }
.as-event > div strong { color: #f4f7ff; }
.as-event ol { margin: .7rem 0 0; padding: 0; list-style: none; }
.as-event li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .5rem 0; border-top: 1px solid #2e4367; font-size: .82rem; }
.as-event li b { color: #f6c969; }
#tab-league { color: #f4f7ff; line-height: 1.55; }
#tab-league *, #tab-league *::before, #tab-league *::after { box-sizing: border-box; }
#tab-league [hidden] { display: none !important; }
#tab-league h2, #tab-league h3, #tab-league h4, #tab-league p { margin-top: 0; }
#tab-league h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; line-height: 1.1; letter-spacing: .035em; margin-bottom: .5rem; }
#tab-league h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
#tab-league h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
#tab-league a { color: #f6c969; }
#tab-league label { cursor: pointer; }
#tab-league fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#tab-league input:not([type="checkbox"]), #tab-league select {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px;
  padding: .7rem .8rem; border: 1px solid #637391; border-radius: 8px;
  background: #0c1b3a; color: #f4f7ff; font: inherit; font-size: 1rem;
}
#tab-league input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #f6c969; margin: 0; }
#tab-league input::placeholder { color: #aebbd3; opacity: 1; }
#tab-league input:disabled, #tab-league select:disabled { opacity: .65; cursor: not-allowed; }
#tab-league :focus-visible, .al-dashboard-tabs .dash-tab:focus-visible { outline: 3px solid #f6c969; outline-offset: 4px; }
.al-header { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.al-eyebrow { color: #f6c969; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.al-muted { color: #b9c6dd; font-size: .9rem; }
.al-small { font-size: .8rem; color: #b9c6dd; }
.al-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.al-actions > .al-button { flex: 1 1 auto; }
.al-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 48px; max-width: 100%; padding: .7rem 1rem; border: 1px solid transparent;
  border-radius: 9px; font: inherit; font-size: .9rem; line-height: 1.35; font-weight: 700;
  text-align: center; text-decoration: none; cursor: pointer; background: #f6c969; color: #0c1b3a;
  white-space: normal; overflow-wrap: anywhere;
}
#tab-league a.al-button { color: #0c1b3a; }
.al-button:hover:not(:disabled) { filter: brightness(1.08); }
.al-button.al-secondary, #tab-league a.al-secondary { background: #12264b; border-color: #637391; color: #f4f7ff; }
.al-button.al-danger { background: #391c30; color: #ffcad0; border-color: #b86779; }
.al-button:disabled, #tab-league fieldset:disabled .al-button { cursor: not-allowed; opacity: .5; }
.al-card { padding: 1.1rem; border: 1px solid #3a4e71; border-radius: 14px; background: #112344; margin-bottom: 1rem; min-width: 0; scroll-margin-top: 90px; overflow-wrap: anywhere; }
.al-card-heading { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .7rem; }
.al-step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #f6c969; color: #0c1b3a; font-weight: 800; }
.al-card-heading h3 { padding-top: .15rem; }
.al-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.al-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.al-label { display: block; font-size: .85rem; font-weight: 700; color: #f4f7ff; }
.al-field .al-small { margin-bottom: 0; }
.al-form-actions { margin-top: 1rem; }
.al-details { border-top: 1px solid #3a4e71; margin-top: 1rem; padding-top: .4rem; }
.al-details > summary { min-height: 48px; padding: .7rem .1rem; font-weight: 700; color: #f6c969; cursor: pointer; }
.al-details[open] > summary { margin-bottom: .5rem; }
.al-toolbox { padding: 0 .9rem .15rem; border: 1px solid #3a4e71; border-radius: 10px; background: #0d1e3c; }
.al-toolbox > summary { display: flex; align-items: center; }
.al-quick-guide { display: grid; gap: .2rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: 9px; background: #172e50; color: #dce6f7; }
.al-quick-guide strong { color: #f6c969; }
.al-player-summary { display: flex; flex-wrap: wrap; gap: .45rem; max-height: 180px; overflow-y: auto; padding: .8rem; border: 1px solid #3a4e71; border-radius: 10px; background: #0c1b3a; }
.al-player-pill { display: inline-flex; align-items: center; min-height: 32px; padding: .3rem .6rem; border-radius: 999px; background: #273d60; color: #eef3fc; font-size: .82rem; }
.al-publish-progress { margin: 1rem 0 .4rem; color: #dce6f7; }
.al-publish-progress strong { color: #f6c969; }
.al-fixture-preview > .al-card { margin: 0 0 .75rem; padding: .4rem 0 0; border: 0; background: transparent; }
.al-check { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .65rem 0; }
.al-steps { display: flex; list-style: none; gap: .4rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.al-steps li { flex: 1 1 auto; }
.al-steps .al-button { width: 100%; min-height: 44px; padding: .5rem .6rem; font-size: .85rem; }
#tab-league .al-steps [aria-current="step"] { background: #f6c969; color: #0c1b3a; border-color: #f6c969; }
.al-flow-context { display: flex; flex-wrap: wrap; gap: .3rem 1rem; position: sticky; top: .5rem; z-index: 5; padding: .75rem 1rem; margin-bottom: 1rem; border: 1px solid #637391; border-radius: 9px; background: #0c1b3a; font-size: .85rem; }
.al-flow-context strong { color: #f6c969; }
#tab-league .al-stage-title { font-size: 2rem; scroll-margin-top: 120px; }
.al-stage-actions { justify-content: space-between; margin: 1rem 0 2rem; }
.al-checklist { list-style: none; padding: 0; margin: 1rem 0; }
.al-checklist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; border-top: 1px solid #3a4e71; padding: 1rem 0; }
.al-checklist p { margin: .3rem 0; }
.al-check-state { font-weight: 700; font-size: .8rem; }
.al-check-ready .al-check-state { color: #adf3d4; }
.al-check-pending .al-check-state { color: #ffe1a0; }
.al-checklist .al-button { min-height: 44px; padding: .4rem .75rem; font-size: .8rem; margin-top: .35rem; }
.al-status { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .8rem 0; }
.al-chip { display: inline-block; border-radius: 6px; padding: .15rem .45rem; font-size: .75rem; font-weight: 600; background: #273d60; color: #e0e9fa; overflow-wrap: anywhere; }
.al-chip.al-rookie { background: #3a2e56; color: #e9d6ff; }
.al-chip.al-live { background: #153e35; color: #adf3d4; }
.al-chip.al-draft { background: #48371d; color: #ffe1a0; }
.al-chip.al-cancelled { background: #4a2532; color: #ffd1d7; }
.al-notice { background: #391c30; color: #ffd1d7; border: 1px solid #b86779; border-radius: 10px; padding: 1rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
.al-notice p:last-child { margin-bottom: 0; }
.al-callout { padding: .85rem; background: #1c3153; border-left: 3px solid #f6c969; border-radius: 5px; margin: 1rem 0; font-size: .9rem; }
.al-empty { padding: 1rem; background: #142a50; border: 1px dashed #637391; border-radius: 9px; color: #c8d3e8; }
.al-roster-list { display: grid; gap: .5rem; margin-top: .8rem; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; padding: .3rem; }
.al-roster-row { display: flex; align-items: center; gap: .75rem; min-height: 66px; padding: .7rem; border: 1px solid #3a4e71; border-radius: 9px; background: #0c1b3a; }
.al-roster-row:has(input:checked) { border-color: #d6ab59; background: #1d3049; }
.al-player-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.al-player-info strong { display: block; font-size: .95rem; }
.al-roster-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .75rem; color: #c2cfe4; margin-top: .25rem; }
.al-roster-count { font-size: 1.05rem; font-weight: 700; margin: .8rem 0 .4rem; color: #f6c969; }
.al-team-grid { display: grid; gap: 1rem; margin: 1rem 0; }
.al-team { min-width: 0; padding: 1rem; border: 1px solid #506482; border-radius: 10px; background: #0c1b3a; }
.al-team-stat { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0; }
.al-team-players { list-style: none; margin: 0; padding: 0; }
.al-team-players li { padding: .55rem 0; border-top: 1px solid #2e4367; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; overflow-wrap: anywhere; }
.al-team-players li > span:first-child { min-width: 0; flex: 1; }
.al-edit-tools { padding: 1rem; border: 1px solid #637391; border-radius: 10px; margin-bottom: 1rem; }
.al-result-preview { margin-top: .6rem; color: #f6c969; font-size: .85rem; }
.al-late-player { margin: 1rem 0; padding: 1rem; border: 1px solid #55719e; border-radius: 10px; background: #0c1b3a; }
.al-late-player h4 { color: #f6c969; }
.al-late-player-form { display: grid; gap: .8rem; align-items: end; margin: .9rem 0; }
.al-live-lineup { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #3a4e71; }
.al-private-poster { margin: 1rem 0; padding: 1rem; border: 1px solid #55719e; border-radius: 10px; background: #0c1b3a; }
.al-private-poster h4 { color: #f6c969; }
.al-poster-preview { max-width: 360px; margin: 1rem auto 0; }
.al-poster-preview img { display: block; width: 100%; height: auto; border: 1px solid #637391; border-radius: 10px; background: #06132e; }
.al-poster-preview figcaption { padding-top: .45rem; color: #b9c6dd; font-size: .8rem; text-align: center; }
.al-cancel-matchday { margin-top: 1rem; padding: 1rem; border: 1px solid #b86779; border-radius: 10px; background: #391c30; }
.al-scoring-preview { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.al-scoring-preview li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .45rem 0; border-top: 1px solid #3a4e71; }
.al-scoring-preview span { overflow-wrap: anywhere; }
.al-round { margin: 1.1rem 0; padding: 1rem; border: 1px solid #3a4e71; border-radius: 12px; background: #14284a; min-width: 0; }
.al-match-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.al-match-grid .al-button { width: 100%; margin-top: .5rem; }
.al-score-fields { margin-bottom: .7rem; }
.al-match-score { font-size: 1.7rem; font-weight: 800; color: #f6c969; margin-bottom: .35rem; }
.al-match-table { margin-top: 1.5rem; border-top: 1px solid #637391; padding-top: 1.2rem; }
.al-match-stats { margin: 0; font-size: .85rem; }
.al-match-stats > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; border-top: 1px solid #3a4e71; padding: .5rem 0; }
.al-match-stats dt { color: #b9c6dd; }
.al-match-stats dd { margin: 0; font-weight: 700; }
.al-dirty { color: #ffe1a0; font-weight: 600; font-size: .9rem; }
.al-player-handle {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 48px; border: 1px solid #637391; border-radius: 8px;
  background: #142a50; color: #f6c969; font: inherit; font-size: 1.4rem;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.al-player-handle[aria-pressed="true"] { background: #f6c969; color: #0c1b3a; outline: 2px solid #f6c969; }
.al-player-handle.al-dragging { cursor: grabbing; opacity: .65; }
#tab-league .al-drop-target { outline: 3px solid #f6c969; outline-offset: 2px; background: #203e54; }
#tab-league .al-draft-player { flex-wrap: nowrap; align-items: center; gap: .5rem; }
#tab-league .al-draft-player > .al-player-info { flex: 1 1 0; min-width: 0; }
#tab-league [data-al-action^="remove-player:"] { min-height: 44px; padding: .5rem; flex: 0 0 auto; font-size: .8rem; }
#tab-league [data-al-place-team] { width: 100%; margin-top: .75rem; font-size: .8rem; }
.al-role-list, .al-bonus-list { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; margin: .8rem 0; padding: .3rem; }
.al-role-row { border-top: 1px solid #3a4e71; }
.al-bonus-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: .8rem; align-items: center; border-top: 1px solid #3a4e71; padding: .65rem 0; }
.al-bonus-row label { min-width: 0; overflow-wrap: anywhere; }
.al-bonus-row label .al-small { display: block; }
.al-bonus-row input { text-align: center; }
.al-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .am-toolbar, .as-toolbar, .am-link-grid, .as-grid { grid-template-columns: minmax(0, 1fr); }
  .as-toolbar .at-btn { justify-self: stretch; }
  .as-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-actions { width: 100%; }
  .am-actions .am-field { width: 100%; }
}
@media (min-width: 640px) {
  .al-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-wide { grid-column: 1 / -1; }
  .al-team-grid, .al-roster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-late-player-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .al-match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-actions > .al-button { flex: 0 1 auto; }
  .al-card { padding: 1.5rem; }
}
@media (min-width: 960px) {
  .al-header { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.5rem; }
  .al-header .al-actions { flex-direction: column; align-items: stretch; }
  .al-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #tab-league *, .al-dashboard-tabs .dash-tab { scroll-behavior: auto; transition: none; }
}
