/* 3OT Coach (v375, games v377): hub, team page, game page, lineup editor and sub sheet.
   Buttons override the site's base button rule, which uses !important. */
.coach { --c-line: var(--ln-2b3240); --c-soft: var(--bg-1a1f29); }

.coach .card { margin-bottom: 16px; }
.coach-crumbs { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.coach-crumbs a { color: var(--muted); text-decoration: none; }
.coach-crumbs a:hover { color: var(--fg-fff); }
.coach-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.coach-head h2, .coach-title { margin: 0; }
.coach-note { font-size: 13px; margin: 0 0 12px; }
.coach-error { color: var(--fg-ff8a8a); margin-top: 10px; }/* Hero */


.coach-hero { background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,26,.16), transparent 55%), var(--card,var(--bg-151922)); }
.coach-eyebrow { margin: 0 0 6px; font: 800 12px/1 "Rajdhani","Arial Black",sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-ff9a3c); }
.coach-hero h1 { margin: 0 0 8px; font-size: 32px; }
.coach-lead { margin: 0; color: var(--fg-c9d3e2); max-width: 720px; font-size: 16px; line-height: 1.5; }
.coach-cta { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.coach-link { color: var(--fg-c9d3e2); }
.coach-how ol { margin: 0; padding-left: 20px; line-height: 1.7; color: var(--fg-dce4f2); }/* Buttons */


.coach-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px !important; padding: 8px 16px !important; border-radius: 12px !important;
  border: 0 !important; background: linear-gradient(135deg,#ff7a1a,#ffb21a) !important; color: #1a0d00 !important;
  font-weight: 800 !important; font-size: 15px !important; text-decoration: none !important; cursor: pointer; white-space: nowrap;
  box-shadow: none !important;
}
.coach-btn.subtle { background: var(--bg-255-255-255-05) !important; border: 1px solid var(--c-line) !important; color: var(--fg-f5f7fb) !important; }
.coach-btn.danger { background: rgba(255,80,80,.12) !important; border: 1px solid rgba(255,90,90,.45) !important; color: var(--fg-ffb3b3) !important; }
.coach-btn.small { min-height: 34px !important; padding: 6px 12px !important; font-size: 13px !important; border-radius: 10px !important; }
.coach-btn:disabled { opacity: .5; cursor: default; }
.coach-btn[hidden] { display: none !important; }
.coach-icon-btn {
  width: 32px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important; flex: 0 0 auto;
  border-radius: 50% !important; border: 0 !important; background: var(--bg-255-255-255-05) !important; color: var(--fg-8f9bad) !important;
  font-size: 18px !important; line-height: 1 !important; box-shadow: none !important; cursor: pointer;
}
.coach-icon-btn:hover { color: var(--fg-fff) !important; background: var(--bg-255-255-255-12) !important; }/* Forms */


.coach-inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.coach-inline-form input { flex: 1 1 220px; }
.coach-inline-form[hidden] { display: none; }/* Hub */


.coach-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.coach-team-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; border: 1px solid var(--c-line); background: var(--c-soft); color: var(--fg-f5f7fb); text-decoration: none; }
.coach-team-card:hover { border-color: rgba(255,140,26,.6); }
.coach-team-card b { font-size: 17px; }
.coach-team-card small { color: var(--muted); }
.coach-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.coach-tool { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,140,26,.55); }
.coach-tool span { font-size: 22px; }
.coach-tool small { display: block; color: var(--muted); }/* Lineup rows (game page) */


.coach-rotation-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.coach-rotation-row > a { display: flex; flex-direction: column; color: var(--fg-f5f7fb); text-decoration: none; min-width: 0; }
.coach-rotation-row > a:hover b { text-decoration: underline; }
.coach-rotation-row small { color: var(--muted); }
.coach-row-actions { display: flex; gap: 6px; }/* Team page: roster */


.coach-player { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.coach-roster .coach-player:first-child { border-top: 0; }
.coach-player.is-new { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.coach-player input[type=text] { min-height: 40px; }
.coach-num { width: 58px !important; flex: 0 0 58px; text-align: center; }
.coach-name { flex: 1 1 auto; min-width: 0; }
.coach-pos { display: flex; gap: 4px; flex: 0 0 auto; }
.coach-pos label { cursor: pointer; }
.coach-pos input { position: absolute; opacity: 0; pointer-events: none; }
.coach-pos span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--c-line); color: var(--fg-8f9bad); font-weight: 800; font-size: 13px; }
.coach-pos input:checked + span { background: rgba(255,122,26,.18); border-color: #ff8c26; color: var(--fg-fff); }
.coach-pos input:focus-visible + span { outline: 2px solid #ffb21a; }
.coach-player.is-saving .coach-name { border-color: #ffb21a; }
.coach-player.is-saved .coach-name { border-color: #55c08a; }
.coach-bulk { margin-top: 12px; }
.coach-bulk summary { cursor: pointer; color: var(--fg-c9d3e2); font-size: 14px; }
.coach-bulk form { display: grid; gap: 8px; margin-top: 8px; justify-items: start; }
.coach-bulk textarea { width: 100%; }/* Editor: top bar and settings */


.coach-bar { padding-bottom: 0; }
.coach-bar-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.coach-rot-name { flex: 1 1 240px; font-size: 20px !important; font-weight: 800; }
.coach-save-state { font-size: 13px; color: var(--fg-55c08a); }
.coach-save-state.is-dirty { color: var(--fg-ffb21a); }
.coach-tabs { display: flex; gap: 4px; margin-top: 12px; }
.coach-tabs button {
  min-height: 40px !important; padding: 8px 16px !important; border: 0 !important; border-bottom: 3px solid transparent !important;
  border-radius: 0 !important; background: none !important; color: var(--fg-8f9bad) !important; font-weight: 800 !important; box-shadow: none !important;
}
.coach-tabs button.is-active { color: var(--fg-fff) !important; border-bottom-color: #ff8c26 !important; }
.coach-settings { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.coach-settings label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-c9d3e2); }
.coach-settings select { width: auto; }
.coach-custom input { width: 64px !important; }
.coach-custom[hidden], .coach-check[hidden] { display: none !important; }
.coach-check input { width: 18px; height: 18px; }/* Editor: layout. The players panel sits beside the timeline only when there's room for both. */


.coach-editor { container-type: inline-size; }
.coach-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.coach-grid > *, .coach-period { min-width: 0; }
@container (min-width: 900px) { .coach-grid { grid-template-columns: minmax(0, 1fr) 300px; } .coach-players { position: sticky; top: 76px; } }
.coach-tip { margin-top: -4px; }/* Editor: timeline */


.coach-period h3 { margin: 0 0 10px; font-size: 16px; }
.coach-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.coach-timeline { min-width: 560px; padding-left: 34px; }
.coach-ticks { position: relative; height: 18px; margin-bottom: 4px; }
.coach-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.coach-ticks span:first-child { transform: none; }
.coach-row { position: relative; height: 36px; margin-bottom: 6px; }
.coach-slot { position: absolute; left: -34px; top: 0; width: 30px; height: 36px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--fg-8f9bad); }
.coach-track { position: relative; height: 100%; border-radius: 9px; background: var(--c-soft); overflow: hidden; }
.coach-seg {
  position: absolute !important; top: 0; bottom: 0; min-height: 0 !important; height: 100% !important; padding: 0 0 0 6px !important;
  border: 0 !important; border-right: 2px solid var(--ln-13-16-22-9) !important; border-radius: 0 !important;
  background: var(--c) !important; box-shadow: none !important; cursor: pointer; display: flex !important; align-items: center; justify-content: flex-start; overflow: hidden;
}
.coach-seg:hover, .coach-seg:focus-visible { filter: brightness(1.12); outline: none; }
.coach-seg span { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.88); color: #15171c; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 8px); }/* Editor: players panel */


.coach-pl { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.coach-pl:first-child { border-top: 0; }
.coach-pl-main {
  flex: 1 1 auto; display: flex !important; align-items: center; gap: 10px; min-height: 44px !important; padding: 6px 2px !important;
  border: 0 !important; background: none !important; box-shadow: none !important; color: var(--fg-f5f7fb) !important; text-align: left; cursor: pointer; font-size: 15px !important;
}
.coach-pl-main i { width: 6px; height: 24px; border-radius: 3px; flex: 0 0 auto; }
.coach-pl-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-pl-name em { font-style: normal; color: var(--muted); }
.coach-pl-name small { color: var(--muted); font-size: 11px; }
.coach-pl-min { font-variant-numeric: tabular-nums; font-weight: 700; }
.coach-pl-min.is-off { color: var(--fg-ffb21a); }
.coach-pl.is-out .coach-pl-main { opacity: .45; }
.coach-pl.is-out .coach-pl-name { text-decoration: line-through; }
.coach-fillin { display: flex; gap: 8px; margin-top: 12px; }
.coach-fillin input { flex: 1 1 auto; min-width: 0; }/* Editor: stint popover */


.coach-pop { position: fixed; inset: 0; z-index: 9500; background: var(--bg-5-7-11-55); }
.coach-pop[hidden] { display: none; }
.coach-pop-card { position: absolute; width: 300px; max-height: 70vh; overflow-y: auto; padding: 14px; border-radius: 16px; background: var(--bg-151922); border: 1px solid var(--c-line); box-shadow: 0 20px 50px var(--sh-0-0-0-5); }
.coach-pop-head { display: flex; justify-content: space-between; align-items: center; }
.coach-pop-card p { margin: 4px 0 8px; font-size: 13px; }
.coach-pop-list { display: grid; gap: 4px; margin-bottom: 10px; }
.coach-pop-opt {
  display: flex !important; align-items: center; gap: 10px; min-height: 40px !important; padding: 6px 10px !important;
  border: 1px solid transparent !important; border-radius: 10px !important; background: var(--bg-255-255-255-03) !important; color: var(--fg-f5f7fb) !important;
  box-shadow: none !important; text-align: left; cursor: pointer; font-size: 14px !important;
}
.coach-pop-opt:hover { border-color: rgba(255,140,26,.6) !important; }
.coach-pop-opt.is-current { opacity: .55; cursor: default; }
.coach-pop-opt i { width: 6px; height: 20px; border-radius: 3px; }
.coach-pop-opt span { flex: 1 1 auto; }
.coach-pop-opt small { color: var(--muted); font-variant-numeric: tabular-nums; }/* Editor: stint hover tooltip (mouse) and stint details in the popover */


.coach-tip-pop { position: fixed; z-index: 9600; max-width: 260px; padding: 8px 12px; border-radius: 10px; background: var(--bg-0d1016); border: 1px solid var(--c-line, var(--ln-2b3240)); box-shadow: 0 10px 30px var(--sh-0-0-0-45); pointer-events: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--fg-dce4f2); }
.coach-tip-pop[hidden] { display: none; }
.coach-tip-pop b { color: var(--fg-fff); font-size: 14px; }
.coach-tip-pop small { color: var(--fg-8f9bad); font-size: 12px; }
.coach-pop-stint { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 10px; padding: 10px; border-radius: 10px; background: rgba(255,122,26,.1); border: 1px solid rgba(255,140,26,.35); font-size: 13px; }
.coach-pop-stint b { font-size: 14px; color: var(--fg-fff); }
.coach-pop-sub { margin: 10px 0 6px !important; font-size: 12px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-8f9bad); }
.coach-pop-stints { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.coach-pop-stints li { display: grid; grid-template-columns: minmax(0,1fr) auto 44px; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; font-size: 13px; color: var(--fg-c9d3e2); }
.coach-pop-stints li b { font-variant-numeric: tabular-nums; color: var(--fg-f5f7fb); }
.coach-pop-stints li small { text-align: right; color: var(--fg-8f9bad); font-variant-numeric: tabular-nums; }
.coach-pop-stints li.is-current { background: var(--bg-255-255-255-06); }/* Sub sheet */


.coach-sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.coach-sheet-head h2 { margin: 0; }
.coach-sheet-period { margin-top: 18px; }
.coach-sheet-period h3 { margin: 0 0 8px; font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.coach-start { margin: 0 0 8px; line-height: 2; }
.coach-subs { list-style: none; margin: 0; padding: 0; }
.coach-subs li { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.coach-clock { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.coach-in, .coach-out { line-height: 2; font-size: 13px; color: var(--muted); font-weight: 800; }
.coach-in { color: var(--fg-55c08a); }
.coach-out { color: var(--fg-ff8a8a); }
.coach-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid var(--c); font-size: 13px; font-weight: 700; line-height: 1.6; }
.coach-chip { color: var(--fg-f5f7fb); }/* its own rule so the light theme darkens the text (the tint behind it is pale there) */   
.coach-mins { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.coach-mins span { font-variant-numeric: tabular-nums; font-weight: 700; }/* Team page: tabs, games list, season */


.coach-page-tabs { margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.coach-subhead { margin: 16px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coach-new-game { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; margin-bottom: 8px; }
.coach-new-game[hidden] { display: none; }
.coach-new-game label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.coach-new-game .is-wide { grid-column: span 2; }
.coach-new-game > .coach-btn, .coach-form-actions { grid-column: 1 / -1; justify-self: start; }
.coach-form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.coach-games { display: grid; gap: 6px; }
.coach-game-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-soft); color: var(--fg-f5f7fb); text-decoration: none; }
.coach-game-row:hover { border-color: rgba(255,140,26,.6); }
.coach-date { flex: 0 0 46px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.coach-date b { font-size: 20px; }
.coach-date small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.coach-game-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.coach-game-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-game-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-result { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--bg-255-255-255-06); color: var(--muted); white-space: nowrap; }
.coach-result.is-w { background: rgba(85,192,138,.16); color: var(--fg-6fe0a5); }
.coach-result.is-l { background: rgba(255,90,90,.14); color: var(--fg-ff9a9a); }
.coach-result.is-d { background: rgba(255,178,26,.14); color: var(--fg-ffc65a); }
.coach-record { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.coach-record div { padding: 12px; border-radius: 12px; background: var(--c-soft); display: flex; flex-direction: column; }
.coach-record b { font-size: 26px; font-variant-numeric: tabular-nums; }
.coach-record small { color: var(--muted); }
.coach-areas-sum { display: grid; gap: 4px; margin-bottom: 10px; }
.coach-area-sum { display: grid; grid-template-columns: minmax(0,1fr) auto 34px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.coach-area-sum:first-child { border-top: 0; }
.coach-area-sum b { text-align: right; font-variant-numeric: tabular-nums; }
.coach-area-sum.is-low span:first-child { color: var(--fg-ff9a9a); font-weight: 700; }
.coach-stars-static { position: relative; display: inline-block; letter-spacing: 2px; color: #3a4252; font-size: 16px; }
.coach-stars-static::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--v); overflow: hidden; color: var(--fg-ffb21a); }
.coach-seg-toggle { display: inline-flex; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.coach-seg-toggle button { min-height: 32px !important; padding: 4px 12px !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--fg-8f9bad) !important; font-size: 13px !important; font-weight: 700 !important; box-shadow: none !important; }
.coach-seg-toggle button.is-active { background: rgba(255,122,26,.18) !important; color: var(--fg-fff) !important; }/* Tables (season and game stats): first column stays put while the numbers scroll. */


.coach-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.coach-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.coach-table th, .coach-table td { padding: 6px 6px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.coach-table thead th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: .04em; }
.coach-table tbody th, .coach-table tfoot th, .coach-table thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--card, var(--bg-151922)); z-index: 1; }
.coach-table tfoot th, .coach-table tfoot td { font-weight: 800; border-top: 2px solid var(--c-line); }
.coach-season-table .tot, .coach-season-table.show-tot .avg { display: none; }
.coach-season-table.show-tot .tot { display: inline; }
.coach-stats-table tbody th { min-width: 130px; max-width: 190px; }
.coach-table tbody th, .coach-table tfoot th { text-transform: none; letter-spacing: 0; font-size: 14px; }
.coach-st-name { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.coach-st-name small { color: var(--muted); font-weight: 400; }
.coach-stats-table th .coach-icon-btn { width: 24px !important; height: 24px !important; font-size: 15px !important; vertical-align: middle; margin-left: 4px; }
.coach-stats-table input { width: 54px !important; min-height: 38px; padding: 4px !important; text-align: center; -moz-appearance: textfield; }
.coach-stats-table input::-webkit-outer-spin-button, .coach-stats-table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.coach-stats-table input::placeholder { color: var(--fg-6b7587); }
.coach-stats-table tr.is-out { opacity: .5; }/* Game page */


.coach-game-meta { margin: 4px 0 0; }
.coach-game { container-type: inline-size; }
.coach-two { display: grid; grid-template-columns: minmax(0,1fr); gap: 0 16px; }
@container (min-width: 760px) { .coach-two { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; } }
.coach-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.coach-score label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.coach-score label span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-score input { font-size: 34px !important; font-weight: 800; text-align: center; min-height: 64px; font-variant-numeric: tabular-nums; }
.coach-score-dash { font-size: 28px; color: var(--muted); padding-bottom: 14px; }
.coach-score-card .coach-note { margin: 10px 0 0; }
.coach-link-btn { background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; color: var(--fg-ffb21a) !important; font-weight: 700 !important; text-decoration: underline !important; cursor: pointer; font-size: inherit !important; }
.coach-rotation-row.is-used > a b { color: var(--fg-fff); }
.coach-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(85,192,138,.16); color: var(--fg-6fe0a5); font-size: 11px; font-weight: 800; vertical-align: middle; }
.coach-new-lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; margin-top: 12px; }
.coach-new-lineup label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.coach-copy-lineup { display: flex; gap: 8px; margin-top: 10px; }
.coach-copy-lineup select { flex: 1 1 auto; min-width: 0; }
.coach-cats, .coach-areas-edit { padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--c-soft); }
.coach-cats[hidden], .coach-areas-edit[hidden] { display: none; }
.coach-mini-head { margin: 12px 0 6px; font-size: 13px; color: var(--fg-c9d3e2); font-weight: 700; }
.coach-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-chip-edit { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border-radius: 999px; background: rgba(255,122,26,.16); border: 1px solid rgba(255,140,26,.55); font-size: 13px; font-weight: 700; }
.coach-chip-edit button { width: 24px !important; height: 24px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: none !important; color: var(--fg-ffcf9a) !important; box-shadow: none !important; font-size: 16px !important; line-height: 1 !important; cursor: pointer; }
.coach-chip-add { min-height: 32px !important; padding: 4px 12px !important; border-radius: 999px !important; border: 1px dashed var(--c-line) !important; background: none !important; color: var(--fg-c9d3e2) !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer; }
.coach-chip-add:hover { border-color: #ff8c26 !important; color: var(--fg-fff) !important; }
.coach-ratings { display: grid; }
.coach-rating { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.coach-rating:first-child { border-top: 0; }
.coach-rating-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.coach-rating-l small { font-size: 12px; font-weight: 400; color: var(--muted); min-height: 14px; }
.coach-stars { flex: 0 0 auto; }
.coach-stars { display: inline-flex; }
.coach-rating.is-set .coach-rating-l small { color: var(--fg-ffc65a); }
.coach-star { width: 34px !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: #3a4252 !important; font-size: 26px !important; line-height: 1 !important; cursor: pointer; transition: transform .1s; }
.coach-star.is-on { color: var(--fg-ffb21a) !important; }
.coach-star:hover { transform: scale(1.12); }
.coach-standout select { width: 100%; }
.coach-standout-who { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg-c9d3e2); margin-bottom: 12px; }
.coach-standout .coach-chip-add.is-on { background: rgba(255,178,26,.18) !important; border: 1px solid #ffb21a !important; color: var(--fg-fff) !important; }
.coach-standout textarea { width: 100%; margin-top: 12px; resize: vertical; }
.coach-standout[data-empty] .coach-standout-why { opacity: .45; pointer-events: none; }
.coach-standouts-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-standouts-sum span { padding: 4px 12px; border-radius: 999px; background: rgba(255,178,26,.12); border: 1px solid rgba(255,178,26,.4); font-size: 14px; font-weight: 700; }
.coach-standouts-sum span b { color: var(--fg-ffc65a); margin-left: 4px; }
.coach-standouts-none { margin-top: 10px; font-size: 14px; color: var(--fg-c9d3e2); }
.coach-notes label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--fg-c9d3e2); }
.coach-notes textarea { width: 100%; font-weight: 400; resize: vertical; }
.coach-meetings { display: grid; gap: 8px; }
.coach-meeting { display: block; padding: 12px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-soft); color: var(--fg-f5f7fb); text-decoration: none; }
.coach-meeting:hover { border-color: rgba(255,140,26,.6); }
.coach-meeting-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.coach-meeting-rt { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--fg-c9d3e2); }
.coach-meeting-rt span { color: var(--fg-c9d3e2); }
.coach-meeting-rt .is-low { color: var(--fg-ff9a9a); }
.coach-meeting-rt .is-high { color: var(--fg-6fe0a5); }
.coach-meeting p { margin: 6px 0 0; color: var(--fg-c9d3e2); font-size: 14px; }

@media (max-width: 900px) {
  .coach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .coach-hero h1 { font-size: 26px; }
  .coach-player { flex-wrap: wrap; }
  .coach-name { flex: 1 1 calc(100% - 110px); }
  .coach-pos { margin-left: 66px; }
  .coach-subs li { grid-template-columns: 54px 1fr; }
  .coach-subs .coach-out { grid-column: 2; }
  .coach-new-game .is-wide { grid-column: 1 / -1; }
  .coach-star { width: 32px !important; }
  .coach-pop-card { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; }
}/* Printing the sub sheet: just the sheet, black on white. */


@media print {
  body * { visibility: hidden !important; }
  .coach-sheet, .coach-sheet * { visibility: visible !important; }
  .coach-sheet { position: absolute; left: 0; top: 0; width: 100%; background: #fff !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
  .coach-sheet [data-print] { display: none !important; }
  .coach-sheet .muted, .coach-in, .coach-out { color: #333 !important; }
  .coach-chip { background: none !important; color: #000 !important; border-color: var(--ln-000) !important; }
  .coach-subs li { break-inside: avoid; border-color: #bbb; }
}/* Editor: players removed during the game (v386) */


.coach-timeline { position: relative; }
.coach-events { position: absolute; left: 34px; right: 0; top: 18px; bottom: calc(var(--lvls, 1) * 22px); pointer-events: none; z-index: 2; }
.coach-event { position: absolute; top: -2px; bottom: calc(var(--lvl, 0) * -22px); width: 0; border-left: 2px dashed #ff5a5a; }
.coach-event b { position: absolute; bottom: -20px; left: 4px; padding: 1px 6px; border-radius: 6px; background: #ff5a5a; color: var(--fg-fff); font-size: 11px; font-weight: 800; white-space: nowrap; }
.coach-event.is-end b { left: auto; right: 4px; }
.coach-timeline.has-events { padding-bottom: calc(var(--lvls) * 22px); }
.coach-why { color: var(--fg-ff9a9a) !important; font-size: 11px; font-weight: 700; }
.coach-pl.is-removed { padding-right: 2px; }
.coach-pl.is-removed .coach-pl-main { cursor: default; opacity: .75; }
.coach-pl.is-removed .coach-pl-name { white-space: normal; line-height: 1.25; }
.coach-pl.is-removed .coach-why { display: block; }
.coach-pop-remove { width: 100%; margin: 4px 0 2px; }
.coach-pop-removed { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,80,80,.1); border: 1px solid rgba(255,90,90,.4); color: var(--fg-ffb3b3); font-weight: 700; }
.coach-pop-card.coach-remove { left: 50%; top: 10vh; width: 380px; transform: translateX(-50%); }
.coach-remove-note { margin: 2px 0 4px !important; }
.coach-remove .coach-chip-add { border-style: solid !important; background: var(--bg-255-255-255-04) !important; color: var(--fg-f5f7fb) !important; }
.coach-remove .coach-chip-add.is-on { background: rgba(255,90,90,.16) !important; border: 1px solid #ff5a5a !important; color: var(--fg-fff) !important; }
.coach-remove-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.coach-remove-when select { flex: 1 1 120px; min-width: 0; }
.coach-remove-when input { width: 64px !important; text-align: center; }
.coach-remove-when small { flex: 1 0 100%; }
.coach-remove-error { margin: 8px 0 0 !important; color: var(--fg-ff9a9a); font-weight: 700; }
.coach-remove-error[hidden] { display: none; }
.coach-remove-go { width: 100%; margin-top: 12px; }
@media (max-width: 600px) {
  .coach-pop-card.coach-remove { transform: none; width: auto; max-height: 85vh; }
}
.coach-event.is-back { border-left-color: #35d66f; }
.coach-event.is-back b { background: #1f9d55; }
.coach-back-note { color: var(--fg-6fe0a5) !important; font-size: 11px; font-weight: 700; }
.coach-pl.is-back .coach-pl-name { white-space: normal; line-height: 1.25; }
.coach-pl.is-back .coach-back-note { display: block; }
.coach-remove-who small { margin-left: 4px; color: var(--fg-ff9a9a); font-size: 11px; font-weight: 700; }
.coach-remove.is-back .coach-chip-add.is-on { background: rgba(53,214,111,.16) !important; border-color: #35d66f !important; }
.coach-remove.is-back .coach-remove-go { background: linear-gradient(135deg,#1f9d55,#35d66f) !important; color: var(--fg-fff) !important; border: 0 !important; }/* Editor: game day (v388). In-game tools only show once the game has started. */


.coach-gameday { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.coach-gameday [hidden] { display: none !important; }
.coach-start { background: rgba(53,214,111,.12) !important; border: 1px solid rgba(53,214,111,.5) !important; color: var(--fg-6fe0a5) !important; }
.coach-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,71,95,.12); color: var(--fg-ff6b7f); font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.coach-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff475f; animation: coachLive 1.6s ease-in-out infinite; }
@keyframes coachLive { 50% { opacity: .35; } }
.coach-gameday .coach-link-btn { font-size: 13px !important; }
@media (max-width: 700px) {
  .coach-gameday { margin-left: 0; width: 100%; }
}/* Team page: plays list (v389) */


.coach-new-play { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.coach-new-play input { flex: 1 1 240px; min-width: 0; }
.coach-plays { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.coach-play-card { display: grid; gap: 8px; padding: 8px; border-radius: 14px; background: var(--bg-11151d); border: 1px solid var(--ln-252c38); color: var(--fg-f5f7fb); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.coach-play-card:hover { border-color: #ff7a1a; transform: translateY(-1px); }
.coach-play-thumb { width: 100%; height: auto; aspect-ratio: 680 / 640; border-radius: 10px; }
.coach-play-card span { display: grid; gap: 2px; padding: 0 4px 4px; min-width: 0; }
.coach-play-card b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coach-play-card small { color: var(--fg-8f9bad); font-size: 13px; }
@media (max-width: 560px) {
  .coach-plays { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}/* Team page: start a play blank or from the library (v391) */


.coach-new-play-wrap { margin-bottom: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--ln-252c38); }
.coach-new-play-wrap .coach-seg-toggle button { min-height: 40px !important; padding: 6px 16px !important; font-size: 14px !important; }
.coach-new-play .coach-btn { flex: 0 0 auto; }
.coach-lib-head { margin: 14px 0 8px; color: var(--fg-8f9bad); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.coach-library .coach-play-card { display: grid !important; align-content: start; width: 100%; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 8px !important; border: 1px solid var(--ln-252c38) !important; border-radius: 14px !important; background: var(--bg-11151d) !important; color: var(--fg-f5f7fb) !important; font: inherit; text-align: left; cursor: pointer; box-shadow: none !important; }
.coach-library .coach-play-card:hover { border-color: #ff7a1a !important; }
.coach-library .coach-play-card:disabled { opacity: .6; cursor: progress; }
.coach-library .coach-play-card small { line-height: 1.35; }/* Game page: live stats (v393) */


.coach-live-card .coach-head { align-items: flex-start; }
.coach-live-card .coach-head h2 { margin-bottom: 2px; }
.coach-live-card .coach-head .coach-btn { flex: 0 0 auto; }
.coach-live-share { margin-top: 6px; }
.coach-live-link { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.coach-live-link input { flex: 1 1 260px; min-width: 0; font-size: 14px; }
