/* Matchday workspace: compact rows, stable navigation and clear status. */
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: .8rem 1rem; border: 2px solid var(--primary); border-radius: 6px; color: var(--text); background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; color: inherit; font-size: 1.3rem; font-weight: 850; letter-spacing: -.05em; text-decoration: none; }
.wordmark img { flex: 0 0 auto; }
.wordmark span { overflow-wrap: anywhere; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--primary); border-radius: 6px; color: var(--primary-text); background: var(--primary); font-size: .82rem; font-weight: 750; text-decoration: none; }
.button-link:hover { background: var(--primary-hover); }
.coordinator-app { background: var(--ground); }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; align-self: start; height: 100vh; min-height: 600px; padding: 30px 20px 20px; color: #fff; background: #10223e; }
.app-sidebar > .wordmark { gap: .35rem; font-size: 1.22rem; }
.app-sidebar .wordmark img { width: 34px; height: auto; }
.sidebar-league { display: grid; gap: .4rem; margin-block: 2.2rem 1.4rem; }
.sidebar-league .eyebrow { color: #9aaecb; font-size: .55rem; letter-spacing: .12em; margin: 0; }
.sidebar-league > strong { font-size: .83rem; font-weight: 600; overflow-wrap: anywhere; }
.sidebar-league .org-switch { display: grid; color: #aabbd2; font-size: .65rem; margin-top: .4rem; }
.sidebar-league .org-switch select { width: 100%; max-width: 100%; padding: .5rem; font-size: .75rem; background: #1d3352; color: #fff; border-color: #344968; }
.app-nav { display: grid; gap: .35rem; }
.app-nav a { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: .65rem .75rem; border-radius: 6px; color: #b9c8dc; font-size: .82rem; font-weight: 550; text-decoration: none; }
.app-nav svg { flex: 0 0 auto; width: 19px; height: 19px; }
.app-nav a:hover { background: #1b3150; color: #fff; }
.app-nav a[aria-current] { background: #245cff; color: #fff; }
.sidebar-bottom { display: grid; gap: .4rem; margin-top: auto; padding-top: 3rem; }
.sidebar-bottom > a { display: flex; align-items: center; gap: .5rem; min-height: 40px; padding-left: .75rem; color: #aabbd2; font-size: .7rem; font-weight: 550; text-decoration: none; }
.sidebar-bottom > a:hover { color: #fff; }
.sidebar-bottom > div { display: flex; align-items: center; gap: .4rem; margin-top: .8rem; padding-top: 1rem; border-top: 1px solid #2c405c; }
.sidebar-bottom .button-quiet { color: #c3d0e2; font-size: .73rem; padding-inline: .5rem; }
.sidebar-bottom .button-quiet:hover { color: #fff; background: #1d3352; }
.sidebar-bottom .theme-toggle { min-height: 40px; font-size: .7rem; border-radius: 5px; }
.app-main { min-width: 0; width: 100%; padding: 40px clamp(24px, 3vw, 48px) 24px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.workspace-heading h1 { font-size: 2rem; letter-spacing: -.05em; line-height: 1.15; margin-bottom: .5rem; }
.workspace-heading .eyebrow { font-size: .59rem; letter-spacing: .13em; }
.workspace-heading .section-intro { font-size: .85rem; margin-bottom: 0; }
.workspace-heading .actions { flex-shrink: 0; }
.workspace-heading button { font-size: .78rem; min-height: 44px; }
.schedule-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.schedule-counts > div { display: flex; align-items: center; gap: .65rem; padding: 1.2rem clamp(.75rem, 1.4vw, 1.4rem); min-width: 0; }
.schedule-counts > div + div { border-left: 1px solid var(--line); }
.schedule-counts strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.schedule-counts span { max-width: 6rem; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.schedule-counts .count-open strong { color: var(--attention); }
.schedule-counts .count-pending strong { color: var(--pending); }
.schedule-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) 1fr 1fr 1fr 1fr auto; align-items: end; gap: .65rem; margin-bottom: 1.2rem; }
.schedule-filters label { color: var(--muted); font-size: .67rem; font-weight: 600; gap: .35rem; min-width: 0; }
.schedule-filters input, .schedule-filters select { min-height: 42px; font-size: .72rem; padding: .6rem .65rem; background: var(--surface); }
.schedule-filters button { min-height: 42px; padding-inline: .45rem; font-size: .7rem; }
.schedule-result-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .65rem; color: var(--muted); font-size: .65rem; }
.schedule-result-line p { margin: 0; }
.schedule-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 1rem; align-items: start; }
.schedule-board { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: clip; }
.schedule-table-heading { display: grid; grid-template-columns: 86px minmax(0, 1.65fr) minmax(0, 1fr) 115px; gap: .8rem; padding: .9rem 1rem; background: var(--surface-raised); color: var(--muted); font-size: .57rem; letter-spacing: .065em; font-weight: 700; }
.coordinator-app #board { display: block; }
.coordinator-app #board .game-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; transform: none; }
.coordinator-app #board .game-card > summary { display: grid; grid-template-columns: 86px minmax(0, 1.65fr) minmax(0, 1fr) 115px; align-items: center; gap: .8rem; padding: 1rem; border-radius: 0; background: var(--surface); }
.coordinator-app #board .game-card > summary:hover, .coordinator-app #board .game-card[open] > summary { background: var(--surface-raised); }
.coordinator-app #board .game-card > summary::after { display: none; }
.coordinator-app .game-time { display: grid; gap: .25rem; margin: 0; font-size: .74rem; color: var(--text); line-height: 1.5; }
.coordinator-app .game-time b { font-weight: 700; }
.coordinator-app .game-time > span { font-size: .6rem; color: var(--muted); }
.game-match { min-width: 0; }
.coordinator-app .game-title { font-size: .8rem; font-weight: 700; line-height: 1.55; margin: 0; }
.versus { color: var(--muted); font-size: .7rem; font-weight: 450; }
.game-location { display: block; margin-top: .25rem; color: var(--muted); font-size: .65rem; line-height: 1.6; }
.crew-summary { display: grid; gap: .25rem; color: var(--muted); font-size: .67rem; line-height: 1.6; min-width: 0; }
.crew-summary small { font-size: .6rem; }
.game-coverage { display: grid; gap: .45rem; justify-items: start; min-width: 0; }
.game-coverage .status-chip { font-size: .56rem; padding: .25rem .4rem; max-width: 100%; white-space: normal; text-align: left; }
.game-open-label { color: var(--primary); font-size: .62rem; font-weight: 650; }
.coordinator-app #board .details-body { padding: 1rem; border-top: 1px solid var(--line); }
.coordinator-app #board .slot { grid-template-columns: 1fr; gap: .7rem; }
.coordinator-app #board .slot-controls { width: 100%; }
.coordinator-app #board .slot-controls .ref-picker { flex: 1; min-width: min(100%, 200px); }
.coordinator-app #board button, .coordinator-app #board select { font-size: .76rem; }
.coordinator-app .attention-panel { margin: 0; padding: 1rem; border-color: var(--line); }
.coordinator-app .attention-panel > .eyebrow { font-size: .55rem; }
.coordinator-app .attention-panel h2 { font-size: 1rem; margin-bottom: 1rem; }
.coordinator-app .attention-list { gap: .9rem; }
.coordinator-app .attention-row { display: grid; gap: .5rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .9rem 0 0; background: transparent; }
.coordinator-app .attention-row strong { font-size: .75rem; }
.coordinator-app .attention-row p { font-size: .68rem; line-height: 1.65; }
.coordinator-app .attention-row .actions { gap: .4rem; }
.coordinator-app .attention-row button, .coordinator-app .attention-row a { min-height: 36px; font-size: .65rem; padding: .45rem .6rem; border-radius: 5px; }
.coordinator-app .all-caught-up { font-size: .8rem; line-height: 1.7; }
.schedule-empty { padding: 2.5rem 1.5rem; }
.schedule-empty strong { display: block; font-size: 1rem; }
.schedule-empty p { color: var(--muted); font-size: .85rem; }
.coordinator-app .panel { border-radius: 8px; }
.coordinator-app .calendar-panel { margin-top: 1.5rem; }
.coordinator-app [data-coordinator-view="referees"] > .panel, .coordinator-app [data-coordinator-view="availability"] > .panel, .coordinator-app [data-coordinator-view="pay"] > .panel:first-of-type { margin-top: 0; }
.coordinator-app .roster-panel { padding: 1.4rem; }
.coordinator-app .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coordinator-app .roster-card { min-width: 0; }
.coordinator-app .roster-card > p { overflow-wrap: anywhere; }
.coordinator-app .inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coordinator-app .coordinator-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coordinator-app .field-form { grid-template-columns: 1fr 1fr auto; }
.coordinator-app .org-form { grid-template-columns: 1fr auto; }
.coordinator-app .season-form { grid-template-columns: 1.3fr 1fr 1fr auto; }
.workspace-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2.5rem; padding-top: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .63rem; }
.workspace-footer a { color: var(--muted); font-weight: 500; }
.preview-note { margin-bottom: 1.6rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: .7rem; }
.preview-note a { float: right; margin-left: .5rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
[data-coordinator-view][hidden], [hidden] { display: none !important; }
/* Referees keep the same short navigation, with clearer information hierarchy. */
.portal-shell { max-width: 1080px; padding-top: 0; }
.portal-shell .site-header { min-height: 88px; padding: 1rem 0; color: var(--text); background: transparent; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.portal-shell .site-header .eyebrow { color: var(--muted); }
.portal-shell .site-header h1 { font-size: 1.25rem; letter-spacing: -.045em; }
.portal-shell .site-header .brand-mark { width: 42px; }
.portal-shell .brand-lockup { gap: .7rem; }
.portal-shell .theme-toggle { border-color: var(--line); color: var(--muted); background: var(--surface); border-radius: 6px; min-height: 40px; font-size: .65rem; }
.portal-shell .theme-toggle:hover { background: var(--surface-raised); }
.portal-home-intro { margin-block: 2.2rem 1.5rem; }
.portal-home-intro h2 { font-size: 2rem; letter-spacing: -.055em; }
.portal-home-intro .section-intro { font-size: .9rem; }
.portal-home-grid { grid-template-columns: 1.2fr 1fr; }
.portal-home-card { min-height: 160px; padding: 1.4rem; border-radius: 8px; }
.portal-home-card h3 { font-size: 1.3rem; }
.portal-home-card p:not(.eyebrow) { font-size: .87rem; }
.portal-home-offer { min-height: 0; grid-row: span 3; background: var(--surface); color: var(--text); border-color: var(--line); }
.portal-home-offer .eyebrow { padding: .6rem .8rem; margin: -1.4rem -1.4rem 1.4rem; background: var(--primary); color: var(--primary-text); border-radius: 7px 7px 0 0; font-size: .65rem; }
.portal-home-offer p:not(.eyebrow) { color: var(--muted); }
.portal-home-offer .portal-card-action { margin-top: 1rem; color: var(--primary-text); background: var(--primary); border-color: var(--primary); }
.portal-home-contact { grid-column: auto; }
.portal-card-action { min-height: 44px; border-radius: 6px; font-size: .8rem; }
.portal-home-detail { margin: 1.2rem 0 .5rem; }
.portal-home-detail > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: .75rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.portal-home-detail dt { color: var(--muted); font-size: .75rem; }
.portal-home-detail dd { margin: 0; color: var(--text); font-size: .85rem; overflow-wrap: anywhere; }
.portal-home-empty { font-size: .85rem; color: var(--muted); }
.portal-nav { padding-top: .45rem; box-shadow: none; }
.portal-nav a { min-height: 48px; border-radius: 6px; }
.portal-nav a[aria-current] { color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
@media (min-width: 1600px) { .app-main { max-width: 1700px; margin: 0 auto; }.schedule-workspace { grid-template-columns: minmax(0, 1fr) 290px; } }
@media (max-width: 1250px) { .schedule-workspace { grid-template-columns: minmax(0, 1fr); }.coordinator-app .attention-panel { margin-top: .25rem; }.coordinator-app .attention-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }.coordinator-app .attention-row { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 1rem; }.coordinator-app .attention-row:first-child { border-left: 0; padding-left: 0; }.schedule-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }.schedule-filters .schedule-search { grid-column: auto; }.schedule-filters button { justify-self: start; }.schedule-counts > div { flex-direction: column; align-items: flex-start; gap: .5rem; }.schedule-counts span { max-width: none; } }
@media (max-width: 1000px) { .app-layout { grid-template-columns: 180px minmax(0, 1fr); }.app-sidebar { padding-inline: 14px; }.app-sidebar > .wordmark { font-size: 1.08rem; }.app-sidebar .wordmark img { width: 28px; }.app-main { padding: 30px 24px 24px; }.schedule-table-heading, .coordinator-app #board .game-card > summary { grid-template-columns: 76px minmax(0, 1.6fr) 105px; gap: .65rem; }.schedule-table-heading > span:nth-child(3), .coordinator-app #board .crew-summary { display: none; }.coordinator-app .roster-grid { grid-template-columns: 1fr; }.coordinator-app .attention-list { grid-template-columns: 1fr 1fr; }.coordinator-app .attention-row { padding: .7rem 0 0; border-left: 0; border-top: 1px solid var(--line); }.coordinator-app .season-form, .coordinator-app .field-form { grid-template-columns: 1fr 1fr; }.workspace-heading .section-intro { max-width: 23rem; } }
@media (max-width: 760px) { .app-layout { display: block; }.app-sidebar { position: relative; height: auto; min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: .8rem; padding: 16px 20px 0; }.app-sidebar > .wordmark { font-size: 1.17rem; }.sidebar-league { margin: 0; text-align: right; max-width: 180px; }.sidebar-league .eyebrow { display: none; }.sidebar-league > strong { font-size: .7rem; }.sidebar-league .org-switch { max-width: 140px; font-size: .6rem; }.app-nav { grid-column: 1/-1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding-top: .3rem; }.app-nav a { flex-direction: column; gap: .3rem; padding: .7rem .15rem; min-height: 61px; border-radius: 5px 5px 0 0; font-size: .6rem; text-align: center; }.app-nav svg { width: 18px; height: 18px; }.sidebar-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; grid-column: 1/-1; margin: 0; padding: .5rem 0; border-top: 1px solid #2c405c; }.sidebar-bottom > a { min-height: 32px; padding: 0; font-size: .6rem; }.sidebar-bottom > a:first-child { display: none; }.sidebar-bottom > div { margin: 0; padding: 0; border: 0; }.sidebar-bottom .theme-toggle { min-height: 32px; padding: .35rem .5rem; }.sidebar-bottom .button-quiet { min-height: 32px; padding: .35rem .5rem; font-size: .65rem; }.app-main { padding: 25px 20px 20px; }.workspace-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; margin-bottom: 1.4rem; }.workspace-heading h1 { font-size: 1.9rem; }.workspace-heading .section-intro { font-size: .8rem; }.workspace-heading .actions { width: auto; }.workspace-heading .actions button { flex: 0 0 auto; }.schedule-counts { margin-bottom: 1.3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }.schedule-counts > div { padding: 1rem; flex-direction: row; gap: .7rem; }.schedule-counts > div:nth-child(3) { border-left: 0; }.schedule-counts > div:nth-child(n+3) { border-top: 1px solid var(--line); }.schedule-counts strong { font-size: 1.6rem; }.schedule-counts span { font-size: .65rem; }.schedule-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }.schedule-filters .schedule-search { grid-column: 1/-1; }.schedule-filters button { min-height: 44px; }.schedule-table-heading { display: none; }.coordinator-app #board .game-card > summary { grid-template-columns: 68px minmax(0, 1fr); align-items: start; padding: 1rem; gap: .8rem; }.coordinator-app .game-coverage { grid-column: 2; display: flex; align-items: center; gap: .7rem; margin-top: -.25rem; }.coordinator-app .game-title { font-size: .78rem; }.coordinator-app .game-time { font-size: .72rem; }.coordinator-app .game-time > span { font-size: .58rem; }.game-coverage .status-chip { font-size: .6rem; }.game-open-label { margin-left: auto; font-size: .6rem; }.coordinator-app .attention-list { grid-template-columns: 1fr; }.coordinator-app .attention-panel { padding: 1.1rem; }.coordinator-app .attention-row strong { font-size: .8rem; }.coordinator-app .attention-row p { font-size: .75rem; }.coordinator-app .attention-row button, .coordinator-app .attention-row a { min-height: 44px; font-size: .72rem; }.coordinator-app .inline, .coordinator-app .coordinator-form, .coordinator-app .season-form, .coordinator-app .field-form, .coordinator-app .org-form { grid-template-columns: 1fr; }.coordinator-app .panel { padding: 1.1rem; }.preview-note { font-size: .65rem; line-height: 1.6; }.preview-note a { display: block; float: none; margin: .2rem 0 0; }.portal-shell { width: calc(100% - 40px); }.portal-shell .site-header { padding-inline: 0; border-radius: 0; min-height: 76px; }.portal-shell .site-header .brand-mark { width: 34px; }.portal-shell .site-header h1 { font-size: 1.1rem; }.portal-shell .site-header .eyebrow { font-size: .58rem; max-width: 190px; overflow-wrap: anywhere; }.portal-home-intro { margin-block: 1.65rem 1.3rem; }.portal-home-intro h2 { font-size: 1.7rem; }.portal-home-grid { grid-template-columns: 1fr; gap: .8rem; }.portal-home-card, .portal-home-offer { min-height: 0; grid-row: auto; }.portal-home-card { padding: 1.2rem; }.portal-home-offer .eyebrow { margin: -1.2rem -1.2rem 1.2rem; }.portal-home-card h3 { font-size: 1.2rem; }.portal-home-offer .portal-card-action { width: 100%; }.portal-home-detail > div { padding-block: .65rem; }.portal-home-grid .portal-home-contact { padding-block: 1rem; }.portal-home-card p:not(.eyebrow) { font-size: .82rem; } }

@media (max-width: 760px) {
  .schedule-filters label { font-size: .8rem; }
  .schedule-filters input, .schedule-filters select, .coordinator-app input, .coordinator-app select, .coordinator-app textarea, .portal-shell input, .portal-shell select, .portal-shell textarea { font-size: 16px; }
  .schedule-result-line { font-size: .75rem; }
  .coordinator-app .game-time { font-size: .85rem; }
  .coordinator-app .game-time > span { font-size: .7rem; }
  .coordinator-app .game-title { font-size: .9rem; }
  .coordinator-app .game-location { font-size: .75rem; }
  .game-coverage .status-chip, .game-open-label { font-size: .7rem; }
  .schedule-counts span { font-size: .75rem; }
}

/* Readable data labels retain the compact row structure. */
.schedule-filters label, .schedule-counts span, .schedule-table-heading { font-size: .75rem; }
.schedule-filters input, .schedule-filters select { font-size: .8125rem; }
.coordinator-app .game-time { font-size: .8125rem; }
.coordinator-app .game-time > span, .game-location, .crew-summary, .crew-summary small { font-size: .75rem; }
.coordinator-app .game-title { font-size: .875rem; }
.game-coverage .status-chip, .game-open-label { font-size: .75rem; }
.schedule-filter-panel { margin-bottom: 1.2rem; }
.schedule-filter-panel > summary { display: none; }
@media (max-width: 760px) {
  .schedule-filter-panel { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: .7rem .9rem; }
  .schedule-filter-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 32px; cursor: pointer; font-size: .8rem; font-weight: 700; list-style: none; }
  .schedule-filter-panel > summary::after { content: "+"; color: var(--primary); font-size: 1.1rem; }
  .schedule-filter-panel[open] > summary::after { content: "−"; }
  .schedule-filter-panel > summary span { color: var(--muted); font-size: .65rem; font-weight: 450; margin-left: auto; }
  .schedule-filter-panel .schedule-filters { margin-block: 1rem .3rem; }
  .schedule-filters input, .schedule-filters select { font-size: 16px; }
}

.schedule-season-control { color: var(--muted); font-size: .7rem; font-weight: 600; gap: .25rem; }
.schedule-season-control select { max-width: 180px; min-height: 44px; padding: .55rem .7rem; font-size: .8rem; background: var(--surface); }
.workspace-heading .actions { align-items: flex-end; }
@media (max-width: 1000px) and (min-width: 761px) { .workspace-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { .workspace-heading .actions { display: grid; grid-template-columns: 1fr auto; width: 100%; }.schedule-season-control { grid-column: 1/-1; font-size: .75rem; }.schedule-season-control select { width: 100%; max-width: none; font-size: 16px; }.workspace-heading .actions .button-link { width: auto; } }
