:root { color-scheme: dark; --bg: #080e13; --panel: #101922; --line: #253441; --text: #e3edf5; --muted: #8298ac; --green: #3cdda6; --orange: #f8a06b; --purple: #b493ff; --blue: #4ebcff; --gold: #f1cf75; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 8% -5%, #12352c88, transparent 42%), var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a, select { touch-action: manipulation; }
button, select { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
:is(a, button, select, input):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button { color: var(--text); }
.site-header { width: min(calc(100% - 64px), 1240px); min-height: 94px; margin: auto; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-icon { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid #55cc9d; border-radius: 10px; background: #217d61; color: #e8fff5; transform: rotate(-8deg); font-size: 36px; line-height: 1; }
.brand strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.account-controls { display: flex; align-items: center; gap: 17px; }
.account-name { color: #bacad7; font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.paper-badge { flex: none; padding: 5px 10px; border: 1px solid #67572f; border-radius: 20px; background: #292411; color: var(--gold); font-size: 9px; letter-spacing: .05em; }
.quiet-button { min-height: 38px; padding: 6px 12px; border: 1px solid #2e414f; border-radius: 7px; background: #111d26; color: #adbfce; font-size: 12px; }
.quiet-button:hover { border-color: #5f867b; color: #e5f7ed; }
.hub-view { width: min(calc(100% - 64px), 1240px); margin: auto; padding: 46px 0 24px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { color: #81b7a6; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
h1 { margin: 7px 0 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 620; letter-spacing: -.045em; line-height: 1.2; }
.intro { margin: 0; color: #829bac; font-size: 13px; line-height: 1.7; }
.sport-control { flex: none; min-width: 190px; }
.sport-control > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.sport-control select { width: 100%; min-height: 43px; padding: 8px 34px 8px 13px; border: 1px solid #344957; border-radius: 8px; background: #15222c; color: #d8e5ef; font-size: 13px; }
.calendar-panel { overflow: hidden; border: 1px solid #2a3f4b; border-radius: 13px; background: linear-gradient(120deg, #15242b, #101b24 65%); }
.calendar-toolbar { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 17px; border-bottom: 1px solid #273b46; }
.date-navigation { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 34px; height: 36px; padding: 0; border: 1px solid #314753; border-radius: 7px; background: #101c25; color: #a8c2d2; font-size: 24px; line-height: 1; }
.icon-button:hover { color: var(--green); border-color: #4f8074; }
.date-control input { width: 169px; height: 37px; padding: 5px 10px; border: 0; border-radius: 7px; background: #0d1821; color: #dfedf5; font-size: 13px; }
.calendar-note { margin-left: auto; color: #748d9e; font-size: 11px; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.day-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 83px; gap: 3px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #8aa2b5; }
.day-button:hover { background: #1a2d37; border-color: #2c4652; }
.day-button .day-name { font-size: 10px; letter-spacing: .075em; text-transform: uppercase; }
.day-button .day-number { font-size: 25px; font-weight: 500; line-height: 1.3; }
.day-button.today::after { content: ""; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: #7fa499; }
.day-button.selected { background: #133f33; color: #a0f9cf; border-color: #377b61; box-shadow: inset 0 1px 0 #6bb49022; }
.day-button.selected.today::after { background: var(--green); }
.games-section { margin-top: 34px; }
.games-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 21px; font-weight: 550; letter-spacing: -.025em; }
.games-summary { margin: 5px 0 0; color: var(--muted); font-size: 12px; min-height: 18px; }
.refresh-button { display: flex; align-items: center; gap: 7px; padding: 5px 0 5px 10px; min-height: 36px; border: 0; background: transparent; color: #8ba8b8; font-size: 11px; }
.refresh-button > span { font-size: 20px; }
.refresh-button:hover { color: #c2eee0; }
.notice { padding: 12px 15px; margin-bottom: 20px; border: 1px solid #435448; border-left: 3px solid var(--gold); border-radius: 7px; background: #24281e; color: #d6d6b5; font-size: 12px; line-height: 1.65; }
.notice.error { border-color: #634937; border-left-color: var(--orange); background: #2b211c; color: #f2c6aa; }
.game-group + .game-group { margin-top: 28px; }
.group-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #a9bfcc; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.group-heading::after { content: ""; flex: 1; height: 1px; margin-left: 3px; background: #20323c; }
.group-count { color: #5f7c8f; font-size: 10px; font-weight: 400; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 15px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid #2a3d49; border-radius: 11px; background: linear-gradient(135deg, #14222b, #0e1821); transition: border-color .16s ease; }
.game-card:hover { border-color: #486456; }
.game-card.live { border-color: #386453; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 17px 8px; }
.start-time { color: #9eb4c3; font-size: 11px; font-variant-numeric: tabular-nums; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #243440; color: #93aebf; font-size: 9px; font-weight: 650; letter-spacing: .035em; white-space: nowrap; }
.status-badge.live { background: #174432; color: #79e3b7; }
.status-badge.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.status-badge.final { background: #27343c; color: #b7c8d4; }
.status-badge.alert { background: #3a2c1d; color: #e2b37e; }
.teams { display: grid; gap: 12px; padding: 16px 17px 18px; }
.team-row { display: flex; align-items: center; gap: 11px; min-height: 31px; }
.team-mark { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border: 1px solid #345260; border-radius: 50%; background: #1a3441; color: #9cc9d9; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.team-row.home .team-mark { border-color: #4a4b55; background: #2a2c36; color: #beb9cd; }
.team-name { min-width: 0; flex: 1; color: #dce8f1; font-size: 15px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.team-location { color: #678395; font-size: 9px; }
.card-details { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 0 17px 16px; color: #7c95a6; font-size: 10px; min-height: 30px; }
.session-ready { color: #72bfa0; }
.capture-label { color: #a8a0ce; }
.card-actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 68px; padding: 13px 16px; border-top: 1px solid #253843; background: #0d171f55; }
.tracker-link, .scorer-link { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 37px; padding: 7px 12px; border: 1px solid #396355; border-radius: 6px; background: #173c2f; color: #b0edcf; font-size: 11px; font-weight: 600; }
.tracker-link { flex: 1; justify-content: space-between; }
.tracker-link:hover { background: #1c4b3a; border-color: #609d7e; }
.scorer-link { border-color: #354d60; background: #162936; color: #a4c7df; }
.scorer-link:hover { border-color: #698fa8; }
.unavailable { display: flex; flex-wrap: wrap; gap: 3px 7px; align-items: center; color: #8198a8; font-size: 11px; line-height: 1.5; }
.unavailable strong { font-weight: 500; color: #a1b2bf; }
.unavailable small { font-size: 10px; }
.empty-state { text-align: center; margin: 12px 0; padding: 58px 20px 66px; border: 1px dashed #2a3e48; border-radius: 11px; background: #101c2466; }
.empty-icon { display: block; color: #486a72; font-size: 42px; }
.empty-state h3 { margin: 8px 0; font-size: 18px; font-weight: 500; }
.empty-state p { margin: 0; color: #7e98a9; font-size: 12px; }
.hub-footer { display: flex; justify-content: space-between; gap: 18px; padding: 30px 0 6px; color: #617d90; font-size: 10px; }
.boot-view { padding: 95px 24px; text-align: center; color: #8ba4b5; }
.loading-mark { display: inline-block; width: 24px; height: 24px; border: 2px solid #264939; border-top-color: #72c99d; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-view { width: min(calc(100% - 48px), 398px); margin: 75px auto; }
.login-view h1 { font-size: 32px; margin-top: 12px; }
.login-view .intro { margin-top: 12px; }
.login-form { display: flex; flex-direction: column; margin-top: 27px; }
.login-form label { margin: 17px 0 7px; color: #adbfce; font-size: 12px; }
.login-form input { min-height: 47px; width: 100%; padding: 10px 12px; border: 1px solid #324b59; border-radius: 7px; background: #101d27; color: #e4eff7; font-size: 16px; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; padding: 10px 15px; border: 1px solid #478565; border-radius: 7px; background: #1a503a; color: #d4f8e4; font-size: 13px; font-weight: 600; }
.login-form .primary-button { margin-top: 25px; }
.primary-button:hover:not(:disabled) { background: #226245; }
.secondary-button { display: inline-flex; background: #172630; border-color: #354e5c; }
.form-error { margin: 15px 0 0; color: #ffb3a1; font-size: 12px; line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .site-header, .hub-view { width: calc(100% - 36px); }
  .site-header { min-height: 79px; gap: 14px; flex-wrap: wrap; padding: 16px 0; }
  .brand-icon { width: 35px; height: 35px; font-size: 30px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 8px; }
  .account-name { display: none; }
  .paper-badge { display: none; }
  .hub-view { padding-top: 31px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 23px; margin-bottom: 22px; }
  .sport-control { display: flex; align-items: center; gap: 12px; }
  .sport-control > span { margin: 0; }
  .sport-control select { flex: 1; }
  .calendar-toolbar { padding: 11px; gap: 8px; justify-content: space-between; }
  .calendar-note { display: none; }
  .week-strip { gap: 3px; padding: 7px; }
  .day-button { min-height: 69px; border-radius: 7px; }
  .day-button .day-name { font-size: 8px; }
  .day-button .day-number { font-size: 21px; }
  .games-section { margin-top: 29px; }
  .games-heading { margin-bottom: 19px; }
  h2 { font-size: 18px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 12px; }
  .hub-footer { flex-direction: column; gap: 7px; }
}
@media (max-width: 370px) {
  .site-header, .hub-view { width: calc(100% - 24px); }
  .brand small { letter-spacing: .06em; }
  .date-navigation { gap: 4px; }
  .date-control input { width: 141px; padding: 5px; font-size: 12px; }
  .calendar-toolbar .quiet-button { padding: 5px 9px; }
  .icon-button { width: 30px; }
  .game-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.scorer-home-view { width: min(calc(100% - 36px), 540px); margin: 48px auto; }
.scorer-home-view h1 { font-size: 32px; }
.scorer-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px 0 13px; color: #8199ab; font-size: 12px; }
.scorer-game-list { display: grid; gap: 13px; }
.assigned-scoring-card { padding: 19px; border: 1px solid #2c4651; border-radius: 10px; background: linear-gradient(135deg, #172831, #101c25); }
.assigned-scoring-card h2 { font-size: 17px; line-height: 1.5; }
.assigned-game-meta { margin: 7px 0 15px; color: #859fae; font-size: 11px; }
.assigned-scoring-card .scorer-link { width: 100%; min-height: 44px; border-color: #3f755d; background: #194a36; color: #beedd3; font-size: 13px; }
.assigned-unavailable { margin: 12px 0 0; color: #8296a7; font-size: 12px; }
.scorer-empty { padding: 30px 20px; border: 1px dashed #2b4551; border-radius: 10px; color: #8ba6b6; font-size: 13px; line-height: 1.7; text-align: center; }
.users-dialog { width: min(calc(100% - 34px), 1000px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #385361; border-radius: 13px; background: #0e1821; color: var(--text); box-shadow: 0 35px 100px #0009; }
.users-dialog::backdrop { background: #03080dc9; backdrop-filter: blur(4px); }
.users-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 25px; border-bottom: 1px solid #263f4c; }
.users-header h2 { margin-top: 5px; font-size: 22px; }
.users-message { margin: 15px 20px 0; }
.users-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.users-sidebar { padding: 20px 15px; border-right: 1px solid #263f4c; background: #101e27; }
.users-sidebar > .primary-button { width: 100%; min-height: 40px; font-size: 12px; }
.users-list { display: grid; align-content: start; gap: 6px; margin-top: 15px; max-height: 560px; overflow: auto; }
.user-list-button { display: block; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #c9d9e3; text-align: left; }
.user-list-button:hover, .user-list-button.selected { border-color: #355b58; background: #193731; }
.user-list-button strong { display: block; overflow-wrap: anywhere; font-size: 13px; font-weight: 550; }
.user-list-button small { display: block; margin-top: 3px; color: #7f9aa9; font-size: 10px; }
.user-editor { padding: 24px; min-width: 0; }
.user-editor h3 { margin: 0 0 20px; font-size: 19px; font-weight: 550; }
.editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-fields label, .editor-label, .manual-assignment label { display: block; color: #a8bdcc; font-size: 12px; }
.editor-fields input, .editor-fields select, .editor-label input, .manual-assignment textarea { display: block; width: 100%; min-height: 43px; margin-top: 6px; padding: 8px 10px; border: 1px solid #34505f; border-radius: 6px; background: #0c1821; color: #dbe7ef; font-size: 14px; }
.editor-fields input:read-only { color: #829dad; background: #111f28; }
.field-help { color: #728e9f; font-size: 11px; line-height: 1.6; margin: 7px 0 17px; }
.assignment-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid #2a424e; }
.assignment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assignment-heading h4 { margin: 0; font-size: 14px; font-weight: 550; }
.assignment-heading span { display: block; color: #7f9baa; font-size: 10px; margin-top: 4px; }
.assignment-heading input { width: 160px; min-height: 36px; padding: 6px 8px; border: 1px solid #36515f; border-radius: 6px; background: #111f29; color: #bccedb; font-size: 12px; }
.assignment-game-list { max-height: 235px; overflow: auto; border: 1px solid #2d4653; border-radius: 7px; }
.assignment-choice { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border-bottom: 1px solid #213947; cursor: pointer; }
.assignment-choice:last-child { border-bottom: 0; }
.assignment-choice:hover { background: #172c33; }
.assignment-choice input { margin: 5px 0 0; accent-color: #70b995; }
.assignment-choice strong { display: block; color: #bfd0dc; font-size: 12px; font-weight: 500; }
.assignment-choice small { display: block; margin-top: 3px; color: #7e9cac; font-size: 10px; }
.assignment-empty { margin: 0; padding: 18px 12px; color: #7f9cab; font-size: 11px; line-height: 1.6; }
.selected-assignments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.assignment-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 8px; border: 1px solid #386452; border-radius: 5px; background: #1c3a2e; color: #a4d0b6; font-size: 10px; overflow-wrap: anywhere; }
.manual-assignment { margin-top: 16px; color: #7e9aaa; font-size: 11px; }
.manual-assignment summary { cursor: pointer; margin-bottom: 10px; }
.manual-assignment textarea { min-height: 80px; font-size: 12px; resize: vertical; }
.disable-user-label { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #c49f8e; font-size: 12px; }
.disable-user-label input { accent-color: #c6976b; }
.editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #2a424e; }
.editor-actions > span { color: #718c9d; font-size: 10px; }
.editor-actions .primary-button { min-height: 40px; flex: none; font-size: 12px; }
.save-status { padding: 9px 12px; margin: -4px 0 18px; border: 1px solid #355f49; border-radius: 6px; background: #183b2a; color: #a7d9b9; font-size: 12px; }
@media (max-width: 760px) { .users-layout { grid-template-columns: 1fr; }.users-sidebar { border-right: 0; border-bottom: 1px solid #263f4c; padding: 15px; }.users-list { display: flex; overflow-x: auto; max-height: 110px; gap: 8px; }.user-list-button { flex: 0 0 160px; }.users-header { padding: 19px; }.users-header h2 { font-size: 19px; }.user-editor { padding: 19px; }.editor-fields { grid-template-columns: 1fr; gap: 13px; }.editor-fields input, .editor-fields select, .editor-label input { font-size: 16px; }.users-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }.account-controls { gap: 6px; }.account-controls .quiet-button { padding: 5px 8px; font-size: 11px; } }
