@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Geist:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #edf4ef;
  --muted: #a1b2ab;
  --line: #293833;
  --paper: #141d1b;
  --bg: #0b1110;
  --field: #101815;
  --lime: #c9f677;
  --green: #a0dfa8;
  font: 14px 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #c9f677; outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand, .metric strong { font-family: Geist, 'DM Sans', system-ui, sans-serif; }
a { color: inherit; }
svg { flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workspace { display: grid; grid-template-columns: 227px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: #0f1815;
  color: #fff;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 27px 17px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.7px; line-height: 1.12; color: #fff; }
.sidebar > .brand { margin: 2px 8px 43px; }
.brand-second { color: var(--lime); }
.brand small { display: block; color: #a5b6aa; font-size: 8px; font-weight: 700; letter-spacing: 1.65px; margin-top: 6px; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  place-content: center;
  gap: 3px;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--lime);
}
.brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: #27462b; }
.brand-mark i:nth-child(2) { background: #6b963f; }
.nav-label { color: #a7baad; font-size: 10px; letter-spacing: 1.25px; font-weight: 700; margin: 0 10px 9px; }
.section-label { margin-top: 26px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bfcfc5;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { background: #1b2a23; color: #fff; }
.nav-item.selected { background: #213322; border-color: #344a32; color: var(--lime); box-shadow: inset 2px 0 var(--lime); }
.sidebar-footer { display: flex; gap: 5px; justify-content: space-between; align-items: center; border-top: 1px solid #304138; margin-top: auto; padding: 15px 1px 0; }
.account { display: flex; align-items: center; gap: 9px; min-width: 0; }
.account .avatar { width: 33px; height: 33px; border-radius: 9px; font-size: 11px; }
.account strong, .account small { display: block; overflow-wrap: anywhere; }
.account strong { font-size: 12px; }
.account small { font-size: 11px; color: #b2c2b8; margin-top: 2px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; color: inherit; background: transparent; border: 0; border-radius: 7px; flex: 0 0 auto; }
.icon-btn:hover { background: #87998b26; }
.icon-btn svg { width: 17px; height: 17px; }
.sidebar .icon-btn { color: #b3c4b9; }

.topbar { background: var(--paper); min-height: 66px; padding: 10px clamp(19px, 3vw, 42px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.breadcrumb, .top-actions, .heading-actions, .action-row { display: flex; align-items: center; gap: 10px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb svg { width: 12px; height: 12px; color: #84948a; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #1b2722; border: 1px solid var(--line); color: #b6c8bb; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.demo-tag i, .pill i { height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.btn { min-height: 36px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: none; font-size: 12px; line-height: 1.2; }
.btn svg { width: 15px; height: 15px; }
.primary { background: var(--lime); color: #142019; }
.primary:hover:not(:disabled) { background: #e0ffa8; }
.primary svg { color: #345227; }
.secondary { background: var(--paper); border-color: #344740; }
.secondary:hover:not(:disabled) { background: #22332b; }
.content { width: min(100%, 1640px); margin: 0 auto; padding: 27px clamp(19px, 3vw, 42px) 50px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
h1 { font-weight: 800; font-size: clamp(25px, 3.1vw, 34px); letter-spacing: -1.25px; line-height: 1.15; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.heading-actions { min-width: 0; }
.session-select { position: relative; background: var(--paper); border: 1px solid #344740; border-radius: 8px; display: flex; align-items: center; }
.session-select svg { pointer-events: none; position: absolute; width: 15px; height: 15px; left: 10px; color: #a0b9a7; }
.session-select svg:last-child { left: auto; right: 9px; }
.session-select select { min-height: 37px; font-size: 12px; font-weight: 700; color: var(--ink); background: transparent; appearance: none; border: 0; border-radius: 7px; padding: 6px 29px 6px 32px; width: clamp(140px, 18vw, 225px); text-overflow: ellipsis; }

.session-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  border-radius: 14px;
  padding: 23px 25px;
  min-height: 162px;
  background: radial-gradient(ellipse at 93% 25%, #354823 0%, #1b2a1c 47%, #16221c 80%);
  border: 1px solid #3b5235;
}
.session-overview { min-width: 0; }
.session-banner h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -1.3px; font-weight: 800; line-height: 1.08; margin: 9px 0 10px; overflow-wrap: anywhere; }
.session-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 12px; font-weight: 700; color: #bbd2b9; }
.session-meta span { display: flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.session-meta svg { width: 14px; height: 14px; }
.banner-btn { background: #1b2b20; color: #e0efd9; border-color: #52684a; }
.banner-btn:hover { background: #2d442d; }
.court-art { position: absolute; pointer-events: none; right: -11px; top: -75px; z-index: -1; width: min(48%, 470px); height: 262px; transform: rotate(-16deg); border-radius: 12px; border: 1px solid #b8f17930; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #c9f6770a 0 2px, transparent 2px 6px); }
.court-art > div { width: 84%; height: 73%; border: 2px solid #b8f17962; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.court-art > div::before { content: ''; width: 100%; top: 50%; border-top: 2px solid #b8f17962; position: absolute; }
.court-art i:first-child { border-right: 2px solid #b8f17962; }
.court-art i::before { content: ''; height: 100%; border-left: 2px solid #b8f17962; position: absolute; margin-left: 36%; }
.court-art i:last-child::before { margin-left: 13%; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; color: #b8c7bf; background: #24322c; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.pill.playing { background: #223926; color: #b0e6a1; }
.pill.live { background: #293e25; color: #dcffa8; letter-spacing: .85px; padding: 5px 9px; }
.pill.live i { color: #c4f174; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 23px; }
.owner-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric, .panel, .court-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px #10251a05; }
.metric { min-height: 75px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.metric-icon { width: 37px; height: 37px; display: inline-grid; place-items: center; color: #ace1a0; background: #22352b; border-radius: 9px; flex: 0 0 auto; }
.metric-icon svg { width: 18px; height: 18px; }
.metric-icon.trophy { background: #382d1d; color: #f2c779; }
.metric p, .panel-title p, .section-heading p { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric strong { display: inline-block; margin-top: 2px; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.45px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(306px, 0.85fr) minmax(0, 1.45fr); align-items: start; gap: 17px; }
.panel { overflow: hidden; }
.panel-title, .section-heading { display: flex; gap: 10px; align-items: center; }
.panel-title { padding: 13px 15px; min-height: 67px; }
.panel-title.spread, .section-heading { justify-content: space-between; }
.panel-title h2, .section-heading h2 { font-size: 17px; letter-spacing: -.35px; font-weight: 800; }
.panel-title p, .section-heading p { margin-top: 2px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 8px 6px; border-bottom: 1px solid #293833; }
thead { color: #b1c1b8; background: #101815; font-size: 10px; }
thead th { font-weight: 800; white-space: nowrap; }
tbody { font-size: 12px; }
tbody th { font-weight: 700; }
tr td:first-child, tr th:first-child { padding-left: 15px; }
tr td:last-child, tr th:last-child { padding-right: 15px; }
.ranking th:nth-child(n+3), .ranking td:nth-child(n+3) { text-align: center; }
.ranking .table-scroll { max-height: 525px; }
.ranking thead { position: sticky; top: 0; }
.rank { font-size: 11px; font-weight: 800; color: #a1b2ab; min-width: 18px; display: inline-block; text-align: center; }
.rank-1, .rank-2, .rank-3 { border-radius: 5px; padding: 2px 4px; }
.rank-1 { background: #42351d; color: #ffdb8c; }
.rank-2 { background: #263632; color: #d4e5da; }
.rank-3 { background: #3d2a20; color: #efb48e; }
.player-name { display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; font-size: 9px; font-weight: 800; }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.avatar[data-photo] { cursor: zoom-in; }
.avatar[data-photo]:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.court-player { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.court-player .avatar { width: 27px; height: 27px; }
.next-player .player-name { min-width: 0; }
.fixed-team-members { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.fixed-plus { color: var(--muted); }
#photo-dialog { width: min(540px, calc(100% - 28px)); max-height: 88dvh; }
#photo-dialog .modal-heading h2 { min-width: 0; overflow-wrap: anywhere; }
.profile-photo { display: block; width: 100%; max-height: 65dvh; object-fit: contain; border-radius: 10px; margin-top: 12px; background: var(--field); }
.reclub-status { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: capitalize; }
.import-preview { margin-bottom: 14px; }
.import-preview .pill { margin-left: auto; }
.tone-0 { background: #2a3e2e; color: #bef0a2; }
.tone-1 { background: #344228; color: #d6f394; }
.tone-2 { background: #37334b; color: #d6c2fc; }
.tone-3 { background: #44342c; color: #f4c296; }
.tone-4 { background: #253b42; color: #a7dfeb; }
.tone-5 { background: #44303d; color: #f5bacf; }
.wins { color: #a0dfa8; font-weight: 800; }
.rate { display: inline-block; min-width: 37px; color: #b6e7af; background: #26392a; border-radius: 5px; padding: 3px 4px; font-size: 10px; font-weight: 800; }
.ranking-footer { display: flex; gap: 7px; padding: 11px 15px; color: var(--muted); font-size: 10px; font-weight: 600; }

.section-heading { min-height: 48px; margin-bottom: 10px; }
.courts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.court-card { padding: 12px; }
.court-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.court-head h3 { font-size: 14px; font-weight: 800; }
.court-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; color: #a6db9c; background: #22342b; border-radius: 7px; flex: 0 0 auto; }
.court-icon svg { width: 16px; height: 16px; }
.court-head .pill { margin-left: auto; }
.court-timer { display: flex; align-items: center; gap: 5px; width: fit-content; margin: 0 0 9px; padding: 4px 7px; border-radius: 6px; color: #c5e2cf; background: #23332c; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.court-timer svg { width: 14px; height: 14px; }
.versus { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; }
.team { align-self: stretch; min-width: 0; border-radius: 8px; padding: 9px 8px; background: #1c2d25; }
.team-b { background: #222b3a; }
.team-label { text-transform: uppercase; font-size: 9px; letter-spacing: .65px; font-weight: 800; color: #afdda8; margin-bottom: 5px; }
.team-b .team-label { color: #bed0ff; }
.court-player { font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.vs { text-align: center; color: #a1b2ab; font-size: 9px; font-weight: 800; }
.court-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.court-actions .btn { min-height: 34px; font-size: 11px; padding: 6px 4px; gap: 4px; }
.court-actions svg { width: 13px; height: 13px; }
.win-a { background: #172820; border-color: #354c3e; color: #c3edb4; }
.win-a:hover { background: #2c4130; }
.win-b { background: #1e2633; border-color: #394961; color: #cbdaff; }
.win-b:hover { background: #2a364b; }
.court-open { min-height: 69px; border: 1px dashed #35443d; border-radius: 8px; display: grid; place-content: center; justify-items: center; gap: 5px; color: var(--muted); font-size: 11px; text-align: center; }
.court-open svg { color: #91a99a; }
.start-court { margin-top: 9px; width: 100%; }
.rotation-panels { display: grid; gap: 12px; margin-top: 12px; }
.rankings-column { display: grid; gap: 14px; min-width: 0; }
.podium-panel { padding: 20px 12px 23px; background: radial-gradient(ellipse at 50% 25%, #42331940, transparent 65%), var(--paper); }
.podium-panel > h2 { padding-left: 5px; font-size: 17px; }
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 9px; align-items: start; margin-top: 25px; }
.podium-player { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; margin-top: 30px; padding: 13px 6px 16px; text-align: center; border: 1px solid #3a4b43; border-radius: 13px; background: linear-gradient(160deg, #26362d, #151e1a); }
.podium-1 { margin-top: 0; padding: 18px 7px 22px; background: linear-gradient(155deg, #41351e, #211e15 65%, #322318); border-color: #e7b54f; isolation: isolate; }
.podium-1::before { content: ''; position: absolute; inset: -2px; border-radius: 14px; padding: 2px; background: conic-gradient(from 0deg, #996022, #ffd978, #fff7d1, #e8a42c, #ff742d, #ffe097, #996022); background-size: 200% 200%; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; animation: podium-gold-flow 5s linear infinite; }
.podium-1::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: -3px 5px 13px #ff842b55, 3px -2px 10px #ffd56933, 0 13px 20px -8px #ff591a88; animation: podium-embers 3.8s ease-in-out infinite; }
.podium-photo { position: relative; width: 100%; margin-bottom: 20px; }
.podium .avatar { width: min(100%, 105px); height: auto; aspect-ratio: 1; font-size: 27px; border: 2px solid #8faaa0; border-radius: 12px; box-shadow: 0 3px 12px #0004; }
.podium-1 .avatar { width: min(100%, 135px); aspect-ratio: .88; border-color: #ffe299; box-shadow: 0 0 15px #e4aa3833; }
.podium-1 .avatar::after { content: ''; position: absolute; inset: -50% -120%; background: linear-gradient(110deg, transparent 42%, #fff4c555 49%, #fff9df88 50%, transparent 58%); pointer-events: none; animation: podium-photo-shine 6s ease-in-out infinite; }
.podium-3 .avatar { border-color: #bc886b; }
.podium-place { display: block; font-size: 10px; font-weight: 800; color: #e7f0e9; }
.podium-photo .podium-place { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 99px; background: #344a3c; white-space: nowrap; }
.podium-1 .podium-place { background: linear-gradient(120deg, #d89a30, #ffe9a8, #edb744); color: #322006; box-shadow: 0 2px 8px #0005; }
.podium-player > strong { font-size: 13px; overflow-wrap: anywhere; line-height: 1.35; }
.podium-player > p { font-size: 10px; color: var(--muted); margin-top: 5px; }
.podium-player > p span { display: block; line-height: 1.5; }
.podium-rate { color: var(--lime); font-weight: 800; font-size: 11px; margin-top: 5px; }
.podium-1 > strong, .podium-1 .podium-rate { color: #ffe39b; }
.podium-1 > p { color: #d6c8a8; }
@keyframes podium-gold-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes podium-embers {
  0%, 100% { box-shadow: -3px 5px 13px #ff842b55, 3px -2px 10px #ffd56933, 0 13px 20px -8px #ff591a88; }
  40% { box-shadow: -5px -3px 17px #ff982b77, 4px 5px 13px #ffdc5b55, 0 -5px 22px -9px #ff6d2788; }
  70% { box-shadow: 3px 4px 12px #ff842b66, -4px -4px 13px #ffd56955, 0 10px 18px -7px #ff591a77; }
}
@keyframes podium-photo-shine {
  0%, 35% { transform: translateX(-35%); opacity: 0; }
  45% { opacity: 1; }
  65%, 100% { transform: translateX(35%); opacity: 0; }
}
.podium-placeholder { display: grid; place-items: center; width: 64px; height: 64px; border: 1px dashed var(--line); border-radius: 50%; margin-bottom: 10px; color: var(--muted); }
.playing-list { margin: 0; padding: 0; list-style: none; }
.playing-list > li { padding: 11px 15px; border-top: 1px solid var(--line); }
.playing-list > li > strong { display: block; color: var(--lime); font-size: 11px; margin-bottom: 8px; }
.playing-list > li > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 12px; }
.dashboard-roster { scroll-margin-block: 18px; }
.checkin-column { display: grid; gap: 14px; grid-column: 2; min-width: 0; }
.checkin-list { margin: 0; padding: 0; list-style: none; max-height: 420px; overflow-y: auto; }
.checkin-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.checkin-list .player-name { min-width: 0; }
.checkin-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.checkin-list .btn { font-size: 10px; padding: 6px 8px; min-height: 30px; }
.checkout-btn { background: #48262c; color: #ffb6bb; border-color: #80464f; }
.checkout-btn:hover { background: #66323b; }
.checkin-btn { background: #233e2b; color: #b8f1b3; border-color: #476b4a; }
.checkin-btn:hover { background: #31543a; }
.checkin-confirm-name { font-size: 17px; font-weight: 700; margin-bottom: 17px; }
.dashboard-roster:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.roster-heading { flex-wrap: wrap; }
.roster-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.roster-status { margin-left: auto; color: var(--muted); }
.next-games, .attendance-list { margin: 0; }
.next-games { padding: 0 15px 3px 42px; }
.next-games li { padding: 12px 0 12px 3px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.next-match { display: grid; grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); align-items: center; gap: 6px; }
.next-team { display: grid; gap: 6px; }
.next-player { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 7px; border-radius: 6px; background: #1d2c25; }
.rest-player { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 5px; border: 1px solid #59685e; background: transparent; color: #f1b9bd; }
.rest-player:hover { background: #4b2930; }
.rest-player svg { width: 13px; height: 13px; }
.checkin-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.fixed-picker { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; padding: 4px; }
.fixed-dialog { width: min(760px, calc(100% - 28px)); max-height: 88dvh; padding: 24px; }
.fixed-dialog .fixed-picker { max-height: min(43dvh, 420px); gap: 5px; }
.fixed-dialog .fixed-picker label { padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; gap: 12px; }
.fixed-dialog .fixed-picker label[hidden] { display: none; }
.fixed-dialog .fixed-picker label:has(input:checked) { background: #2b3e28; border-color: #9ebd65; }
.fixed-dialog .fixed-picker .avatar, .fixed-dialog .fixed-team-list .avatar { width: 40px; height: 40px; font-size: 14px; }
.fixed-dialog .fixed-picker input { width: 19px; height: 19px; flex: 0 0 19px; }
.fixed-dialog .fixed-team-list { font-size: 15px; }
.fixed-dialog #fixed-selection-count { line-height: 1.5; }
.fixed-team-list { list-style: none; padding: 0; margin: 0 0 15px; }
.fixed-team-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.next-games li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.next-games .vs { padding: 0 8px; }
.attendance-list { list-style: none; padding: 0; max-height: 320px; overflow-y: auto; }
.attendance-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 6px 15px; border-top: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.attendance-buttons { display: flex; gap: 4px; flex-wrap: wrap; }
.attendance-list .attendance-buttons { margin-left: auto; }
.attendance-control { min-height: 32px; max-width: 100%; border: 1px solid #344740; background: var(--field); border-radius: 6px; color: var(--ink); padding: 4px; font-size: 12px; }
.attendance-control { cursor: pointer; font-size: 11px; padding-inline: 8px; }
.attendance-control[aria-pressed="true"] { border-color: #9fb2a1; background: #314239; }
.attendance-control[data-attendance="present"][aria-pressed="true"] { color: #142019; background: var(--lime); border-color: var(--lime); }
.attendance-control[data-attendance="absent"][aria-pressed="true"], .attendance-control[data-attendance="canceled"][aria-pressed="true"] { color: #ffdadd; border-color: #c5777e; background: #4c2930; }

.wide-table th, .wide-table td { padding: 11px 15px; }
.wide-table th { text-align: left; }
.wide-table small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.wide-table .avatar { width: 30px; height: 30px; }
.table-empty { padding: 15px; color: var(--muted); font-size: 12px; }
.empty { text-align: center; padding: 38px 20px; border: 1px dashed #354740; border-radius: 12px; background: var(--paper); }
.panel > .empty { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.empty h3 { font-size: 17px; margin-top: 10px; }
.empty p { margin: 5px auto 12px; color: var(--muted); }
.capitalize { text-transform: capitalize; }
.integration-body { padding: 5px 15px 18px; }
.integration-body > p { color: var(--muted); max-width: 65ch; line-height: 1.6; }
.integration-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 15px 0; font-size: 12px; color: var(--muted); }
.action-row { flex-wrap: wrap; }
.roster-source { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 15px; background: #101815; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
dialog > .btn + .roster-form { margin-top: 12px; }

dialog { width: min(468px, calc(100% - 32px)); max-height: calc(100dvh - 30px); padding: 19px; border: 1px solid #344740; border-radius: 15px; color: var(--ink); background: var(--paper); box-shadow: 0 15px 65px #0008; }
dialog::backdrop { background: #060c0bd6; }
.modal-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.modal-heading h2 { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.modal-description { margin: 4px 0 16px; color: var(--muted); line-height: 1.5; }
form { display: grid; gap: 12px; }
form label { display: grid; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
form input, form select, form textarea { width: 100%; padding: 9px 10px; min-height: 38px; border: 1px solid #344740; border-radius: 7px; color: var(--ink); background: var(--field); }
form textarea { resize: vertical; }
form input:disabled, form select:disabled { opacity: .65; }
form label.checkbox { display: flex; align-items: center; gap: 8px; }
form .checkbox input { width: 16px; min-height: auto; height: 16px; accent-color: var(--green); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-hint, .optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.optional { display: inline; }
.form-error { color: #ff9a9e; font-size: 12px; }
.form-error:empty { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.confirmation { display: flex; gap: 9px; align-items: center; background: #1e2b24; padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.confirmation p { margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.danger-text { color: #ff9a9e; padding-left: 0; background: transparent; justify-self: start; }
.danger-text:hover { text-decoration: underline; }
.danger { background: #a93842; color: #fff; }
#toast { position: fixed; right: 18px; bottom: 18px; max-width: min(400px, calc(100% - 36px)); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; padding: 11px 15px; color: white; background: #263c31; border-radius: 8px; box-shadow: 0 4px 17px #0006; z-index: 2; font-size: 13px; }
#toast.visible { opacity: 1; transform: translateY(0); }

.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-side { min-height: 280px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 6vw, 80px); color: var(--lime); background: #15261c; overflow: hidden; isolation: isolate; }
.login-side h2 { font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -.055em; }
.login-side .court-art { top: 20%; width: 95%; height: 50%; transform: rotate(-20deg); }
.login-main { padding: 26px; display: grid; place-items: center; background: var(--paper); }
.login-box { width: min(100%, 375px); }
.login-box > p { margin: 8px 0 20px; color: var(--muted); }
.login-box form .btn { justify-content: space-between; }
.login-box .login-note { font-size: 12px; margin: 14px 0; }
.startup { padding: 25px; }
.history-sessions, .match-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.history-sessions button, .match-list button { display: flex; width: 100%; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 15px; background: var(--paper); color: var(--ink); text-align: left; }
.history-sessions button:hover, .match-list button:hover { background: #22332b; }
.history-sessions button > span:first-child, .match-list button > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.history-sessions small, .match-list small { display: block; color: var(--muted); margin-top: 5px; }
.history-dialog { width: min(760px, calc(100% - 28px)); max-height: min(82dvh, 850px); }
.history-dialog .modal-heading { position: sticky; top: -19px; padding-block: 8px; background: var(--paper); z-index: 1; }
.show-more-matches { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; }
.match-count { color: var(--muted); font-size: 12px; }
.session-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: var(--field); padding: 14px; border-radius: 9px; margin: 0 0 18px; }
.session-summary dt { color: var(--muted); font-size: 12px; }
.session-summary dd { margin: 4px 0 0; font-weight: 700; }
.history-heading { font-size: 16px; margin: 16px 0 10px; }
@media (max-width: 620px) {
  .history-sessions button, .match-list button { flex-wrap: wrap; gap: 9px; font-size: 12px; }
  .history-sessions button > span:first-child { flex-basis: 100%; }
  .session-summary { font-size: 12px; }
}

@media (min-width: 1440px) {
  .dashboard-grid { grid-template-columns: minmax(390px, .9fr) minmax(0, 1.5fr); }
  .courts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .content { width: min(100%, 1900px); }
  .dashboard-grid { grid-template-columns: minmax(350px, .9fr) minmax(0, 1.35fr) minmax(280px, .8fr); }
  .checkin-column { grid-column: 3; grid-row: 1; }
  .courts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .workspace { grid-template-columns: 191px minmax(0, 1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .content, .topbar { padding-left: 22px; padding-right: 22px; }
  .dashboard-grid { grid-template-columns: minmax(284px, 0.9fr) minmax(0, 1.4fr); gap: 13px; }
  .courts-grid { gap: 9px; }
  .court-card { padding: 9px; }
}
@media (max-width: 1060px) {
  .courts-grid { grid-template-columns: minmax(0, 1fr); }
  .team { padding: 9px 12px; }
}
@media (max-width: 835px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 12px; }
  .sidebar > .brand { margin: 0 3px 11px; }
  .navigation { display: flex; gap: 4px; overflow-x: auto; }
  .nav-label, .sidebar-footer .account { display: none; }
  .nav-item { width: auto; flex: 0 0 auto; white-space: nowrap; font-size: 11px; padding: 7px; gap: 5px; }
  .nav-item svg { width: 14px; height: 14px; }
  .sidebar-footer { position: absolute; top: 12px; right: 10px; border: 0; padding: 0; }
  .dashboard-grid { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.25fr); }
  .topbar { min-height: 54px; }
}
@media (max-width: 620px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .content { padding: 18px 13px 35px; }
  .topbar { padding: 8px 13px; }
  .top-actions { gap: 5px; }
  .session-banner { padding: 13px; min-height: 142px; align-items: flex-start; flex-direction: column; }
  .court-art { width: 72%; right: -25%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0 17px; }
  .metric { min-height: 61px; padding: 7px; gap: 7px; }
  .metric-icon { width: 31px; height: 31px; }
  .metric strong { font-size: 19px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .courts-section { grid-row: 1; }
  .checkin-column { grid-column: 1; grid-row: 2; }
  .court-actions .btn, .attendance-control { min-height: 40px; }
  .ranking .table-scroll { max-height: 340px; }
  .login { grid-template-columns: 1fr; grid-template-rows: minmax(160px, .45fr) 1fr; }
  .login-side { min-height: 160px; gap: 16px; }
  .login-side h2 br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .podium-1::before, .podium-1::after, .podium-1 .avatar::after { animation: none; }
  .podium-1 .avatar::after { opacity: 0; }
}

@media (max-width: 450px) {
  .breadcrumb { gap: 4px; min-width: 0; font-size: 11px; }
  .breadcrumb strong { overflow-wrap: anywhere; }
  .topbar { gap: 7px; }
  .top-actions { flex: 0 0 auto; }
  .top-actions .btn { padding-inline: 8px; }
}
