:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172a26;
  background: #f3f6f5;
  font-size: 16px;
  --green: #0c5846;
  --deep: #102e27;
  --muted: #506761;
  --line: #dce7e2;
  --light: #edf5f1;
  --gold: #f3c86d;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--green); font-weight: 650; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.1; letter-spacing: -.045em; }
h2 { font-size: 1.32rem; letter-spacing: -.025em; }
h3 { font-size: 1.08rem; }
p { line-height: 1.5; }
:focus-visible { outline: 3px solid #2878c6; outline-offset: 3px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 3; background: white; padding: 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--deep); color: #f6faf8; display: flex; flex-direction: column; padding: 1.7rem 1rem 1rem; gap: .75rem; }
.sidebar nav { display: grid; gap: .28rem; margin-top: 1.8rem; }
.sidebar nav a { display: flex; align-items: center; gap: .75rem; padding: .8rem .85rem; text-decoration: none; border-radius: .55rem; color: #d8e8e2; font-size: .94rem; }
.sidebar nav a span { width: 1.35rem; text-align: center; font-size: 1.12rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: #fff; background: #215346; }
.sidebar nav a[aria-current] span { color: var(--gold); }
.brand { display: flex; align-items: center; gap: .72rem; color: inherit; font-weight: 780; text-decoration: none; line-height: 1.15; padding: .25rem .4rem; }
.brand-icon { display: grid; place-items: center; border-radius: .72rem; background: var(--gold); color: var(--deep); min-width: 2.55rem; min-height: 2.55rem; font-size: 1.45rem; }
.brand small { display: block; font-size: .69rem; letter-spacing: .17em; margin-top: .29rem; }
.profile { margin-top: auto; display: flex; align-items: center; padding: .8rem .35rem 0; gap: .55rem; border-top: 1px solid #38594f; min-width: 0; }
.profile strong { display: block; overflow-wrap: anywhere; }
.profile small { display: block; color: #b6cdc4; font-size: .84rem; }
.avatar { display: grid; place-items: center; background: #245649; color: #fff; border-radius: 50%; min-width: 2.35rem; min-height: 2.35rem; font-weight: 750; }
.logout { padding-inline: .35rem; }
.main { width: 100%; max-width: 1500px; margin-inline: auto; padding: 2.35rem clamp(1rem, 3vw, 3rem) 3rem; }
.page-head { margin-bottom: 1.6rem; }
.page-head p { color: var(--muted); margin-top: .5rem; }
.banner { position: relative; overflow: hidden; background: radial-gradient(ellipse at 98% 20%, #216f59, transparent 63%), #123f34; color: #fff; border-radius: 1.05rem; padding: 2rem clamp(1.25rem, 3vw, 2.35rem); }
.banner > div:first-child { position: relative; z-index: 1; }
.banner p { font-size: .78rem; font-weight: 750; letter-spacing: .14em; color: #f0cb79; margin-bottom: .45rem; }
.banner h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); letter-spacing: -.045em; }
.banner-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.banner .primary { color: var(--deep); background: var(--gold); border-color: var(--gold); }
.banner .primary:hover { background: #ffd98c; }
.banner-art { position: absolute; top: 0; height: 100%; width: 31%; right: 3%; opacity: .77; }
.court { position: absolute; top: 12%; right: 2%; width: 78%; height: 76%; border-radius: .8rem; border: 2px solid #83ab99; transform: rotate(-15deg); overflow: hidden; }
.court::before { content: ''; position: absolute; width: 2px; left: 50%; top: 0; bottom: 0; background: #83ab99; }
.court::after { content: ''; position: absolute; width: 22%; aspect-ratio: 1; top: 50%; left: 50%; border: 2px solid #83ab99; border-radius: 50%; transform: translate(-50%, -50%); }
.court i, .court b { position: absolute; width: 17%; height: 54%; border: 2px solid #83ab99; top: 23%; }
.court i { left: -2px; }
.court b { right: -2px; }
.spark { position: absolute; color: var(--gold); font-size: 2.1rem; top: 11%; right: 2%; }
.spark.small { top: 70%; right: 82%; font-size: 1.55rem; }
.section { margin-top: 1.55rem; }
.panel, .stat { border: 1px solid var(--line); background: var(--white); border-radius: .9rem; }
.panel { padding: clamp(.85rem, 2vw, 1.35rem); }
.panel h2 + p { margin-top: .42rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-bottom: .8rem; }
.section-head a { font-size: .93rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.review-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.stat { display: flex; align-items: center; flex-wrap: wrap; padding: .85rem 1rem; gap: .38rem .55rem; color: var(--muted); font-weight: 650; font-size: .9rem; }
.stat strong { display: block; flex-basis: 100%; color: #172a26; font-size: 2rem; line-height: 1.1; letter-spacing: -.035em; }
.dot { height: .58rem; width: .58rem; border-radius: 50%; background: #69857c; }
.dot.confirmed { background: #238263; }
.dot.draft { background: #b3740c; }
.dot.missing { background: #87918f; }
.muted { color: var(--muted); }
.notice { padding: .85rem 1rem; margin: 0 0 1rem; background: #ecf5f0; border: 1px solid #d5e8dc; color: #184f3d; border-radius: .63rem; font-size: .95rem; }
.notice.error { background: #fff1ee; border-color: #efc8bf; color: #852d25; }
.team-card .notice { margin: .25rem 0 .65rem; background: #fff7e6; border-color: #f1e0ac; color: #725009; }
.table-wrap { overflow-x: auto; margin-top: .8rem; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .72rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #edf4f0; color: #38564d; font-size: .875rem; white-space: nowrap; }
td { font-size: .94rem; }
tr:last-child td { border-bottom: 0; }
.strong { font-weight: 700; }
.id { display: inline-block; font-size: .78rem; line-height: 1.4; color: var(--muted); font-weight: 500; margin-left: .2rem; }
.end { text-align: right; }
.empty { padding: 1.1rem .7rem; color: var(--muted); }
.tag { display: inline-flex; align-items: center; white-space: nowrap; padding: .24rem .58rem; color: #3b5750; background: #edf3f0; border-radius: 100px; font-size: .82rem; font-weight: 670; }
.tag.confirmed { background: #dbf1e6; color: #115c44; }
.tag.draft, .tag.review { background: #fff0cb; color: #744d00; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.55rem; padding: .53rem .83rem; border-radius: .55rem; border: 1px solid #cdded6; background: #fff; text-decoration: none; font-weight: 690; color: #164c3d; font-size: .91rem; line-height: 1.15; text-align: center; }
.button:hover { background: #eaf3ee; }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
.button.primary:hover { background: #094635; }
.button.compact { min-height: 2.18rem; padding: .38rem .63rem; }
.button.inverse, .button.quiet { color: #fff; background: transparent; border-color: #87ae9c; }
.button.inverse:hover, .button.quiet:hover { background: #285d4f; }
.button.quiet { border-color: transparent; padding-left: 0; }
.button.danger { color: #8d342b; }
.button.danger:hover { background: #fff0ed; }
label { display: grid; gap: .37rem; font-size: .9rem; font-weight: 650; }
input, select, textarea { min-height: 2.55rem; padding: .46rem .58rem; border: 1px solid #bfcfc7; border-radius: .49rem; color: #172a26; background: white; min-width: 0; font-size: .94rem; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 1.7rem; background-image: linear-gradient(45deg, transparent 50%, #49675c 50%), linear-gradient(135deg, #49675c 50%, transparent 50%); background-position: calc(100% - 14px) 51%, calc(100% - 9px) 51%; background-size: 5px 5px; background-repeat: no-repeat; }
td select { max-width: 100%; min-width: 9.5rem; }
input[type=checkbox] { width: 1.05rem; min-height: 1.05rem; accent-color: var(--green); }
.check { display: flex; align-items: center; font-weight: 500; }
.toolbar, .form-actions, .badges, .tabs, .inline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.toolbar, .tabs { margin-bottom: 1rem; }
.form-actions { justify-content: flex-end; margin-top: .8rem; }
.stack { display: grid; gap: .7rem; margin-top: .75rem; }
.stack .button { justify-self: start; }
.inline:has(label), .filter { align-items: end; }
.inline input:not([type=hidden]) { max-width: 13rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.team-tools .two-col > div { background: #f5f8f6; padding: .8rem 1rem; border-radius: .7rem; }
.team-card + .team-card { margin-top: .85rem; }
.tabs .button[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }
.filter { display: grid; grid-template-columns: minmax(10rem, 2fr) repeat(3, minmax(6rem, 1fr)) auto; gap: .6rem; }
.filter-result { margin-top: 1.25rem; }
.export-list > div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .65rem .4rem; border-bottom: 1px solid var(--line); }
.export-list > div:last-child { border-bottom: 0; }
.login-layout { min-height: 100vh; display: grid; place-items: center; padding: 1.3rem; background: radial-gradient(at 15% 100%, #2d6c55, transparent 77%), var(--deep); }
.login { width: min(100%, 465px); padding: clamp(1.2rem, 5vw, 2rem); background: #f8faf8; border-radius: 1.1rem; }
.login .brand { margin-bottom: 1.55rem; padding: 0; color: var(--deep); }
.login h1 { font-size: 2rem; }
.login-form { display: grid; gap: .8rem; }
.login-form .button { margin-top: .3rem; }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 198px minmax(0, 1fr); }
  .filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter .button { justify-self: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .layout { display: block; }
  .sidebar { display: grid; grid-template-columns: 1fr auto; padding: .75rem; gap: .5rem; }
  .sidebar nav { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem; margin-top: 0; }
  .sidebar nav a { padding: .38rem .48rem; gap: .22rem; font-size: .83rem; }
  .sidebar nav a span { font-size: .85rem; width: 1rem; }
  .profile { display: none; }
  .logout { grid-column: 2; grid-row: 1; padding: 0; align-self: center; }
  .main { padding-top: 1.45rem; }
  .two-col { grid-template-columns: 1fr; }
  .banner-art { opacity: .25; width: 55%; }
  td, th { padding: .55rem; }
}
