:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #112129;
  background: #eef2f3;
  color-scheme: light;
  --ink: #102028;
  --muted: #50616a;
  --line: #d9e2e5;
  --paper: #fff;
  --primary: #125648;
  --primary-dark: #0c4438;
  --hero: #122f2d;
  --mint: #d9f487;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-content { min-height: 72px; display: flex; align-items: center; gap: 30px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.35rem; font-weight: 850; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; padding: 7px 9px; height: 32px; border-radius: 7px; background: var(--hero); }
.mark i { width: 3px; height: 12px; transform: skew(-15deg); background: var(--mint); border-radius: 1px; }
.mark i:nth-child(2) { height: 15px; }
.mark i:nth-child(3) { height: 18px; }
#nav, #account, .actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
#nav { margin-right: auto; }
#nav button { border: 0; background: transparent; color: var(--muted); }
#nav button[aria-current="page"] { background: #e3f0ec; color: var(--primary-dark); }
#account > span { font-size: .875rem; color: var(--muted); font-weight: 700; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; }
button:hover, #nav button:hover { background: #f0f5f3; }
button:disabled { opacity: .6; cursor: wait; }
button.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
button.primary:hover { background: var(--primary-dark); }
button.danger { color: #a12e29; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #438c79; outline-offset: 2px; }
main { padding: 28px 0 64px; }
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 224px; padding: clamp(24px, 7vw, 62px); border-radius: 14px; background: var(--hero); color: white; margin-bottom: 24px; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; z-index: -1; height: 300px; width: 510px; right: -105px; bottom: -152px; transform: rotate(-22deg); border-radius: 49%; border: 2px solid #a4e9c6; box-shadow: 0 0 0 20px #ffffff13, 0 0 0 22px #a4e9c683, 0 0 0 42px #ffffff12, 0 0 0 44px #a4e9c65e, 0 0 0 64px #ffffff12, 0 0 0 66px #a4e9c64d; opacity: .6; }
.hero h1 { font-size: clamp(2.15rem, 5vw, 3.75rem); line-height: 1.02; margin: 0 0 12px; letter-spacing: -.055em; }
.hero p { color: #dbede7; margin: 0; line-height: 1.5; max-width: 32ch; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-title h1 { font-size: clamp(1.65rem, 4vw, 2.4rem); margin: 0; letter-spacing: -.035em; }
.filters { display: grid; grid-template-columns: minmax(165px, 1fr) minmax(150px, .43fr) minmax(150px, .43fr) auto; align-items: end; gap: 12px; margin-bottom: 16px; }
label.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: .875rem; font-weight: 700; color: #334b54; }
input, select, textarea { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid #c7d5da; border-radius: 8px; padding: 10px 12px; min-height: 43px; font-size: 1rem; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #31584e 50%), linear-gradient(135deg, #31584e 50%, transparent 50%); background-position: calc(100% - 17px) center, calc(100% - 12px) center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 88px; resize: vertical; }
.kicker { margin: 0 0 12px; color: var(--muted); font-size: .875rem; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.card, .list-row, .state { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.card h2, .list-row h2 { margin: 0; font-size: 1.16rem; line-height: 1.35; overflow-wrap: anywhere; }
.card p, .list-row p { margin: 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.card > button { margin-top: auto; align-self: start; }
.card-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; }
.sport { color: #345560; font-weight: 700; font-size: .875rem; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 5px; font-size: .875rem; font-weight: 700; background: #e9edf1; color: #3e5260; }
.badge.published, .badge.confirmed { background: #dbf2e7; color: #17553d; }
.badge.pending, .badge.draft { background: #fef0d3; color: #66490c; }
.badge.rejected, .badge.canceled { background: #f8e8e6; color: #812c27; }
.list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
.list-main { display: grid; gap: 4px; }
.list-main form { margin-top: 4px; }
.state { padding: 20px; color: var(--muted); }
.state p { margin: 0 0 12px; }
.state p:last-child { margin-bottom: 0; }
.error { color: #922d2a; }
dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 60px #00180e40; }
dialog::backdrop { background: #1025229c; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.dialog-header h2 { margin: 0; overflow-wrap: anywhere; }
.icon-button { font-size: 1.45rem; line-height: 1; padding: 5px 9px; }
.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-feedback { margin: 0; font-weight: 650; }
.form-feedback:empty { display: none; }
.details { display: grid; gap: 14px; }
.details > p, .details dl { margin: 0; }
.details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0; border-block: 1px solid var(--line); }
.details dt { font-size: .875rem; color: var(--muted); margin-bottom: 3px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.notice { position: fixed; z-index: 1; right: 18px; bottom: 18px; max-width: calc(100vw - 36px); padding: 12px 16px; color: white; background: var(--hero); border-radius: 9px; box-shadow: 0 4px 18px #152d2240; }
.spaced { margin-top: 14px; }
@media (max-width: 760px) {
  .container { width: calc(100% - 30px); }
  .header-content { gap: 10px; flex-wrap: wrap; padding: 10px 0; }
  #nav { order: 3; width: 100%; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: span 2; }
  .hero { min-height: 180px; }
  .hero::after { opacity: .3; }
}
@media (max-width: 430px) {
  .form-row, .details dl { grid-template-columns: 1fr; }
  .header-content { align-items: flex-start; }
  #account { justify-content: flex-end; }
  #account > span { display: none; }
}
