/* Coach-only workspace. Shared player layouts retain their existing styles. */
.coach-dashboard {
    --coach-border: rgba(92, 190, 211, .3);
    --coach-muted: #96afbc;
    position: relative;
    isolation: isolate;
    color: #f2f8fc;
    padding: 0 0 24px;
    min-width: 0;
}
.coach-dashboard::before {
    content: '';
    position: absolute;
    inset: 0 -12px auto;
    height: 580px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 19, 28, .15), #06131c 98%), url('../img/coach/stadium-hero-v1.webp') 65% top / cover;
    border-radius: 24px;
    pointer-events: none;
}
.coach-hero { padding: 28px 16px 24px; }
.coach-dashboard .coach-kicker { color: #25e5a7; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.coach-dashboard h2 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 10px 0 12px; letter-spacing: -.03em; }
.coach-dashboard h3 { color: #f2f8fc; font-size: 18px; line-height: 1.3; margin: 10px 0 14px; }
.coach-dashboard p { color: #b0c7d1; font-size: 14px; line-height: 1.65; margin: 0 0 16px; }
.coach-hero > p { max-width: 460px; }
.coach-hero-actions, .coach-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.coach-dashboard .coach-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    border: 1px solid var(--coach-border);
    border-radius: 13px;
    padding: 11px 15px;
    color: #f2f8fc;
    background: rgba(7, 35, 43, .9);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .15s ease, transform .15s ease;
}
.coach-action[data-coach-action='create-team'], .coach-action[data-coach-action='create-match'] {
    color: #03242c;
    border-color: transparent;
    background: linear-gradient(110deg, #25e5a7, #37bfff);
    box-shadow: 0 6px 20px rgba(0, 239, 208, .12);
}
.coach-dashboard button:focus-visible { outline: 2px solid #00efd0; outline-offset: 3px; }
.coach-dashboard button:disabled { opacity: .6; cursor: default; }
.coach-dashboard button:active:not(:disabled) { transform: translateY(1px); }
.coach-team-switch { display: grid; gap: 8px; padding: 16px; background: rgba(7, 35, 43, .92); border: 1px solid var(--coach-border); border-radius: 18px; margin-bottom: 14px; }
.coach-team-switch label { color: #96afbc; font-size: 12px; font-weight: 700; }
.coach-team-switch > span { color: #96afbc; font-size: 12px; line-height: 1.5; }
.coach-team-switch .custom-dropdown { min-width: 0; width: 100%; }
.coach-team-switch .custom-dropdown-trigger { min-height: 46px; }
.coach-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.coach-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; gap: 5px; padding: 9px 6px; border: 1px solid var(--coach-border); border-radius: 11px; background: rgba(7, 35, 43, .94); }
.coach-stats i { color: #25e5a7; font-size: 12px; }
.coach-stats strong { font-size: 20px; line-height: 1; }
.coach-stats span { color: #b0c7d1; font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.coach-workspace-grid { display: grid; gap: 14px; }
.coach-panel { min-width: 0; border: 1px solid var(--coach-border); border-radius: 20px; padding: 18px 16px; background: rgba(7, 35, 43, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.coach-panel--next { border-color: rgba(37, 229, 167, .5); background: linear-gradient(130deg, rgba(15, 67, 68, .92), rgba(7, 35, 43, .96)); }
.coach-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coach-panel-heading > i { color: #37bfff; font-size: 18px; }
.coach-match-row, .coach-player, .coach-plan { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 62px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(92, 190, 211, .16); background: transparent; text-align: left; color: #f2f8fc; font: inherit; cursor: pointer; }
.coach-match-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; }
.coach-match-row > span, .coach-player > span, .coach-plan > span { min-width: 0; }
.coach-match-row strong, .coach-player strong { display: block; font-size: 13px; overflow-wrap: anywhere; line-height: 1.45; }
.coach-match-row small, .coach-player small { display: block; color: #96afbc; font-size: 11px; line-height: 1.5; margin-top: 4px; }
.coach-date { color: #25e5a7; font-size: 11px; font-weight: 700; }
.coach-match-row > b { font-size: 16px; white-space: nowrap; }
.coach-number { display: grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; color: #00efd0; background: rgba(0, 239, 208, .08); border-radius: 10px; font-size: 13px; font-weight: 800; }
.coach-player > i, .coach-plan > i:last-child { color: #96afbc; margin-left: auto; font-size: 12px; }
.coach-plan { font-size: 13px; }
.coach-plan > i:first-child { color: #25e5a7; }
.coach-panel .coach-action { margin-top: 14px; }
.coach-onboarding-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; background: rgba(0, 239, 208, .1); color: #25e5a7; font-size: 25px; }
.coach-onboarding ol { padding-left: 20px; color: #b0c7d1; font-size: 13px; line-height: 1.7; }
.coach-onboarding li { padding: 5px 0; }
.coach-feedback { padding: 16px; border: 1px solid #d49863; border-radius: 16px; margin-bottom: 14px; background: #292421; }
.is-coach-account #progress-container > :not(.coach-dashboard),
.is-coach-account #home-container > :not(.coach-dashboard),
.is-coach-account .home-match-personal { display: none !important; }
@media (min-width: 769px) {
    .coach-hero { padding: 40px 28px 32px; }
    .coach-workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .coach-panel { padding: 24px; }
    .coach-stats { gap: 8px; }
    .coach-stats > div { padding: 12px; }
    .coach-stats strong { font-size: 24px; }
    .coach-stats span { font-size: 10px; }
    .coach-team-switch { grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr); align-items: center; }
    .coach-team-switch > span { grid-column: 1 / -1; }
}
@media (max-width: 359px) {
    .coach-hero { padding-inline: 4px; }
    .coach-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coach-hero-actions .coach-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .coach-dashboard button { transition: none; } }

/* Atmospheric image layers: decorative only, below all text and controls. */
body.is-coach-account:is(.is-progress-section, .is-home-section)::before {
    background-image: linear-gradient(180deg, rgba(3, 15, 24, .3), rgba(4, 21, 27, .72) 48%, #04151b 94%), url('../img/coach/stadium-hero-v1.webp');
    background-position: center top;
    background-size: cover;
}
.coach-hero {
    border: 1px solid rgba(75, 199, 197, .24);
    border-radius: 24px;
    margin-bottom: 14px;
    background: linear-gradient(100deg, rgba(5, 24, 34, .92), rgba(6, 28, 37, .64) 60%, rgba(5, 24, 34, .26)), url('../img/coach/stadium-hero-v1.webp') 70% center / cover;
    box-shadow: inset 0 1px 0 rgba(139, 255, 232, .06), 0 8px 28px rgba(0, 0, 0, .12);
}
.coach-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 390px; }
.coach-hero-actions .coach-action { padding: 10px 8px; font-size: 12px; gap: 7px; }
.coach-team-switch { background: linear-gradient(100deg, rgba(7, 35, 43, .98), rgba(7, 35, 43, .88) 60%, rgba(7, 35, 43, .68)), url('../img/coach/stadium-hero-v1.webp') right center / cover; }
.coach-stats > div { background: radial-gradient(ellipse at 15% 0, rgba(39, 205, 179, .1), transparent 80%), rgba(7, 35, 43, .94); }
.coach-stats > div:nth-child(2) { border-color: rgba(86, 164, 239, .35); }
.coach-stats > div:nth-child(2) i { color: #69b8ff; }
.coach-stats > div:nth-child(3) { border-color: rgba(185, 211, 111, .28); }
.coach-stats > div:nth-child(3) i { color: #d4df88; }
.coach-stats > div:nth-child(4) i { color: #83edcb; }
.coach-panel { position: relative; isolation: isolate; overflow: hidden; background: #09232b; }
.coach-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(100deg, rgba(5, 25, 34, .97), rgba(5, 25, 34, .83) 40%, rgba(5, 25, 34, .35)), var(--coach-panel-image, none);
    background-position: center, right center;
    background-size: cover;
    opacity: .84;
}
.coach-panel--next { --coach-panel-image: url('../img/coach/upcoming-pitch-v1.webp'); border-color: rgba(37, 229, 167, .5); }
.coach-panel--squad { --coach-panel-image: url('../img/coach/squad-locker-v1.webp'); }
.coach-panel--results { --coach-panel-image: url('../img/coach/results-analysis-v1.webp'); }
.coach-panel--plans { --coach-panel-image: url('../img/coach/plans-tactics-v1.webp'); }
.coach-panel--focus { --coach-panel-image: url('../img/coach/weekly-focus-v1.webp'); margin-top: 14px; }
.coach-panel--focus p { max-width: 420px; margin-bottom: 0; }
.coach-panel--focus .coach-action { min-height: 44px; }
.coach-match-row, .coach-player, .coach-plan { border-bottom-color: rgba(119, 195, 204, .2); }
@media (max-width: 768px) {
    .coach-workspace-grid { grid-template-columns: minmax(0, 1fr); }
    .coach-dashboard .coach-hero { padding: 24px 16px 20px; }
}
.coach-dashboard .coach-role-hint { padding: 12px 14px; margin: 0 0 14px; border: 1px solid rgba(92, 190, 211, .2); border-radius: 14px; background: rgba(7, 35, 43, .92); font-size: 12px; }
.coach-dashboard .coach-context-caption { margin: 0 0 12px; color: #9ebdc8; font-size: 12px; line-height: 1.5; }
.coach-dashboard .coach-focus-title { color: #effaf6; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.coach-focus-status { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(53, 226, 176, .35); border-radius: 20px; font-size: 12px; color: #67e6c1; background: rgba(7, 35, 43, .88); }
.coach-note-context { padding: 12px 14px; margin: 0 0 16px; border: 1px solid rgba(53, 226, 176, .3); border-radius: 12px; color: #9be7d4; background: #0c3039; font-size: 14px; line-height: 1.5; }
.coach-dashboard .coach-context-caption, .coach-note-context, .coach-dashboard .coach-role-hint { overflow-wrap: anywhere; }
.coach-pending-summary { margin-bottom: 14px; }

.coach-dashboard .coach-panel--squad { padding: 14px; border-radius: 17px; align-self: start; }
.coach-panel--squad .coach-panel-heading > i { font-size: 14px; }
.coach-panel--squad .coach-kicker { font-size: 10px; }
.coach-dashboard .coach-panel--squad h3 { margin: 7px 0 6px; font-size: 18px; line-height: 1.25; }
.coach-dashboard .coach-panel--squad > p { margin: 0 0 6px; font-size: 12px; line-height: 1.45; }
.coach-panel--squad .coach-player { min-height: 45px; padding: 7px 0; gap: 9px; }
.coach-panel--squad .coach-number { width: 29px; height: 31px; border-radius: 8px; font-size: 11px; }
.coach-panel--squad .coach-player strong { font-size: 12px; line-height: 1.35; }
.coach-panel--squad .coach-player small { margin-top: 2px; font-size: 10px; line-height: 1.35; }
.coach-dashboard .coach-panel--squad .coach-action { min-height: 34px; margin-top: 10px; padding: 7px 11px; border-radius: 10px; font-size: 12px; gap: 7px; }

/* Coach command center: compact, actionable upper workspace. */
.coach-dashboard .coach-hero { padding: 12px 12px 10px; border-color: rgba(43, 218, 200, .6); border-radius: 18px; }
.coach-dashboard .coach-hero h2 { margin: 5px 0 6px; font-size: clamp(23px, 5.8vw, 28px); }
.coach-dashboard .coach-hero > p { font-size: 11px; line-height: 1.4; margin-bottom: 9px; }
.coach-dashboard .coach-hero-primary { max-width: 360px; gap: 7px; }
.coach-dashboard .coach-hero-primary .coach-action { min-height: 34px; padding: 6px 8px; border-radius: 10px; font-size: 12px; }
.coach-dashboard .coach-hero-primary [data-coach-action='create-match'] { color: #042a2d; background: linear-gradient(115deg, #36edb5, #19dfa0 50%, #2bdac8); border: 1px solid #70ffdc; box-shadow: 0 0 18px #19dfa033, inset 0 1px 0 #c1ffed88; }
.coach-dashboard .coach-hero-primary [data-coach-action='training'] { border-color: #42cfe8; background: linear-gradient(115deg, #06333fdd, #082c3acc); }
.coach-dashboard .coach-hero-utilities { display: flex; max-width: none; gap: 1px 10px; margin-top: 5px; }
.coach-dashboard .coach-hero-utilities .coach-action { min-height: 26px; width: auto; padding: 2px 0; font-size: 10px; color: #a8ccd4; background: transparent; border: 0; box-shadow: none; }
.coach-dashboard .coach-hero > .coach-kicker { font-size: 9px; letter-spacing: .1em; }
.coach-dashboard .coach-active-team { display: block; padding: 11px 13px; border-radius: 18px; }
.coach-active-team label { display: block; margin-bottom: 6px; color: #a8ccd4; font-size: 10px; letter-spacing: .06em; }
.coach-active-team label i { margin-right: 7px; color: #36edb5; }
.coach-active-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coach-command-emblem { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 46px; object-fit: contain; flex: 0 0 auto; color: #36edb5; font-size: 30px; }
.coach-active-copy { min-width: 0; flex: 1; }
.coach-active-copy small { display: block; color: #9dbac4; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.coach-active-team .custom-dropdown-trigger { min-height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 19px; font-weight: 800; }
.coach-active-team .custom-dropdown-label { text-align: left; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-form-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.coach-form-pills > span { display: grid; place-items: center; width: 22px; height: 24px; border-radius: 6px; color: #dbf7f0; background: #516e7b; font-size: 12px; font-weight: 800; }
.coach-form-pills > .is-win { background: #08734e; color: #83ffcf; }
.coach-form-pills > .is-loss { background: #6e3940; color: #ff9a9e; }
.coach-command-center { display: grid; gap: 10px; margin-bottom: 14px; min-width: 0; }
.coach-dashboard .coach-command-center .coach-panel { margin: 0; padding: 12px; border-radius: 18px; box-shadow: inset 0 1px 0 #a8f6f909; min-width: 0; }
.coach-dashboard .coach-command-center h3 { margin: 0 0 9px; font-size: 15px; line-height: 1.3; }
.coach-command-center h3 > i { color: #36edb5; margin-right: 7px; }
.coach-dashboard .coach-command-center p { margin: 0 0 9px; font-size: 12px; line-height: 1.45; }
.coach-command-center small { color: #9dbac4; font-size: 10px; line-height: 1.45; }
.coach-dashboard .coach-command-center .coach-action { min-height: 34px; padding: 7px 9px; font-size: 11px; border-radius: 10px; gap: 6px; }
.coach-dashboard .coach-next-command { border-color: #19dfa0aa; }
.coach-next-command::before { background-image: linear-gradient(180deg, #05232bcc, #05232b88 60%, #005b3599), var(--coach-panel-image); opacity: 1; }
.coach-next-scoreboard { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 7px; padding: 2px 0 6px; border: 0; background: transparent; color: #f4fafc; cursor: pointer; }
.coach-next-scoreboard > span { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-width: 0; }
.coach-next-scoreboard strong { font-size: 12px; overflow-wrap: anywhere; }
.coach-next-scoreboard > b { color: #65ffd0; font-size: 21px; font-style: italic; text-shadow: 0 0 14px #19dfa0; }
.coach-next-scoreboard .coach-command-emblem { width: 28px; height: 32px; flex-basis: 28px; font-size: 22px; }
.coach-next-meta { text-align: center; }
.coach-preparation-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 7px; }
.coach-preparation-pills > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 5px 3px; border: 1px solid #42cfe840; border-radius: 9px; background: #03232acc; font-size: 9px; text-align: center; }
.coach-preparation-pills b { color: #36edb5; }
.coach-dashboard .coach-next-command > [data-coach-action='prepare-match'] { width: 100%; min-height: 34px; padding: 6px 9px; margin-top: 0; color: #03232a; font-size: 12px; border: 1px solid #72ffe1; border-radius: 10px; background: linear-gradient(105deg, #20e4a5, #2ae4c4, #41d5d8); box-shadow: 0 0 14px #20e4a533; }
.coach-next-secondary { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.coach-dashboard .coach-next-secondary .coach-action { background: #03232a99; min-height: 27px; margin-top: 0; font-size: 9px; padding: 4px 8px; }
.coach-next-command .coach-upcoming-list { margin-top: 6px; }
.coach-next-command .coach-match-row { min-height: 32px; padding: 4px 0; }
.coach-text-action { color: #9bdfea; border: 0; padding: 6px; background: transparent; cursor: pointer; font-size: 11px; }
.coach-dashboard .coach-command-center .coach-next-command { padding: 10px 11px; border-radius: 17px; }
.coach-dashboard .coach-command-center .coach-next-command h3 { font-size: 14px; margin-bottom: 7px; }
.coach-dashboard .coach-command-center .coach-next-meta { font-size: 10px; margin-bottom: 6px; }
.coach-next-command .coach-match-row strong { font-size: 11px; }
.coach-next-command .coach-match-row small { font-size: 9px; }
.coach-next-command .coach-match-row .coach-date { font-size: 10px; }
.coach-next-scoreboard .coach-command-emblem > i { font-size: 20px; }
/* Readiness is a single compact status widget, with four inline metrics. */
.coach-dashboard .coach-command-center .coach-readiness {
    padding: 10px 11px 9px; border-radius: 18px; border-color: #42cfe85c;
    background: radial-gradient(ellipse at 90% 0, #42cfe81a, transparent 58%), radial-gradient(ellipse at 15% 100%, #19dfa01f, transparent 65%), linear-gradient(120deg, #061e2d, #073c40);
    box-shadow: inset 0 1px 0 #b6fff526, inset 0 -1px 0 #36edb51a, 0 0 18px #2bdac80c;
}
.coach-readiness::before { background: linear-gradient(125deg, transparent 35%, #8affec08 50%, transparent 65%); opacity: 1; }
.coach-dashboard .coach-command-center .coach-readiness h3 { margin-bottom: 3px; font-size: 14px; }
.coach-readiness h3 > i { color: #63ffd2; filter: drop-shadow(0 0 5px #19dfa066); }
.coach-dashboard .coach-command-center .coach-readiness > p { color: #a1bdc9; font-size: 10px; margin-bottom: 6px; }
.coach-readiness-bar { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.coach-readiness-bar progress { appearance: none; height: 9px; width: 100%; min-width: 0; border: 1px solid #8ac6d32b; border-radius: 20px; overflow: hidden; background: #294854; box-shadow: inset 0 2px 4px #00000040, 0 0 12px #19dfa014; }
.coach-readiness-bar progress::-webkit-progress-bar { background: linear-gradient(#294854, #203b49); border-radius: 20px; }
.coach-readiness-bar progress::-webkit-progress-value { background: linear-gradient(180deg, #b5ffe66b, transparent 48%), linear-gradient(90deg, #12ce94, #36edb5, #73ffdb); border-radius: 20px; box-shadow: 0 0 10px #36edb588; }
.coach-readiness-bar progress::-moz-progress-bar { background: linear-gradient(90deg, #12ce94, #73ffdb); border-radius: 20px; }
.coach-readiness-bar strong { flex: 0 0 auto; color: #e3fff6; font-size: 19px; font-weight: 850; line-height: 1.1; letter-spacing: -.04em; }
.coach-readiness-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.coach-readiness-metric { --readiness-accent: #5ee9e1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0 3px; }
.coach-readiness-metric + .coach-readiness-metric { border-left: 1px solid #78cad633; }
.coach-readiness-metric:nth-child(2) { --readiness-accent: #48f0b6; }
.coach-readiness-metric:nth-child(3) { --readiness-accent: #ff7b86; }
.coach-readiness-metric:nth-child(4) { --readiness-accent: #98dcff; }
.coach-readiness-value { display: flex; align-items: center; gap: 4px; color: var(--readiness-accent); }
.coach-readiness-value i { font-size: 11px; filter: drop-shadow(0 0 4px #ffffff12); }
.coach-readiness-value b { color: inherit; font-size: 16px; line-height: 1; font-weight: 800; }
.coach-readiness-label { color: #d0e3e9; font-size: clamp(8px, 2.1vw, 9px); font-weight: 550; line-height: 1.2; white-space: nowrap; }
.coach-readiness > small { display: block; margin-top: 6px; color: #91acb8; font-size: 8px; }
/* Compact actionable issues; existing team and match destinations are reused. */
.coach-dashboard .coach-command-center .coach-attention {
    padding: 11px 12px; border-radius: 19px; border-color: #37afbe61;
    background: radial-gradient(ellipse at 100% 0, #74c9da12, transparent 60%), radial-gradient(ellipse at 0 100%, #32e3a80a, transparent 60%), linear-gradient(110deg, #041e26f7, #052a31f0, #031c24fa);
    box-shadow: inset 0 1px 0 #c3fff514;
}
.coach-attention::before { background: none; }
.coach-dashboard .coach-command-center .coach-attention h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font-size: 15px; }
.coach-command-center .coach-attention h3 > i { color: #f5c542; font-size: 16px; margin: 0; }
.coach-attention-count { margin-left: auto; min-width: 20px; padding: 2px 5px; border: 1px solid #f5c54222; border-radius: 6px; color: #f5c542; background: #f5c54212; text-align: center; font-size: 10px; font-weight: 700; }
.coach-attention-row { --issue-accent: #f4c542; display: flex; align-items: center; gap: 9px; position: relative; width: 100%; min-height: 36px; padding: 6px 0; border: 0; color: #9bb6c0; background: transparent; text-align: left; font: inherit; font-size: 11px; line-height: 1.4; cursor: pointer; transition: background-color 160ms ease; }
.coach-attention-row.is-coral { --issue-accent: #e86a6f; }
.coach-attention-row.is-cyan { --issue-accent: #9ccad6; }
.coach-attention-row > i:first-child { width: 17px; flex: 0 0 17px; color: var(--issue-accent); text-align: center; font-size: 14px; }
.coach-attention-row > i:last-child { flex: 0 0 auto; color: #87b3bf; font-size: 13px; }
.coach-attention-copy { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-attention-copy strong { color: #edf7fa; font-weight: 700; }
.coach-attention-row + .coach-attention-row::before { content: ''; position: absolute; left: 26px; right: 0; top: 0; height: 1px; background: #59a7b733; pointer-events: none; }
.coach-attention-row:hover:not(:disabled), .coach-attention-row:focus-visible { background: #22879114; }
.coach-attention-more { border-top: 1px solid #59a7b733; margin-left: 26px; }
.coach-attention-more > summary { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-height: 28px; color: #91bdc8; font-size: 10px; cursor: pointer; list-style: none; }
.coach-attention-more > summary::-webkit-details-marker { display: none; }
.coach-attention-more[open] > summary i { transform: rotate(180deg); }
.coach-attention-more > .coach-attention-list { margin-left: -26px; }
.coach-dashboard .coach-command-center .coach-team-form {
    padding: 10px 11px; border-radius: 18px; min-height: 108px; border-color: #3cc4d261;
    background: radial-gradient(ellipse at 95% 0, #56efef13, transparent 55%), radial-gradient(ellipse at 0 100%, #23dcaa16, transparent 65%), linear-gradient(110deg, #041f27fa, #052f36f0 55%, #031c24fa);
    box-shadow: inset 0 1px 0 #b1fff517, 0 0 18px #23dcaa0f;
}
.coach-team-form::before { background: linear-gradient(135deg, transparent, #b7fff507 45%, transparent 65%); }
.coach-dashboard .coach-command-center .coach-team-form h3 { font-size: 15px; margin-bottom: 4px; }
.coach-team-form h3 > i { font-size: 16px; color: #27e3b2; }
.coach-dashboard .coach-command-center .coach-team-form > p { color: #9cb8c2; font-size: 9px; line-height: 1.35; margin-bottom: 6px; }
.coach-form-content { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .8fr)); gap: 0; align-items: center; }
.coach-form-sparkline { width: 100%; height: 44px; overflow: visible; padding-right: 7px; box-sizing: border-box; }
.coach-form-area { fill: #2de3af26; }
.coach-form-line { fill: none; stroke: #35e7b0; stroke-width: 2.7; stroke-linecap: round; filter: drop-shadow(0 0 3px #35e7b077); }
.coach-form-sparkline circle { fill: #b8ffe8; stroke: #25dfa5; stroke-width: 1; filter: drop-shadow(0 0 3px #35e7b088); }
.coach-form-stat { min-width: 0; min-height: 38px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid #58b4c340; color: #9cb7c2; font-size: clamp(7px, 2vw, 10px); white-space: nowrap; }
.coach-form-stat b { display: block; margin-top: 4px; color: #f4fafc; font-size: 20px; line-height: 1; font-weight: 800; }
.coach-form-average b { color: #35e7b0; text-shadow: 0 0 8px #35e7b026; }
.coach-team-form .coach-form-pills { min-height: 0; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 3px; margin-left: auto; transform: translateY(3px); }
.coach-team-form .coach-form-pills > span { width: 15px; height: 21px; border-radius: 5px; font-size: 10px; border: 1px solid #a7c6d233; }
.coach-team-form .coach-form-pills > .is-win { background: linear-gradient(#07935a, #087447); border-color: #28e09673; color: #c9ffe5; }
.coach-team-form .coach-form-pills > .is-draw { background: #435a64; color: #e0edf2; }
.coach-team-form .coach-form-pills > .is-loss { background: linear-gradient(#9b454d, #74343b); border-color: #ee697052; color: #ffdde0; }
@media (min-width: 410px) {
    .coach-team-form .coach-form-pills > span { width: 17px; height: 23px; }
}
@media (min-width: 769px) {
    .coach-form-stat { font-size: 10px; }
    .coach-form-stat b { font-size: 22px; }
    .coach-team-form .coach-form-pills { gap: 4px; }
    .coach-team-form .coach-form-pills > span { width: 22px; height: 25px; font-size: 12px; }
    .coach-dashboard .coach-command-center .coach-team-form > p { font-size: 10px; }
}
.coach-dashboard .coach-command-center .coach-command-quick { padding: 10px 11px; border-radius: 17px; }
.coach-dashboard .coach-command-center .coach-command-quick h3 { font-size: 14px; margin-bottom: 7px; }
.coach-dashboard .coach-command-quick > div > .coach-action { margin-top: 0; }
.coach-command-quick > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.coach-dashboard .coach-command-quick > div > button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-width: 0; min-height: 48px; padding: 6px 3px; border: 1px solid #42cfe859; border-radius: 10px; background: linear-gradient(145deg, #0a4146aa, #052b3388); color: #d1e8ee; font-size: 10px; font-weight: 650; cursor: pointer; }
.coach-command-quick button i { font-size: 17px; color: #77ccec; }
.coach-command-quick button:nth-child(2) i { color: #36edb5; }
@media (min-width: 1000px) {
    .coach-command-center { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .coach-command-center .coach-next-command { grid-row: span 2; }
}
@media (max-width: 359px) {
    .coach-active-line { gap: 7px; }
    .coach-next-scoreboard > span { flex-direction: column; gap: 4px; }
    .coach-command-quick > div { gap: 5px; }
}

/* Compact active team identity and navigation chevron. */
.coach-dashboard .coach-active-team {
    width: 100%; min-height: 68px; padding: 7px 11px; color: #f4fafc;
    text-align: left; font: inherit; cursor: pointer; border: 1px solid rgba(58, 188, 202, .42); border-radius: 17px;
    background: radial-gradient(ellipse at 90% 0, #42cfe815, transparent 55%), radial-gradient(ellipse at 0 100%, #19dfa010, transparent 60%), linear-gradient(100deg, #052a32f5, #05262fe6 45%, #04212ac7), url('../img/coach/stadium-hero-v1.webp') right 65% / cover;
    box-shadow: inset 0 1px 0 #91ffff17, inset 0 -1px 0 #20dda633, 0 5px 18px #00000018;
}
.coach-active-label { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; color: #aecad4; font-size: 9px; font-weight: 800; letter-spacing: .025em; }
.coach-active-label > i { color: #36edb5; font-size: 14px; }
.coach-active-team .coach-active-line { display: flex; align-items: center; gap: 8px; }
.coach-active-team .coach-command-emblem { width: 30px; height: 32px; flex: 0 0 30px; }
.coach-active-team .coach-active-copy { flex: 1 1 0; min-width: 0; }
.coach-active-copy > strong { color: #f4fafc; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; font-weight: 800; line-height: 1.25; }
.coach-active-team .coach-active-copy > small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; line-height: 1.4; }
.coach-active-line > .fa-chevron-right { flex: 0 0 auto; margin-left: 1px; color: #b8d0db; font-size: 18px; }

@media (min-width: 769px) {
    .coach-dashboard .coach-active-team { padding: 8px 13px; min-height: 74px; }
    .coach-active-team .coach-active-line { gap: 13px; }
    .coach-active-team .coach-command-emblem { width: 34px; height: 36px; flex-basis: 34px; }
    .coach-active-copy > strong { font-size: 18px; }
    .coach-active-team .coach-active-copy > small { font-size: 12px; }
    .coach-active-line > .fa-chevron-right { margin-left: 12px; font-size: 21px; }
}
@media (max-width: 359px) {
    .coach-dashboard .coach-active-team { padding-inline: 10px; }
    .coach-active-team .coach-active-line { gap: 5px; }
    .coach-active-team .coach-command-emblem { width: 28px; flex-basis: 28px; height: 30px; }
    .coach-active-copy > strong { font-size: 16px; }
    .coach-active-team .coach-active-copy > small { font-size: 10px; }
    .coach-active-line > .fa-chevron-right { font-size: 15px; }
}

.coach-active-team .coach-command-emblem { color: #55e6be; background: #062c35aa; border-color: #42cfe838; }
.coach-active-team .coach-command-emblem i { font-size: 20px; }
.coach-active-team .coach-command-emblem img[hidden] { display: none; }
.coach-dashboard .coach-command-center .coach-team-form:not(:has(.coach-form-content)) { min-height: 0; }

.coach-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.coach-dashboard .coach-command-center .coach-form-heading h3 { margin: 0; min-width: 0; }
@media (max-width: 359px) {
    .coach-dashboard .coach-command-center .coach-form-heading h3 { font-size: 14px; }
}

.coach-attention-empty { display: flex; align-items: center; gap: 10px; padding: 8px 0 3px; color: #9db7c1; }
.coach-attention-empty > i { color: #74c9da; font-size: 20px; flex: 0 0 auto; }
.coach-attention-empty.is-ready > i { color: #32e3a8; }
.coach-attention-empty.is-error > i { color: #e56a70; }
.coach-attention-empty strong { display: block; color: #e4f4f5; font-size: 12px; font-weight: 650; }
.coach-command-center .coach-attention-empty small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.4; }

/* Non-voters occupy one issue row; player names expand inside a bounded list. */
.coach-attendance-group > summary { list-style: none; }
.coach-attendance-group > summary::-webkit-details-marker { display: none; }
.coach-attendance-group > summary:focus-visible { outline: 2px solid #00efd0; outline-offset: 2px; border-radius: 6px; }
.coach-attendance-group[open] > summary > i:last-child { transform: rotate(180deg); }
.coach-attendance-players { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; margin: 0 0 5px 25px; padding: 0 5px 0 8px; border-left: 1px solid #e86a6f33; }
.coach-attendance-players .coach-attention-row { min-height: 34px; font-size: 10px; }
.coach-attendance-players .coach-attention-row > i:first-child { font-size: 11px; }
.coach-attention-list > .coach-attendance-group:not(:first-child) { border-top: 1px solid #59a7b733; }
.coach-attendance-group + .coach-attention-row::before { content: ''; position: absolute; left: 26px; right: 0; top: 0; height: 1px; background: #59a7b733; }

/* Tighter coach notebook, including the spacing between saved plans. */
.coach-dashboard .coach-panel--plans { padding: 12px; border-radius: 17px; align-self: start; }
.coach-panel--plans .coach-panel-heading > i { font-size: 14px; }
.coach-panel--plans .coach-kicker { font-size: 9px; }
.coach-dashboard .coach-panel--plans h3 { margin: 6px 0; font-size: 16px; line-height: 1.25; }
.coach-dashboard .coach-panel--plans > p { margin: 0 0 6px; font-size: 11px; line-height: 1.4; }
.coach-panel--plans .coach-plan { min-height: 36px; gap: 8px; padding: 6px 0; font-size: 11px; line-height: 1.4; }
.coach-panel--plans .coach-plan > span { overflow-wrap: anywhere; }
.coach-panel--plans .coach-plan > i { flex: 0 0 auto; font-size: 11px; }
.coach-dashboard .coach-panel--plans .coach-action { min-height: 32px; margin-top: 8px; padding: 6px 8px; border-radius: 9px; font-size: 11px; gap: 6px; }
.coach-panel--plans .coach-action + .coach-action { margin-left: 6px; }

/* Compact weekly focus with the existing edit and completion actions. */
.coach-dashboard .coach-panel--focus { padding: 12px; margin-top: 10px; border-radius: 17px; }
.coach-panel--focus .coach-kicker { font-size: 9px; }
.coach-panel--focus .coach-panel-heading > i { font-size: 14px; }
.coach-dashboard .coach-panel--focus h3 { margin: 6px 0; font-size: 16px; line-height: 1.25; }
.coach-dashboard .coach-panel--focus p { font-size: 11px; line-height: 1.4; margin-bottom: 5px; }
.coach-dashboard .coach-panel--focus .coach-context-caption { font-size: 10px; }
.coach-dashboard .coach-panel--focus .coach-focus-title { font-size: 14px; margin-top: 5px; }
.coach-panel--focus .coach-focus-status { padding: 3px 7px; border-radius: 10px; font-size: 10px; }
.coach-panel--focus .coach-actions { gap: 6px; }
.coach-dashboard .coach-panel--focus .coach-action { min-height: 32px; margin-top: 7px; padding: 6px 8px; border-radius: 9px; font-size: 11px; gap: 6px; }
