:root {
  color-scheme: light;
  --navy: #112137;
  --ink: #15243b;
  --muted: #53627a;
  --accent: #ff793d;
  --orange-ink: #a83f17;
  --line: #e0e6ee;
  --surface: #fff;
  --background: #f3f5f8;
  --radius: 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
a, button, select, input { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: not-allowed; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, p { margin: 0; }
h1, h2, strong, b { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #2363db; outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 4px; left: 4px; background: white; padding: 10px; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.muted { color: var(--muted); }
.fine { font-size: .84rem; margin-top: 14px; line-height: 1.55; }
.top { background: #112137; color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 65px; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.brand > svg { width: 37px; height: 37px; }
.brand span { display: grid; gap: 2px; }
.brand b { font-size: 1.02rem; line-height: 1; letter-spacing: -.025em; }
.brand em { color: var(--accent); font-style: normal; }
.brand small { color: #c2cede; font-size: .56rem; font-weight: 750; letter-spacing: .09em; }
.info-nav { color: #f1f5fc; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 650; min-height: 44px; }
.info-nav svg { width: 17px; color: var(--accent); }
.top-inner .brand { min-width: 0; flex-shrink: 1; }
.top-inner .brand span { min-width: 0; }
.top-tools { display: flex; flex-shrink: 0; align-items: center; gap: 5px; }
.top-tools .info-nav { justify-content: center; min-width: 34px; }
.top-tools .info-nav span { display: none; }
.language-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid #ffffff35; border-radius: 9px; }
.language-switch a { display: grid; place-items: center; min-width: 38px; min-height: 36px; border-radius: 6px; color: #d2deef; font-size: .72rem; font-weight: 800; }
.language-switch a:hover { background: #ffffff13; }
.language-switch a[aria-current] { background: #ff793d; color: #112137; }
.desktop-nav { display: none; }
.bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 5; inset: auto 0 0; min-height: 62px; background: #fff; border-top: 1px solid var(--line); padding: 5px 3px max(5px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 24px #1b315210; }
.bottom-nav a { min-height: 48px; display: grid; place-items: center; align-content: center; gap: 4px; color: #52627b; font-size: clamp(.60rem, 2.55vw, .75rem); font-weight: 700; border-radius: 10px; }
.bottom-nav a[aria-current] { color: var(--orange-ink); background: #fff0e8; }
.bottom-nav svg { width: 19px; height: 19px; }
.public footer { background: var(--navy); color: #e4edf9; padding: 24px 0 calc(86px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 15px; font-size: .82rem; }
.footer-inner > a:last-child { text-decoration: underline; text-underline-offset: 4px; }
.hero { background: #14253b url("/media/arena.webp") 68% 54% / cover no-repeat; color: #fff; position: relative; isolation: isolate; }
.hero::before { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg, #0d1e34f5, #102138d4 42%, #12253b68), linear-gradient(0deg,#10223bcf,transparent 65%); }
.hero-inner { min-height: 310px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 21px; padding-block: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-ink); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 7px; }
.hero .eyebrow { color: #ffe0cf; background: #132136b8; border: 1px solid #ffffff30; padding: 7px 10px; border-radius: 5px; }
.hero h1 { margin: 10px 0 9px; font-size: clamp(1.88rem, 8.2vw, 3.55rem); line-height: 1.01; font-weight: 880; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero p { color: #e0e9f7; font-size: .95rem; margin-bottom: 15px; }
.hero p span { color: var(--accent); padding-inline: 4px; }
.hero-venue { min-height: 48px; padding: 7px 12px; display: flex; align-items: center; gap: 9px; background: #142239c9; border: 1px solid #ffffff3f; border-radius: 10px; }
.hero-venue span { display: grid; gap: 2px; }
.hero-venue small { color: #c6d0de; font-size: .61rem; letter-spacing: .10em; font-weight: 750; }
.hero-venue b { font-size: .85rem; }
.hero-venue svg:first-child { color: var(--accent); }
.hero-venue svg:last-child { width: 15px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; min-height: 43px; border-radius: 9px; padding: 9px 14px; font-size: .86rem; font-weight: 760; line-height: 1.3; text-align: center; }
.button svg { width: 17px; height: 17px; }
.primary { background: var(--accent); color: #172237; }
.primary:hover { background: #ff905e; }
.subtle { background: #f2f5f9; color: var(--ink); border-color: #dce4ef; }
.subtle:hover { background: #e6edf6; }
.danger { background: #fff1ef; color: #9a221f; border-color: #efc5c0; }
.danger:hover { background: #ffe4e0; }
.small { font-size: .78rem; min-height: 39px; padding: 7px 11px; }
.dashboard { display: grid; gap: 16px; margin-block: 18px 36px; }
.dashboard-main, .dashboard-side { display: grid; align-content: start; gap: 16px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 13px #1a284604; }
.section-header { min-height: 57px; padding: 10px 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.section-header h2 { font-size: 1rem; display: flex; align-items: center; gap: 7px; line-height: 1.25; }
.section-header h2 svg { color: var(--orange-ink); width: 18px; }
.text-link { display: flex; align-items: center; gap: 2px; color: var(--orange-ink); font-size: .73rem; font-weight: 800; min-height: 36px; flex-shrink: 0; }
.text-link svg { width: 15px; }
.text-link:hover, .back:hover { text-decoration: underline; text-underline-offset: 3px; }
.match-group:last-child .match-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.match-date { padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #f2f5fa; border-block: 1px solid var(--line); color: #43536a; font-size: .76rem; font-weight: 760; }
.match-group:first-child .match-date { border-radius: var(--radius) var(--radius) 0 0; border-top: 0; }
.match-date span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.match-date svg { width: 15px; height: 15px; color: #697c97; }
.match-row { padding: 8px 10px; min-height: 63px; display: grid; align-items: center; grid-template-columns: minmax(0,1fr) 62px minmax(0,1fr); gap: 5px; }
.match-row + .match-row { border-top: 1px solid var(--line); }
.match-row:hover, .table-team:hover, .player-list a:hover { background: #f6f8fc; }
.side { display: flex; min-width: 0; align-items: center; gap: 5px; font-size: clamp(.68rem, 3vw, .83rem); line-height: 1.22; }
.side.home { flex-direction: row-reverse; text-align: right; }
.side b { font-weight: 740; }
.match-center { text-align: center; display: grid; justify-items: center; gap: 3px; min-width: 0; }
.match-center small { font-size: .60rem; color: var(--muted); overflow-wrap: anywhere; }
.match-time, .match-score { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.3; }
.match-time { border: 1px solid #e0e6ef; color: #384c69; background: #f3f6fb; border-radius: 7px; padding: 4px 6px; font-size: .82rem; }
.match-score { background: #fff0e7; color: #8e320f; border-radius: 7px; padding: 4px 7px; font-size: .93rem; }
.match-place { display: none; }
.badge, .avatar { width: 28px; height: 28px; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: .62rem; font-weight: 840; overflow: hidden; }
.badge { background: var(--crest-light); color: var(--crest); border: 1px solid color-mix(in srgb, var(--crest), transparent 77%); border-radius: 8px 8px 11px 11px; }
.c-blue { --crest: #254d87; --crest-light: #e5efff; }
.c-violet { --crest: #5c438f; --crest-light: #f0eaff; }
.c-orange { --crest: #954022; --crest-light: #fff0df; }
.c-red { --crest: #9b3440; --crest-light: #ffedf0; }
.c-green { --crest: #266645; --crest-light: #e5f5e9; }
.c-teal { --crest: #0e6872; --crest-light: #def4f4; }
.badge img { width: 100%; height: 100%; object-fit: contain; }
.avatar { background: #e8eef9; color: #344d78; border-radius: 50%; width: 36px; height: 36px; font-size: .70rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.large { width: 48px; height: 48px; font-size: .93rem; }
.hero-badge { width: 66px; height: 66px; font-size: 1.27rem; }
.standings, .roster { border-collapse: collapse; width: 100%; text-align: left; font-size: .81rem; }
.standings :is(th,td), .roster :is(th,td) { padding: 8px 5px; border-bottom: 1px solid var(--line); text-align: center; }
.standings tr:last-child :is(th,td), .roster tr:last-child :is(th,td) { border-bottom: 0; }
.standings thead th, .roster thead th { background: #f2f5fa; color: #4e5f76; font-size: .72rem; }
.standings :is(th,td):first-child, .roster :is(th,td):first-child { padding-left: 10px; }
.standings :is(th,td):last-child, .roster :is(th,td):last-child { padding-right: 12px; }
.standings :is(th,td):nth-child(2), .roster :is(th,td):nth-child(2) { text-align: left; }
.standings tbody th { font-weight: 730; }
.table-team, .roster th a { display: flex; align-items: center; gap: 6px; min-height: 33px; border-radius: 6px; }
.table-team { overflow-wrap: anywhere; }
.rank { display: inline-grid; place-items: center; min-width: 22px; height: 23px; color: #4b5f7c; font-weight: 760; font-size: .73rem; border-radius: 5px; background: #edf2f8; }
.points { font-weight: 860; color: var(--orange-ink); }
.form-dots { display: inline-flex; gap: 4px; }
.form-dots i { height: 8px; width: 8px; border-radius: 50%; }
.form-dots .win { background: #26855e; } .form-dots .draw { background: #838ea1; } .form-dots .loss { background: #ba4c43; }
.desktop-stat { display: none; }
.table-overflow { overflow-x: auto; }
.panel-note { padding: 11px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.5; }
.empty { min-height: 137px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 15px; color: var(--muted); }
.empty > span { width: 37px; height: 37px; display: grid; place-items: center; background: #f0f3f8; color: #617695; border-radius: 50%; }
.empty strong { font-size: .88rem; color: var(--ink); }
.empty p { font-size: .79rem; line-height: 1.45; max-width: 32ch; }
.page { min-height: 64vh; padding-block: 24px 38px; }
.page-intro { margin-bottom: 17px; }
.page-intro h1, .profile-banner h1, .office-heading h1 { margin-top: 6px; font-size: clamp(1.65rem, 6.4vw, 2.65rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.07; }
.page-intro p, .profile-banner p, .office-heading p { margin-top: 8px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.page-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tabs { display: flex; align-items: center; gap: 3px; padding: 4px; background: #e8edf5; border-radius: 11px; max-width: 100%; width: fit-content; }
.tabs a { padding: 7px 10px; min-height: 39px; display: grid; place-items: center; border-radius: 8px; color: #43536a; font-size: .78rem; font-weight: 750; text-align: center; }
.tabs a[aria-current] { background: white; color: #943611; box-shadow: 0 1px 4px #14283b19; }
.filter { display: flex; gap: 6px; align-items: end; justify-content: flex-start; }
.filter select { max-width: 100%; }
select, input:not([type=checkbox]) { min-width: 0; min-height: 43px; max-width: 100%; border: 1px solid #cdd7e6; border-radius: 8px; background: #fff; padding: 7px 8px; font-size: 1rem; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; color: #526580; font-size: .85rem; font-weight: 750; }
.back svg { width: 17px; }
.detail-panel { margin-top: 14px; }
.scoreboard, .profile-banner { border-radius: var(--radius); background: linear-gradient(135deg,#14243b,#203a58); color: white; padding: 15px; }
.score-meta { display: flex; align-items: center; justify-content: center; gap: 6px; color: #d6e1f0; text-align: center; font-size: .78rem; }
.score-meta svg { width: 15px; color: var(--accent); }
.score-main { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 7px; margin: 20px auto; max-width: 620px; text-align: center; }
.score-main a { display: grid; justify-items: center; gap: 7px; font-size: .86rem; }
.score-main .match-score { font-size: clamp(1.18rem,5vw,1.95rem); padding: 7px 10px; }
.events, .player-list { list-style: none; padding: 0; margin: 0; }
.events li, .player-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-top: 1px solid var(--line); }
.events time { color: var(--orange-ink); font-size: .85rem; font-weight: 800; min-width: 25px; }
.events b, .events small, .player-name b, .player-name small, .roster small { display: block; }
.events a:hover, .roster a:hover { text-decoration: underline; }
.events small, .player-name small, .roster small { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.player-list strong { margin-left: auto; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.profile-banner { display: flex; align-items: center; gap: 14px; margin-top: 7px; }
.profile-banner p { color: #d6e1f0; }
.profile-banner .eyebrow { color: #ffbc98; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.metrics > div { padding: 11px 6px; display: grid; gap: 3px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.metrics b { font-size: 1.37rem; color: var(--orange-ink); }
.metrics span { color: var(--muted); font-size: .72rem; }
.team-grid, .about-grid { display: grid; gap: 10px; }
.team-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 11px; }
.team-card:hover { border-color: #9db1cb; }
.team-card h2 { font-size: .93rem; line-height: 1.23; }
.team-card p, .team-card > span:not(.badge) { color: var(--muted); font-size: .71rem; margin-top: 2px; }
.team-card > svg { width: 15px; color: var(--orange-ink); }
.info-panel { padding-bottom: 13px; }
.info-panel > p { margin: 10px 13px; color: var(--muted); font-size: .89rem; line-height: 1.55; }
.info-panel > .button { margin: 0 13px; }
.arena-image { width: 100%; max-height: 350px; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0 13px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.gallery span { display: block; font-size: .72rem; color: var(--muted); margin-top: 5px; }

.office-top { background: var(--navy); color: white; }
.office-top-inner { display: flex; align-items: center; min-height: 64px; gap: 10px; justify-content: space-between; }
.office-top-inner .brand { min-width: 0; flex-shrink: 1; }
.office-top-inner .brand span { min-width: 0; }
.office-tag { display: none; }
.office-links { display: flex; flex-shrink: 0; align-items: center; gap: 8px; font-size: .75rem; }
.office-links > a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.office-shell { padding-block: 15px 32px; }
.office-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; padding: 5px; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 19px; }
.office-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 2px; min-height: 46px; font-size: clamp(.66rem, 2.6vw, .81rem); font-weight: 760; border-radius: 7px; color: #4f6179; }
.office-nav a svg { width: 17px; height: 17px; }
.office-nav a[aria-current] { color: #9a3b14; background: #fff0e7; }
.office-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.office-heading h1 { margin-top: 0; }
.office-tabs { flex-wrap: wrap; margin-bottom: 10px; }
.office-tabs a { font-size: .73rem; }
.office-row { min-height: 65px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 10px; }
.office-row + .office-row { border-top: 1px solid var(--line); }
.office-row > div { display: grid; gap: 3px; }
.office-row small { color: var(--muted); font-size: .74rem; }
.office-row b { font-size: .86rem; }
.office-row > .button { grid-column: 1 / -1; justify-self: start; }
.office-result { justify-items: end; }
.office-result strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; padding: 3px 6px; font-size: .66rem; font-weight: 780; color: #344f75; background: #e9effa; border-radius: 6px; }
.status.finished { background: #e7f5ee; color: #246646; }
.status.cancelled, .status.postponed { background: #fff0e5; color: #954022; }
.directory-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.directory-row > .button { grid-column: auto; }
.editor { padding: 14px; }
.editor-form { display: grid; gap: 12px; }
.office-main, .editor-form > *, .office-row > div { min-width: 0; }
.editor h2 { font-size: 1.02rem; margin-bottom: 6px; }
.editor p { font-size: .84rem; line-height: 1.55; margin-bottom: 9px; }
.field { display: grid; gap: 5px; min-width: 0; font-size: .83rem; font-weight: 720; }
.field small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.field-grid :is(select,input) { width: 100%; }
.upload { background: #f5f7fb; padding: 10px; border-radius: 8px; }
.upload input { font-size: .79rem; width: 100%; }
.check { display: flex; align-items: center; gap: 5px; font-size: .8rem; }
.check input { width: 18px; height: 18px; }
.actions { display: flex; gap: 8px; padding-top: 5px; }
.alert { padding: 9px 12px; margin: 0 0 10px; color: #8d241c; background: #fff0eb; border: 1px solid #eec9c2; border-radius: 8px; font-size: .85rem; }
.alert.ok { color: #1f6743; background: #e7f7ed; border-color: #bfe1ca; }
.result-editor { border-top: 1px solid var(--line); padding-top: 12px; }
.quick-score .result-editor { border-top: 0; padding-top: 0; }
.match-fields { display: grid; gap: 12px; }
.match-details { border: 1px solid var(--line); border-radius: 9px; }
.match-details summary { padding: 13px 10px; cursor: pointer; font-size: .85rem; font-weight: 750; }
.match-details .match-fields { padding: 0 10px 10px; }
.score-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.score-fields .field { padding: 10px; background: #f4f6fb; border-radius: 9px; text-align: center; align-content: space-between; }
.score-fields input { width: 100%; min-height: 54px; text-align: center; font-size: 1.4rem; font-weight: 800; }
.goals-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-top: 15px; }
.goals-heading p { color: var(--muted); }
.goals-heading button { flex-shrink: 0; }
.goal-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 8px; margin-top: 7px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
.remove-goal { align-self: end; justify-self: end; font-size: 1rem; width: 42px; }
.login-layout { min-height: 100dvh; }
.login-brand { background: linear-gradient(90deg,#102035f5,#172a47b8), url("/media/arena.webp") center / cover; padding: 18px; color: #fff; min-height: 150px; }
.login-brand > div { margin-top: 14px; }
.login-brand .eyebrow { color: #ffe0cf; }
.login-brand h1 { font-size: clamp(1.45rem,7vw,3.4rem); letter-spacing: -.05em; line-height: 1.03; margin-block: 4px; }
.login-brand h1 br { display: none; }
.login-brand h1 em { font-style: normal; color: var(--accent); }
.login-brand > span { display: none; }
.login-main { display: grid; place-items: center; padding: 15px; }
.login-form { width: min(100%, 420px); padding: 19px; display: grid; gap: 11px; }
.login-form h2 { font-size: 1.35rem; }
.login-form p:not(.alert) { color: var(--muted); font-size: .86rem; }
.login-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; color: var(--orange-ink); background: #fff0e7; }

@media (max-width: 559px) {
  .office-top-inner { min-height: 56px; }
  .office-top-inner .brand small { display: none; }
  .office-links .button, .office .button, .office .field :is(input:not([type=checkbox]), select) { min-height: 44px; }
  .office .field input[type=datetime-local] { display: block; width: 100%; }
  .office .field-grid { grid-template-columns: minmax(0, 1fr); }
  .office-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .office-tabs a { min-height: 44px; }
  .office-match > .button { justify-self: end; }
  .office-result .status { max-width: 104px; text-align: center; }
  .office-heading p { margin-top: 4px; }
  .goals-heading { flex-wrap: wrap; gap: 4px; }
  .goal-player { grid-column: 1 / -1; }
  .office .actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding-block: 9px max(9px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .office .actions .primary { flex: 1; }
  .office :is(input, select, summary) { scroll-margin-bottom: 74px; }
}

@media (min-width: 560px) {
  .wrap { width: min(100% - 48px, 1200px); }
  .match-row { padding-inline: 17px; grid-template-columns: minmax(0,1fr) 76px minmax(0,1fr); gap: 9px; }
  .side { gap: 8px; font-size: .88rem; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-stat { display: table-cell; }
  .standings :is(th,td), .roster :is(th,td) { padding-inline: 8px; }
  .section-header { padding-inline: 16px; }
  .section-header h2 { font-size: 1.09rem; }
  .hero-inner { min-height: 335px; }
  .office-row { grid-template-columns: minmax(0,1fr) auto auto; padding: 11px 14px; gap: 12px; }
  .office-row > .button { grid-column: auto; }
  .directory-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .editor { padding: 18px; }
}
@media (min-width: 820px) {
  .top-inner { min-height: 72px; }
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav a { display: flex; align-items: center; gap: 6px; min-height: 43px; padding: 8px 9px; border-radius: 7px; color: #d2deef; font-weight: 700; font-size: .82rem; }
  .desktop-nav svg { width: 16px; height: 16px; }
  .desktop-nav a[aria-current], .desktop-nav a:hover { background: #ffffff13; color: #ffc6a9; }
  .bottom-nav { display: none; }
  .public footer { padding: 25px 0; }
  .hero::before { background: linear-gradient(90deg,#101f34 2%,#11243aed 30%,#1022395c 75%), linear-gradient(0deg,#10223b86,transparent 60%); }
  .hero-inner { min-height: 354px; flex-direction: row; align-items: end; justify-content: space-between; padding-block: 38px; }
  .hero-copy { align-self: center; }
  .hero h1 { font-size: clamp(3.2rem,5.8vw,5.0rem); }
  .hero p { font-size: 1.1rem; }
  .hero-venue { padding: 10px 14px; min-width: 178px; }
  .dashboard { grid-template-columns: minmax(0, 1.65fr) minmax(285px, 1fr); margin-block: 22px 46px; gap: 18px; }
  .dashboard-main, .dashboard-side { gap: 18px; }
  .page { padding-block: 32px 49px; }
  .page-intro { margin-bottom: 20px; }
  .team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
  .about-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 14px; }
  .gallery { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .office-top-inner { justify-content: flex-start; }
  .office-tag { display: inline; border: 1px solid #ffffff38; border-radius: 6px; color: #e3eaf6; padding: 6px 9px; font-size: .66rem; font-weight: 750; letter-spacing: .1em; }
  .office-links { margin-left: auto; gap: 15px; }
  .office-shell { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 18px; padding-top: 23px; }
  .office-nav { display: flex; flex-direction: column; align-self: start; margin: 0; }
  .office-nav a { flex-direction: row; justify-content: flex-start; gap: 9px; padding: 8px 10px; }
  .office-main { min-width: 0; }
  .office-heading { align-items: center; }
  .login-layout { display: grid; grid-template-columns: 1fr 1.15fr; }
  .login-brand { padding: 30px; display: grid; align-content: space-between; justify-items: start; }
  .login-brand h1 br { display: initial; }
  .login-brand > span { display: inline; color: #b8c6da; font-size: .74rem; font-weight: 750; letter-spacing: .16em; }
  .login-form { padding: 25px; }
}
@media (min-width: 1050px) {
  .top-tools { gap: 12px; }
  .top-tools .info-nav span { display: inline; }
  .desktop-nav { gap: 8px; }
  .desktop-nav a { padding-inline: 13px; }
  .page .match-row { grid-template-columns: minmax(0,1fr) 82px minmax(0,1fr) minmax(110px,.5fr); }
  .page .match-place { display: flex; align-items: center; justify-content: flex-end; text-align: right; gap: 7px; color: var(--muted); font-size: .72rem; }
  .match-place svg { width: 15px; }
  .office-shell { grid-template-columns: 215px minmax(0,1fr); }
  .goal-row { grid-template-columns: 1fr .57fr 1.4fr 1.4fr .8fr auto; gap: 6px; }
  .goal-row :is(select,input) { font-size: .82rem; }
}
@media (max-width: 359px) {
  .top-inner .brand small { font-size: .5rem; letter-spacing: .055em; }
  .top-inner .brand > svg { width: 31px; }
  .wrap { width: calc(100% - 22px); }
  .badge { width: 24px; height: 24px; }
  .badge.large { width: 41px; height: 41px; }
  .hero-badge { width: 56px; height: 56px; }
}
