:root {
  color-scheme: light;
  --ink: #132e31;
  --muted: #516466;
  --page: #f5f6ee;
  --panel: #fafbf5;
  --mint: #e4efe3;
  --lime: #c8e875;
  --lime-hover: #b8dc54;
  --edge: #d3ddd1;
  --white: #fff;
  --danger: #7e2b28;
  --radius: 23px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: #245450; text-underline-offset: .18em; }
a:hover { color: #132e31; }
:focus-visible { outline: 3px solid #387a70; outline-offset: 3px; }
.wrap { width: min(1344px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; background: white; padding: .7rem; }
.skip:focus { top: .75rem; }
.top-inner { display: flex; align-items: center; gap: 36px; min-height: 80px; border-bottom: 1px solid #bdcec0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 29px; font-weight: 850; letter-spacing: -.065em; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 41px; height: auto; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.top nav a { text-decoration: none; font-weight: 600; color: inherit; position: relative; padding-block: 12px; }
.top nav a[aria-current="page"]::after { position: absolute; bottom: 2px; left: 0; right: 0; content: ""; height: 4px; border-radius: 4px; background: #9bcb42; }
.account { margin-left: auto; }
.demo-note { display: inline-block; color: #56655f; margin-top: 13px; font-size: 13px; }
main { min-height: 70vh; }
.hero { display: grid; grid-template-columns: .81fr 1.19fr; gap: clamp(22px, 4.3vw, 67px); align-items: center; padding-block: 26px 34px; }
.hero h1 { font-size: clamp(54px, 6.5vw, 106px); max-width: 9ch; line-height: .91; letter-spacing: -.072em; }
.hero p { font-size: clamp(18px, 1.85vw, 24px); line-height: 1.32; max-width: 31ch; margin: 20px 0 27px; }
.hero-img { width: 100%; height: 100%; aspect-ratio: 1.76; min-height: 310px; max-height: 440px; object-fit: cover; object-position: center; border-radius: 28px; }
.hero-copy { padding-block: 10px; }
h1, h2, h3, p, dl, ol { margin: 0; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.04em; color: inherit; }
h1 { font-size: clamp(41px, 5.2vw, 75px); }
h2 { font-size: clamp(24px, 2.55vw, 38px); margin-bottom: 10px; }
h3 { font-size: 20px; }
p + p, p + .actions { margin-top: 8px; }
p a, .section-head > a { font-weight: 700; }
p.muted, .muted { color: var(--muted); }
small { font-size: .82em; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; color: var(--ink); padding: 10px 16px; min-height: 44px; border: 1px solid var(--edge); border-radius: 11px; background: var(--panel); cursor: pointer; font: inherit; font-weight: 710; text-decoration: none; line-height: 1.15; text-align: center; }
button:hover, .button:hover { background: #e8f0e4; }
.primary { background: var(--lime); border-color: var(--lime); color: #152e17; }
.primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.outline { border-color: #315553; background: transparent; }
.soft { background: var(--mint); border-color: transparent; }
.danger { color: var(--danger); border-color: #d9aca5; }
.hero .button { min-height: 54px; padding-inline: 21px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; }
.home-grid, .detail-grid, .card-grid { display: grid; gap: 22px; align-items: start; }
.home-grid, .detail-grid { grid-template-columns: 1.61fr 1fr; }
.card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel { padding: clamp(18px, 2.1vw, 29px); background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); min-width: 0; overflow-wrap: anywhere; }
.home-grid .panel { height: 100%; }
.mint { background: var(--mint); border-color: #e0ebdf; }
.section-head { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.section-head a { white-space: nowrap; }
.page-head { margin: 24px 0 26px; }
.page-head p { color: var(--muted); font-size: 19px; margin-top: 12px; }
.venue { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 17px; padding: 17px 0; border-top: 1px solid var(--edge); }
.venue:first-of-type { margin-top: 10px; }
.venue:last-child { padding-bottom: 2px; }
.venue .button { background: var(--lime); border-color: var(--lime); }
.venue .button:hover { background: var(--lime-hover); }
.venue-symbol { display: grid; place-items: center; width: 78px; height: 65px; background: #dbe9d8; border-radius: 14px; color: #315b55; font-size: 25px; font-weight: 800; letter-spacing: -.06em; text-transform: uppercase; }
.venue p, .venue small { color: var(--muted); }
.rank-list { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 7px; }
.rank-list li { display: flex; gap: 12px; align-items: center; min-height: 47px; background: #f8faf4; border-radius: 11px; padding: 6px 10px; }
.rank-list li small, .agenda-row small { display: block; color: var(--muted); }
.rank-list .rating { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-list .rating small { display: inline; }
.position { background: #e0eddd; aspect-ratio: 1; min-width: 35px; display: grid; place-items: center; border-radius: 9px; font-weight: 750; }
.narrow { max-width: 590px; margin: 28px auto; }
.account-panel h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; }
.stack { display: grid; gap: 12px; }
.stack button { justify-self: start; }
.field-pair { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.filters { display: flex; flex-wrap: wrap; gap: 11px; align-items: end; margin: 12px 0; }
.filters label { min-width: min(145px,100%); }
label, legend { font-weight: 650; }
label { display: grid; gap: 5px; }
input, select, textarea { border: 1px solid #b3c5b7; color: var(--ink); background: #fff; font: inherit; border-radius: 9px; padding: 8px 10px; min-height: 44px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
.check { font-weight: 500; display: flex; align-items: start; gap: 8px; }
.check input { width: 19px; min-height: 19px; height: 19px; margin: 2px 0 0; flex-shrink: 0; accent-color: #487641; }
fieldset { min-width: 0; border: 1px solid var(--edge); border-radius: 12px; padding: 11px; }
fieldset .check + .check { margin-top: 5px; }
.booking-form { margin-top: 16px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); gap: 8px; margin: 0 0 16px; }
.slot { position: relative; text-align: center; cursor: pointer; display: grid; background: var(--mint); padding: 10px 5px; border-radius: 9px; font-weight: 550; }
.slot input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: inherit; margin: 0; }
.slot:has(input:checked) { background: var(--lime); box-shadow: 0 0 0 2px #487641; }
.slot:has(input:focus-visible) { outline: 3px solid #387a70; outline-offset: 3px; }
.slot.taken { background: #eee; color: #606060; cursor: default; }
.slot:has(input:disabled) { cursor: default; }
.pill { border-radius: 22px; display: inline-block; background: var(--mint); color: var(--ink); text-align: center; font-size: 13px; font-weight: 700; padding: 4px 9px; }
.empty { color: var(--muted); padding: 13px 0; }
.alert, .demo-box, .feedback-box { background: var(--mint); padding: 13px 16px; border-radius: 12px; margin-block: 12px; overflow-wrap: anywhere; }
.alert.error { background: #f9e7e0; color: #702622; }
.back { display: inline-block; margin-bottom: 10px; }
dl { display: grid; gap: 5px; margin: 14px 0; }
dt { font-weight: 700; }
dd { margin: 0 0 8px; }
details { margin-top: 8px; }
summary { color: #234f46; cursor: pointer; font-weight: 650; }
details form { margin-top: 8px; }
.separate { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--edge); }
.account-links { display: grid; gap: 7px; margin-top: 14px; }
.match-card { padding: 16px 0; border-top: 1px solid var(--edge); }
.match-card .actions { margin-top: 10px; }
.score { font-weight: 800; font-size: 24px; }
.portal .top { background: #132f32; color: var(--white); }
.portal .top-inner { border-bottom: 0; }
.portal .brand { color: white; }
.portal .brand img { background: #e4efe3; padding: 4px; border-radius: 7px; }
.admin { display: grid; grid-template-columns: 158px minmax(0,1fr); gap: 24px; margin-top: 14px; }
.admin .page-head { margin-top: 0; }
.admin-nav { display: flex; flex-direction: column; gap: 6px; background: var(--mint); border-radius: 17px; padding: 12px; align-self: start; }
.admin-nav strong { padding: 6px 8px; }
.admin-nav a { color: var(--ink); font-weight: 680; text-decoration: none; padding: 8px; border-radius: 8px; }
.admin-nav a[aria-current="page"] { background: var(--lime); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.metrics > * { background: var(--mint); border-radius: 13px; padding: 13px; text-decoration: none; color: var(--ink); }
.metrics small, .metrics strong { display: block; }
.metrics strong, .estimate { font-size: 36px; font-weight: 820; letter-spacing: -.035em; }
.estimate small { font-size: 16px; }
.agenda-row { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; border-top: 1px solid var(--edge); padding: 12px 0; }
.admin-venue { grid-template-columns: minmax(0,1fr) auto; }
footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 37px; border-top: 1px solid #bdcec0; padding-block: 17px 25px; }
footer div { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 40px); }
  .top-inner { gap: 19px; }
  .top nav { gap: 16px; }
  .hero { gap: 24px; }
  .hero-img { min-height: 290px; }
  .admin { grid-template-columns: 124px minmax(0,1fr); gap: 14px; }
  .admin .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .top-inner { flex-wrap: wrap; gap: 7px; padding-top: 10px; }
  .top nav { width: 100%; order: 3; gap: 0; justify-content: space-between; overflow-x: auto; flex-wrap: nowrap; }
  .top nav a { flex: 0 0 auto; font-size: 14px; padding-inline: 6px; }
  .top nav a[aria-current="page"]::after { left: 5px; right: 5px; }
  .hero, .detail-grid, .home-grid, .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding-block: 15px 17px; }
  .hero h1 { font-size: clamp(53px, 10vw, 75px); max-width: 11ch; }
  .hero p { margin: 13px 0 17px; }
  .hero-img { min-height: 0; max-height: 340px; border-radius: 17px; width: 100%; }
  .hero .button { min-height: 47px; padding-inline: 12px; }
  .panel { border-radius: 16px; padding: 16px; }
  .venue { gap: 9px; }
  .venue-symbol { width: 48px; height: 48px; font-size: 17px; }
  .venue h3 { font-size: 16px; }
  .venue .button { padding-inline: 7px; font-size: 13px; }
  .section-head a { font-size: 14px; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav strong { display: none; }
  .admin .page-head { margin-bottom: 14px; }
  .rank-list li { gap: 7px; }
  .rank-list .button { padding-inline: 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
