:root {
  color-scheme: light;
  --ink: #15241d;
  --muted: #75827b;
  --soft: #aab5af;
  --line: #e3e9e5;
  --paper: #ffffff;
  --canvas: #f2f5f2;
  --pine: #12271f;
  --pine-2: #203d30;
  --field: #2d805b;
  --blue: #266fe4;
  --blue-soft: #ebf2ff;
  --amber: #e6a346;
  --red: #db6664;
  --shadow: 0 10px 28px rgba(24, 48, 37, .055);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(38,111,228,.42); outline-offset: 3px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: 248px; padding: 27px 17px 20px; background: var(--pine); color: #eaf2ed; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #b4e56d; color: #173321; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .04em; }
.brand small { margin-top: 2px; color: #97aa9e; font-size: 9px; letter-spacing: .2em; }
.sidebar-team { display: flex; align-items: center; gap: 10px; padding: 12px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); }
.team-emblem { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e6efe9; color: var(--pine); font-size: 17px; font-weight: 800; }
.sidebar-team strong, .sidebar-team small { display: block; }
.sidebar-team strong { font-size: 13px; }
.sidebar-team small { margin-top: 3px; color: #9fb2a6; font-size: 11px; }
.side-chevron { margin-left: auto; color: #a5b8ab; font-size: 19px; }
.nav-caption { margin: 27px 10px 9px; color: #84988d; font-size: 10px; letter-spacing: .08em; }
.nav-caption-spaced { margin-top: 24px; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 43px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #b9c8bf; text-align: left; cursor: pointer; transition: background .16s ease, color .16s ease; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item span { font-size: 13px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { background: #284a39; color: #d2f89f; }
.nav-count { margin-left: auto; min-width: 23px; padding: 2px 6px; border-radius: 20px; background: rgba(255,255,255,.1); text-align: center; font-size: 10px !important; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 15px 9px 3px; color: #8fa398; font-size: 10px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #b4e56d; box-shadow: none; }

.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 clamp(24px, 4vw, 60px); border-bottom: 1px solid rgba(222,230,225,.8); background: rgba(246,248,246,.93); backdrop-filter: blur(14px); }
.crumbs { display: flex; align-items: center; gap: 11px; color: #9aa69f; font-size: 12px; }
.crumbs span:last-child { color: #34433b; font-weight: 600; }
.crumb-slash { color: #c2cbc6; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.season-chip { padding: 7px 11px; border: 1px solid #e0e7e2; border-radius: 99px; background: #fff; color: #617168; font-size: 11px; }
.icon-button { display: grid; place-items: center; width: 37px; height: 37px; border: 0; border-radius: 50%; background: var(--blue); color: white; cursor: pointer; }
.icon-button .icon { width: 19px; height: 19px; }
.mobile-brand { display: none; align-items: center; gap: 9px; }
.page-root { width: min(1160px, 100%); margin: 0 auto; padding: 34px clamp(24px, 4vw, 60px) 68px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 1px 0 22px; }
.page-heading h1 { margin: 0; font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.045em; line-height: 1.2; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.heading-side { color: var(--muted); font-size: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-secondary { border-color: var(--line); background: white; color: var(--ink); }
.btn-quiet { background: var(--blue-soft); color: var(--blue); }
.btn-small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 11px; }

.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 240px; overflow: hidden; border-radius: 22px; background: var(--pine); color: #f0f6f1; box-shadow: 0 12px 28px rgba(13,38,26,.11); }
.hero-copy { position: relative; z-index: 1; padding: 30px 34px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #b9d2c0; font-size: 10px; letter-spacing: .08em; }
.hero-kicker:before { width: 18px; height: 1px; background: #b4e56d; content: ''; }
.hero h2 { max-width: 450px; margin: 0; font-size: clamp(25px, 3.4vw, 38px); line-height: 1.28; letter-spacing: -.055em; }
.hero-copy > p:not(.hero-kicker) { max-width: 370px; margin: 12px 0 22px; color: #abc0b2; font-size: 12px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.hero .btn { min-height: 38px; border-radius: 10px; font-size: 11px; }
.hero .btn-secondary { border-color: rgba(255,255,255,.17); background: transparent; color: #e9f2eb; }
.hero-art { position: relative; min-height: 220px; overflow: hidden; background: radial-gradient(ellipse at 55% 42%, rgba(89,153,104,.26), transparent 62%); }
.field-lines { position: absolute; top: 50%; left: 57%; width: min(330px, 85%); aspect-ratio: 1.48; transform: translate(-50%,-50%); border: 1px solid rgba(190,225,199,.24); border-radius: 5px; }
.field-lines:before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(190,225,199,.24); content: ''; }
.field-lines:after { position: absolute; top: 50%; left: 50%; width: 70px; aspect-ratio: 1; border: 1px solid rgba(190,225,199,.25); border-radius: 50%; transform: translate(-50%,-50%); content: ''; }
.field-box { position: absolute; top: 50%; width: 23%; height: 48%; border: 1px solid rgba(190,225,199,.24); transform: translateY(-50%); }
.field-box.left { left: -1px; border-left: 0; }.field-box.right { right: -1px; border-right: 0; }
.field-ball { position: absolute; top: 48%; left: 54%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #b4e56d; color: #173321; box-shadow: none; transform: translate(-50%,-50%); }
.field-ball .icon { width: 24px; height: 24px; }
.hero-note { position: absolute; right: 25px; bottom: 21px; color: #91a99a; font-size: 10px; letter-spacing: .05em; }

.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.summary-item { position: relative; padding: 17px 20px 16px; }
.summary-item + .summary-item:before { position: absolute; top: 18px; bottom: 18px; left: 0; width: 1px; background: var(--line); content: ''; }
.summary-value { display: block; color: var(--ink); font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.summary-value em { color: var(--blue); font-size: 11px; font-style: normal; }
.summary-label { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.panel-pad { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-head h2, .section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 600; cursor: pointer; }
.text-link .icon { width: 14px; height: 14px; }
.chart-wrap { height: 155px; margin: 0 -3px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 4px; color: #9da9a2; font-size: 10px; }
.next-match { position: relative; overflow: hidden; padding: 20px; border-radius: 16px; background: #eaf2eb; }
.next-match:after { position: absolute; right: -35px; bottom: -70px; width: 165px; height: 165px; border: 1px solid rgba(39,109,69,.14); border-radius: 50%; box-shadow: 0 0 0 18px rgba(39,109,69,.035), 0 0 0 38px rgba(39,109,69,.025); content: ''; }
.next-label { display: flex; align-items: center; justify-content: space-between; color: #6f8276; font-size: 10px; }
.live-badge { padding: 4px 8px; border-radius: 99px; background: #d8e9d9; color: #347348; font-size: 9px; }
.opponent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 19px 0 16px; }
.versus-side { display: flex; align-items: center; gap: 9px; }
.versus-side.right { flex-direction: row-reverse; text-align: right; }
.mini-crest { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: white; color: var(--field); font-size: 16px; font-weight: 800; box-shadow: 0 4px 12px rgba(16,56,29,.06); }
.versus-side strong, .versus-side small { display: block; }
.versus-side strong { font-size: 11px; }.versus-side small { margin-top: 3px; color: #77897d; font-size: 9px; }
.versus { color: #8ba092; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.match-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(25,87,47,.1); color: #607569; font-size: 10px; }
.match-meta .icon { width: 14px; height: 14px; }
.recent-list { display: grid; }
.match-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; min-height: 61px; border-top: 1px solid #edf1ee; }
.match-row:first-child { border-top: 0; }
.match-date { color: #8a9890; font-size: 10px; }
.match-teams strong { display: block; font-size: 11px; font-weight: 600; }
.match-teams small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.score-pill { min-width: 55px; padding: 6px 8px; border-radius: 8px; background: #f1f5f2; text-align: center; font-size: 11px; font-weight: 700; }
.score-pill.win { background: #e9f5e8; color: #44834e; }.score-pill.draw { background: #fff5e2; color: #aa7d2e; }.score-pill.loss { background: #fbebeb; color: #bd5c59; }.score-pill.scheduled { background: var(--blue-soft); color: var(--blue); }
.leader-list { display: grid; gap: 12px; }
.leader-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; }
.avatar.large { width: 62px; height: 62px; font-size: 20px; }
.leader-row strong { display: block; font-size: 11px; }.leader-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.leader-value { color: var(--field); font-size: 14px; font-weight: 700; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.quick-link { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 8px 10px; border: 1px solid #eaf0ec; border-radius: 11px; background: #fff; text-align: left; cursor: pointer; }
.quick-link:hover { border-color: #c7d9cb; background: #f8fbf8; }
.quick-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eff5ef; color: var(--field); }
.quick-icon .icon { width: 17px; height: 17px; }.quick-link span:last-child { font-size: 10px; font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: 9px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #9aa69f; }
.search-box .icon { width: 16px; height: 16px; }.search-box input { width: 150px; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.roster { overflow: hidden; }
.roster-head, .player-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) .72fr .72fr .72fr 88px; align-items: center; gap: 10px; padding: 0 20px; }
.roster-head { min-height: 42px; background: #f7f9f7; color: #91a097; font-size: 10px; }
.player-row { min-height: 70px; border-top: 1px solid #edf1ee; }
.player-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-identity strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.player-identity small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.jersey { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; background: #eef4ef; color: var(--field); font-size: 11px; font-weight: 800; }
.table-value { color: #4c5b53; font-size: 11px; }.table-value strong { color: var(--ink); font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; }
.empty-state { display: grid; justify-items: center; padding: 48px 18px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #eef4ef; color: var(--field); }
.empty-mark .icon { width: 25px; height: 25px; }
.empty-state h3 { margin: 15px 0 0; font-size: 15px; }.empty-state p { max-width: 280px; margin: 7px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.match-card-list { display: grid; gap: 11px; }
.match-card { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 18px; padding: 17px 20px; }
.match-day { text-align: center; }.match-day strong { display: block; font-size: 18px; letter-spacing: -.04em; }.match-day small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.match-description { display: flex; align-items: center; gap: 12px; min-width: 0; }.match-description .mini-crest { background: #f1f5f2; }.match-description strong { display: block; font-size: 13px; }.match-description small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.match-card-score { min-width: 75px; text-align: right; }.match-card-score strong { display: block; font-size: 15px; }.match-card-score small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.player-profile { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 22px; }
.profile-main { display: flex; align-items: center; gap: 14px; }.profile-main h2 { margin: 0; font-size: 20px; }.profile-main p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 15px; border-top: 1px solid var(--line); }.profile-stat { padding: 17px 12px 0; text-align: center; }.profile-stat strong { display: block; color: var(--blue); font-size: 22px; }.profile-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.rank-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; scrollbar-width: none; }.rank-tabs::-webkit-scrollbar { display: none; }
.rank-tab { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #718078; font-size: 10px; cursor: pointer; }.rank-tab.active { border-color: var(--pine); background: var(--pine); color: white; }
.rank-list { overflow: hidden; }.rank-row { display: grid; grid-template-columns: 44px minmax(140px,1fr) 1fr 70px; align-items: center; gap: 12px; min-height: 65px; padding: 0 18px; border-top: 1px solid #edf1ee; }.rank-row:first-child { border-top: 0; }
.rank-number { color: #9ba79f; font-size: 14px; font-weight: 700; text-align: center; }.rank-row:nth-child(1) .rank-number { color: #d7a33f; }.rank-row:nth-child(2) .rank-number { color: #7c8b91; }.rank-row:nth-child(3) .rank-number { color: #b67b58; }
.rank-bar { height: 5px; overflow: hidden; border-radius: 99px; background: #edf2ee; }.rank-bar span { display: block; height: 100%; border-radius: inherit; background: #7bb068; }.rank-score { color: var(--field); font-size: 15px; font-weight: 700; text-align: right; }
.moment-list { display: grid; gap: 12px; }.moment-card { padding: 18px 20px; }.moment-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }.moment-card p { margin: 12px 0 0; font-size: 12px; line-height: 1.8; }.moment-tag { display: inline-flex; margin-top: 12px; padding: 5px 8px; border-radius: 7px; background: #eef4ef; color: #54735e; font-size: 9px; }
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.honor-card { position: relative; overflow: hidden; min-height: 185px; padding: 19px; background: #fff; }.honor-card:after { position: absolute; right: -21px; bottom: -36px; width: 110px; height: 110px; border: 1px solid #f0e3c8; border-radius: 50%; box-shadow: 0 0 0 12px #fbf7ef,0 0 0 25px #fcfaf5; content: ''; }.honor-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #fbf2df; color: #ae8133; }.honor-icon .icon { width: 20px; height: 20px; }.honor-card h3 { position: relative; z-index: 1; margin: 17px 0 0; font-size: 14px; }.honor-card p { position: relative; z-index: 1; margin: 6px 0 0; color: var(--muted); font-size: 10px; }.honor-year { position: absolute; z-index: 1; right: 17px; bottom: 15px; color: #a88f68; font-size: 10px; }
.balance-card { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); align-items: center; gap: 15px; padding: 22px; background: var(--pine); color: white; }.balance-main small, .balance-cell small { display: block; color: #9fb7a8; font-size: 10px; }.balance-main strong { display: block; margin-top: 6px; font-size: 29px; letter-spacing: -.05em; }.balance-cell strong { display: block; margin-top: 8px; font-size: 15px; }
.ledger-list { overflow: hidden; }.ledger-row { display: grid; grid-template-columns: 1fr 100px 90px; align-items: center; gap: 12px; min-height: 61px; padding: 0 18px; border-top: 1px solid #edf1ee; }.ledger-row:first-child { border-top: 0; }.ledger-row strong { display: block; font-size: 11px; }.ledger-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }.ledger-amount { font-size: 12px; font-weight: 700; text-align: right; }.ledger-amount.income { color: #3e925d; }.ledger-amount.expense { color: #c7665d; }.ledger-type { color: var(--muted); font-size: 10px; text-align: right; }
.tactics-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; }.tactics-pitch { position: relative; overflow: hidden; min-height: 440px; border: 8px solid #245d42; border-radius: 17px; background: #367d55; }.tactics-pitch:before { position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.5); content: ''; }.pitch-half { position: absolute; top: 12px; bottom: 12px; left: 50%; border-left: 1px solid rgba(255,255,255,.5); }.pitch-circle { position: absolute; top: 50%; left: 50%; width: 82px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transform: translate(-50%,-50%); }.pitch-box { position: absolute; top: 35%; width: 15%; height: 30%; border: 1px solid rgba(255,255,255,.5); }.pitch-box.left { left: 12px; border-left: 0; }.pitch-box.right { right: 12px; border-right: 0; }
.tactic-player { position: absolute; display: grid; justify-items: center; gap: 4px; color: white; transform: translate(-50%,-50%); text-shadow: 0 1px 3px rgba(0,0,0,.35); }.tactic-dot { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: #276fe4; box-shadow: 0 3px 8px rgba(0,0,0,.2); font-size: 10px; font-weight: 800; }.tactic-player small { max-width: 65px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tactic-bench { display: grid; gap: 8px; margin-top: 17px; }.bench-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; background: #f5f8f5; }.bench-row strong { font-size: 10px; }.bench-row small { margin-left: auto; color: var(--muted); font-size: 9px; }
.more-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.more-tile { display: flex; align-items: center; gap: 13px; min-height: 88px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; cursor: pointer; }.more-tile:hover { border-color: #c4d8c9; }.more-tile .quick-icon { width: 43px; height: 43px; border-radius: 12px; }.more-tile strong { display: block; font-size: 12px; }.more-tile small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.team-cover { display: flex; align-items: center; gap: 17px; padding: 22px; background: var(--pine); color: white; }.team-cover .team-emblem { width: 62px; height: 62px; border-radius: 18px; font-size: 25px; }.team-cover h2 { margin: 0; font-size: 20px; }.team-cover p { margin: 6px 0 0; color: #a5b9ab; font-size: 11px; }.detail-list { display: grid; }.detail-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid #edf1ee; font-size: 11px; }.detail-row:first-child { border-top: 0; }.detail-row span { color: var(--muted); }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(14,29,21,.55); backdrop-filter: blur(4px); }
.modal { width: min(480px,100%); max-height: min(90vh,780px); overflow: auto; padding: 23px; border-radius: 18px; background: white; box-shadow: 0 24px 90px rgba(0,0,0,.2); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.modal-head h2 { margin: 0; font-size: 18px; }.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.modal-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f5f2; color: #68776e; cursor: pointer; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }.form-field { display: grid; gap: 6px; min-width: 0; }.form-field.full { grid-column: 1/-1; }.form-field label { color: #617168; font-size: 10px; font-weight: 600; }.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #dfe7e1; border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; }.form-field textarea { min-height: 90px; resize: vertical; }.form-hint { color: #8b9891; font-size: 9px; line-height: 1.6; }.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.field-label { color: #617168; font-size: 10px; font-weight: 600; }
.match-player-list { overflow: hidden; border: 1px solid #e5ebe6; border-radius: 10px; }
.match-player-heading, .match-player-row { display: grid; grid-template-columns: minmax(0,1fr) 49px 49px 49px; align-items: center; gap: 6px; padding: 7px 8px; }
.match-player-heading { background: #f5f8f5; color: #8a9890; font-size: 9px; text-align: center; }.match-player-heading span:first-child { text-align: left; }
.match-player-row + .match-player-row { border-top: 1px solid #edf1ee; }
.attendance-cell { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.attendance-cell > input { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--field); }
.attendance-cell > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.attendance-cell .avatar { width: 27px; height: 27px; flex: 0 0 auto; font-size: 9px; }
.attendance-cell strong, .attendance-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-cell strong { font-size: 10px; }.attendance-cell small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.match-stat-input { display: grid; justify-items: center; gap: 3px; color: #89968e; font-size: 8px; }
.match-stat-input input { width: 42px; min-height: 31px; padding: 4px; border: 1px solid #e1e8e2; border-radius: 7px; text-align: center; font-size: 11px; }
.toast { position: fixed; z-index: 40; right: 18px; bottom: 24px; max-width: calc(100vw - 36px); padding: 11px 15px; border-radius: 10px; background: var(--pine); color: white; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .22s ease; }.toast.show { opacity: 1; transform: translateY(0); }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .sidebar { width: 215px; }.main-area { margin-left: 215px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.25fr) minmax(235px,.8fr); }
  .hero { grid-template-columns: 1.1fr .9fr; }.hero-copy { padding: 27px; }
  .roster-head, .player-row { grid-template-columns: minmax(155px,1.3fr) .7fr .65fr .65fr 70px; padding: 0 15px; }
}
@media (max-width: 780px) {
  .sidebar { display: none; }.main-area { margin: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { height: 58px; padding: 0 16px; }.mobile-brand { display: flex; }.mobile-brand .brand-mark { width: 30px; height: 30px; border-radius: 10px; }.mobile-brand .icon { width: 18px; height: 18px; }.mobile-brand strong { font-size: 13px; }.crumbs { display: none; }.season-chip { padding: 6px 9px; font-size: 10px; }.topbar-actions { gap: 8px; }.icon-button { width: 34px; height: 34px; }
  .page-root { padding: 18px 15px 30px; }.page-heading { align-items: center; margin: 3px 0 16px; }.page-heading h1 { font-size: 22px; }.page-heading p { margin-top: 5px; font-size: 10px; }.page-heading .btn { min-height: 38px; padding: 0 12px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }.hero-copy { padding: 23px 20px 18px; }.hero-kicker { margin-bottom: 13px; font-size: 9px; }.hero h2 { max-width: 300px; font-size: 27px; }.hero-copy > p:not(.hero-kicker) { margin: 9px 0 16px; font-size: 11px; }.hero-art { position: absolute; top: 0; right: 0; width: 43%; height: 100%; min-height: 0; opacity: .66; pointer-events: none; }.field-lines { left: 65%; width: 150%; }.field-lines:after { width: 45px; }.field-ball { left: 70%; width: 34px; height: 34px; }.field-ball .icon { width: 19px; height: 19px; }.hero-note { display: none; }.hero-actions { position: relative; z-index: 2; }.hero .btn { min-height: 37px; }
  .summary-strip { grid-template-columns: repeat(4,1fr); margin: 12px 0 14px; border-radius: 13px; }.summary-item { padding: 12px 7px 11px; text-align: center; }.summary-item + .summary-item:before { top: 12px; bottom: 12px; }.summary-value { font-size: 20px; }.summary-value em { font-size: 9px; }.summary-label { margin-top: 4px; font-size: 9px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }.stack { gap: 12px; }.panel { border-radius: 14px; }.panel-pad { padding: 16px; }.panel-head { margin-bottom: 13px; }.panel-head h2, .section-head h2 { font-size: 14px; }.panel-head p { font-size: 10px; }.chart-wrap { height: 137px; }.next-match { padding: 17px; }.opponent-row { margin: 16px 0 14px; }.match-row { grid-template-columns: 53px 1fr auto; min-height: 57px; gap: 9px; }
  .quick-links { grid-template-columns: repeat(4,1fr); gap: 7px; }.quick-link { display: grid; justify-items: center; gap: 5px; min-height: 72px; padding: 8px 4px; text-align: center; }.quick-icon { width: 33px; height: 33px; }.quick-link span:last-child { font-size: 9px; }
  .toolbar { gap: 6px; }.search-box { width: 125px; height: 37px; }.search-box input { width: 84px; font-size: 10px; }.toolbar .btn { min-height: 37px; }
  .roster { display: grid; gap: 8px; overflow: visible; border: 0; background: transparent; box-shadow: none; }.roster-head { display: none; }.player-row { grid-template-columns: 1fr auto; min-height: 67px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }.player-identity { gap: 9px; }.player-identity .avatar { width: 38px; height: 38px; }.player-identity strong { font-size: 12px; }.player-identity small { font-size: 9px; }.player-row .table-value { display: none; }.row-actions { grid-column: 2; grid-row: 1; }.row-actions .btn { min-height: 32px; }
  .match-card-list { gap: 9px; }.match-card { grid-template-columns: 50px minmax(0,1fr) 54px; gap: 7px; padding: 12px 10px; }.match-day strong { font-size: 16px; }.match-description { gap: 7px; min-width: 0; }.match-description > span:last-child { min-width: 0; }.match-description .mini-crest { width: 32px; height: 32px; flex: 0 0 auto; font-size: 12px; }.match-description strong { font-size: 10px; }.match-description small { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.match-card-score { min-width: 0; }.match-card-score strong { font-size: 12px; }.match-card-score .text-link { padding: 0; font-size: 8px; }
  .player-profile { grid-template-columns: 1fr; gap: 15px; padding: 17px; }.profile-main h2 { font-size: 18px; }.profile-stats { margin-top: 0; }.profile-stat { padding: 13px 4px 0; }.profile-stat strong { font-size: 19px; }.profile-stat span { font-size: 9px; }
  .rank-row { grid-template-columns: 31px minmax(110px,1fr) 1fr 43px; gap: 8px; min-height: 61px; padding: 0 11px; }.rank-row .avatar { width: 31px; height: 31px; }.rank-row .player-identity { gap: 7px; }.rank-row .player-identity strong { font-size: 10px; }.rank-row .player-identity small { font-size: 8px; }.rank-score { font-size: 13px; }
  .honor-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }.honor-card { min-height: 155px; padding: 14px; }.honor-card h3 { margin-top: 13px; font-size: 12px; }.honor-icon { width: 34px; height: 34px; }.honor-year { right: 13px; bottom: 12px; }
  .balance-card { grid-template-columns: repeat(3,1fr); gap: 15px 8px; padding: 17px; }.balance-main { grid-column: 1/-1; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.12); }.balance-main strong { font-size: 27px; }.balance-cell strong { font-size: 13px; }.balance-cell small { font-size: 9px; }.ledger-row { grid-template-columns: 1fr 75px; min-height: 58px; padding: 0 13px; }.ledger-type { display: none; }
  .tactics-layout { grid-template-columns: 1fr; }.tactics-pitch { min-height: 390px; }.more-grid { gap: 9px; }.more-tile { min-height: 78px; gap: 9px; padding: 10px; }.more-tile .quick-icon { width: 37px; height: 37px; }.more-tile strong { font-size: 11px; }.more-tile small { font-size: 9px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 12; display: grid; grid-template-columns: repeat(5,1fr); min-height: calc(63px + env(safe-area-inset-bottom)); padding: 7px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(219,228,222,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border: 0; background: transparent; color: #86938b; font-size: 9px; cursor: pointer; }.mobile-nav-item .icon { width: 19px; height: 19px; }.mobile-nav-item.active { color: var(--blue); }.mobile-add { display: grid; place-items: center; width: 30px; height: 23px; margin-bottom: -1px; border-radius: 8px; background: var(--blue); color: white; }.mobile-add .icon { width: 18px; height: 18px; }
  .modal-backdrop { align-items: end; padding: 0; }.modal { width: 100%; max-height: min(88vh,800px); padding: 20px 17px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }.modal-head h2 { font-size: 17px; }.form-field input, .form-field select { min-height: 46px; font-size: 13px; }.form-field textarea { min-height: 95px; font-size: 13px; }.form-field label { font-size: 10px; }.form-actions .btn { min-height: 44px; }.match-player-heading, .match-player-row { grid-template-columns: minmax(0,1fr) 42px 42px 42px; gap: 4px; padding-right: 5px; padding-left: 6px; }.match-stat-input input { width: 38px; }.match-stat-input { font-size: 7px; }.attendance-cell { gap: 5px; }.attendance-cell > span { gap: 4px; }.attendance-cell strong { font-size: 9px; }
  .team-cover { padding: 18px; }.detail-row { padding: 14px 0; }.toast { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .page-root { padding-right: 11px; padding-left: 11px; }.topbar { padding: 0 12px; }.hero-copy { padding: 20px 16px 16px; }.hero h2 { font-size: 24px; }.summary-item { padding-right: 4px; padding-left: 4px; }.summary-value { font-size: 18px; }.summary-label { font-size: 8px; }.quick-link span:last-child { font-size: 8px; }.more-tile { padding: 8px; }.more-tile .quick-icon { width: 32px; height: 32px; }
}

/* Shared workspace and the pitch-side recording desk. */
[hidden] { display: none !important; }
.sync-chip { padding: 6px 9px; border: 1px solid #dbe7df; border-radius: 8px; background: #f3f8f4; color: #397252; font-size: 10px; cursor: pointer; white-space: nowrap; }
.sync-chip[data-status="error"] { color: #b25448; background: #fff1ec; border-color: #efd5cd; }
.sync-chip[data-status="busy"] { color: #8b7135; background: #fff8e8; }
.cloud-entry { max-width: 480px; margin: 30px auto; padding: 32px; }
.cloud-entry h1 { margin: 12px 0; font-size: 26px; letter-spacing: -.04em; }
.cloud-entry p { font-size: 14px; line-height: 1.8; color: #718177; }
.cloud-entry-mark { font-size: 36px; }
.cloud-entry form { display: grid; gap: 12px; margin: 24px 0 12px; }
.cloud-entry input, .invite-form input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #d4e0d7; border-radius: 10px; background: #fff; color: #214a33; font: inherit; font-size: 16px; }
.cloud-entry input:focus, .invite-form input:focus { outline: 2px solid #74a489; outline-offset: 2px; }
.cloud-note { color: #718177; font-size: 12px; line-height: 1.8; }
.cloud-error { color: #b25448 !important; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.cloud-success { color: #2e7850 !important; }
.cloud-team-list { display: grid; gap: 10px; margin: 20px 0; }
.cloud-team-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 14px; border: 1px solid #dce7de; border-radius: 10px; background: #f5f9f5; color: #245137; text-align: left; cursor: pointer; }
.cloud-team-row span { font-size: 12px; }
.cloud-members { margin-top: 14px; }
.cloud-member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 65px; border-top: 1px solid #e7eee8; }
.cloud-member-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.cloud-member-row small { display: block; margin-top: 5px; color: #7d8c82; font-size: 11px; }
.invite-form { display: grid; gap: 11px; margin-top: 18px; }
.invite-form #invite-result { display: grid; gap: 10px; }
.danger { color: #b65c4f !important; }
button:disabled { opacity: .42; cursor: not-allowed; }
.tactic-studio { margin-top: 14px; padding: 15px 2px 2px; border-top: 1px solid #dce7dd; }
.studio-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin-bottom: 12px; }
.studio-heading strong { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #214d35; font-size: 15px; }
.studio-heading small { display: block; margin-top: 5px; color: #7a887e; font-size: 11px; }
.recording-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 6px; background: #fdeae5; color: #b54e40; font-size: 10px; white-space: nowrap; }
.recording-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #c65b4b; }
.tactic-record-controls { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 7px; }
.tactic-record-controls .btn { min-width: 0; min-height: 46px; padding: 0 8px; font-size: 12px; }
.record-button { background: #a14c3d; border-color: #a14c3d; color: #fff; }
.record-button:hover { background: #8e4034; }
.tactic-save-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.tactic-save-row .btn { min-height: 44px; }
.tactic-save-row .text-link { min-height: 44px; font-size: 11px; }
.tactic-list { display: grid; gap: 11px; margin-top: 16px; }
.saved-tactic { border: 1px solid #dfe8e1; border-radius: 12px; overflow: hidden; }
.saved-tactic.selected { border-color: #6a9978; box-shadow: inset 3px 0 #49845c; }
.saved-tactic-open { display: flex; align-items: center; width: 100%; gap: 12px; padding: 13px; border: 0; background: #fff; text-align: left; color: #2b4e36; cursor: pointer; }
.saved-tactic-open > span:nth-child(2) { flex: 1; min-width: 0; }
.saved-tactic-open strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.saved-tactic-open small { display: block; margin-top: 7px; color: #819087; font-size: 11px; }
.tactic-mini-pitch { display: grid; place-items: center; flex: 0 0 35px; height: 46px; border: 2px solid #aac5af; border-radius: 4px; background: #edf5ee; font-size: 24px; }
.saved-tactic-actions { display: flex; justify-content: flex-end; gap: 20px; padding: 0 13px 6px; background: #fff; }
.saved-tactic-actions button { min-height: 36px; font-size: 11px; }
@media (max-width: 780px) {
  .topbar-actions { gap: 6px; }
  .topbar-actions .season-chip { display: none; }
  .cloud-entry { margin: 12px 0; padding: 24px 18px; }
  .cloud-entry h1 { font-size: 25px; }
  .cloud-members .panel-head { align-items: flex-start; }
  .cloud-members .panel-head p { max-width: 220px; line-height: 1.7; }
  .tactic-studio .tactic-play { min-width: 80px; padding: 0 10px; }
  .tactic-timeline input[type="range"] { min-height: 36px; }
  .tactic-time { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* A more considered match-day palette: deep pine, chalk, and a single lime signal. */
:root {
  --ink: #192a21;
  --muted: #75867b;
  --soft: #a9b7ad;
  --line: #e1e9e2;
  --paper: #fff;
  --canvas: #eef3ef;
  --pine: #15362a;
  --pine-2: #244c38;
  --field: #35754f;
  --blue: #286b4a;
  --blue-soft: #e9f2eb;
  --shadow: 0 8px 24px rgba(27, 55, 38, .055), 0 1px 2px rgba(27, 55, 38, .035);
}
body { background: linear-gradient(180deg, #f4f7f4 0, var(--canvas) 44rem); }
.topbar { border-color: rgba(215, 226, 217, .9); background: rgba(246, 249, 246, .94); }
.brand-mark { background: #d2ec85; }
.hero { background: linear-gradient(118deg, #15362a 0%, #1d4432 72%, #264b37 100%); box-shadow: 0 16px 38px rgba(19, 54, 39, .15); }
.hero .btn { min-height: 44px; }
.hero-art { background: radial-gradient(ellipse at 58% 43%, rgba(179, 218, 108, .18), transparent 64%); }
.field-ball { background: #d2ec85; }
.summary-strip { border-color: #e1e9e2; box-shadow: 0 5px 18px rgba(27, 55, 38, .035); }
.summary-item + .summary-item:before { background: #e8eee9; }
.panel { border-color: #e3eae4; box-shadow: 0 7px 22px rgba(27, 55, 38, .045), 0 1px 2px rgba(27, 55, 38, .025); }
.panel-head h2, .section-head h2 { letter-spacing: -.035em; }
.page-heading h1 { letter-spacing: -.05em; }
.btn { min-height: 44px; border-radius: 12px; background: linear-gradient(180deg, #397c55, #286b4a); box-shadow: 0 4px 10px rgba(40, 107, 74, .15); }
.btn:hover { filter: brightness(1.035); box-shadow: 0 6px 15px rgba(40, 107, 74, .2); }
.btn:active { transform: translateY(0); }
.btn-secondary { border-color: #dce6de; background: #fff; color: var(--ink); box-shadow: none; }
.btn-quiet { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
.icon-button { background: linear-gradient(180deg, #397c55, #286b4a); }
.mobile-nav { border-color: rgba(215, 226, 217, .92); }
.mobile-nav-item.active { color: #286b4a; }
.mobile-add { background: #286b4a; }

/* Form controls are sized and spaced for one-handed use. */
.form-grid { gap: 15px 13px; }
.form-field { gap: 7px; }
.form-field label, .field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #52675a; font-size: 11px; font-weight: 650; }
.required-mark { color: #84958a; font-size: 9px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #dce6de;
  border-radius: 12px;
  background: #fbfdfb;
  color: var(--ink);
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #a5b1a8; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: #bfcec2; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: #6a9877;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62, 125, 82, .12);
}
.form-field input[aria-invalid="true"] { border-color: #cf766d; box-shadow: 0 0 0 3px rgba(207, 118, 109, .12); }
.form-field textarea { min-height: 116px; line-height: 1.7; }
.form-hint { color: #78887d; font-size: 10px; line-height: 1.65; }
.field-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-count { color: #98a69b; font-size: 10px; font-variant-numeric: tabular-nums; }
.form-actions { padding-top: 8px; }
.form-actions .btn { min-width: 104px; }
.modal { border: 1px solid rgba(223, 232, 225, .9); box-shadow: 0 28px 90px rgba(11, 33, 20, .24); }
.modal-head h2 { letter-spacing: -.04em; }
.modal-head p { font-size: 11px; line-height: 1.6; }
.form-field input[type="date"] { min-width: 0; }
.form-field input[type="number"] { font-variant-numeric: tabular-nums; }
.score-entry { display: grid; gap: 7px; }
.score-inputs { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); align-items: end; gap: 7px; }
.score-stepper { display: grid; grid-template-columns: 42px minmax(44px,1fr) 42px; align-items: center; overflow: hidden; min-height: 55px; border: 1px solid #dce6de; border-radius: 13px; background: #fbfdfb; }
.score-stepper button { display: grid; place-items: center; width: 42px; height: 53px; padding: 0; border: 0; background: transparent; color: #397c55; font-size: 22px; font-weight: 500; cursor: pointer; touch-action: manipulation; }
.score-stepper button:active { background: #e9f2eb; }
.score-stepper input { width: 100%; min-width: 0; min-height: 53px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 25px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.score-stepper input:focus { outline: 0; box-shadow: none; }
.score-stepper:focus-within { border-color: #6a9877; box-shadow: 0 0 0 3px rgba(62, 125, 82, .12); }
.score-stepper input::placeholder { color: #c1cbc3; }
.score-colon { display: grid; place-items: center; height: 55px; color: #85948a; font-size: 23px; font-weight: 500; }
.score-hint { margin: 0; color: #829087; font-size: 10px; line-height: 1.5; }
.score-entry.is-incomplete .score-hint { color: #bc6259; }
.score-field [aria-invalid="true"] { color: #bc6259; }
.match-player-list { border-color: #e2eae3; }
.match-player-heading { background: #f4f8f4; }
.match-stat-input input { width: 42px; min-height: 38px; padding: 5px; border-color: #e0e8e1; border-radius: 9px; background: #fbfdfb; font-size: 13px; }
.attendance-cell { min-height: 44px; }
.attendance-cell > input { accent-color: #397c55; }
.match-player-row { min-height: 54px; }

/* Portrait pitch. Our goalkeeper stays at the bottom; attacks move upward. */
.tactics-layout { grid-template-columns: minmax(0, .95fr) minmax(290px, 1.05fr); gap: 16px; align-items: start; }
.tactics-board { min-width: 0; padding: 13px; border: 1px solid #dce7dd; border-radius: 17px; background: #f8fbf8; box-shadow: 0 7px 22px rgba(27, 55, 38, .04); }
.pitch-orientation { display: flex; align-items: center; gap: 7px; margin: 1px 3px 11px; color: #75867b; font-size: 10px; }
.pitch-orientation strong { color: #286b4a; font-size: 11px; }
.pitch-opponent-label { margin-left: auto; }
.tactics-header-actions { display: flex; align-items: center; gap: 9px; }
.tactics-reset { min-height: 36px; padding: 0 6px; border: 0; background: transparent; color: #718177; font-size: 10px; cursor: pointer; }
.tactics-reset:hover { color: #286b4a; }
.tactics-pitch {
  width: min(100%, 430px);
  min-height: 0;
  aspect-ratio: 7 / 10;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #285c40;
  border-radius: 14px;
  background-color: #367b53;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 10%, transparent 10% 20%), linear-gradient(150deg, #3c855b, #2f704d);
  box-shadow: inset 0 0 0 1px rgba(10, 42, 25, .1), 0 5px 14px rgba(31, 79, 49, .14);
  touch-action: pan-y;
}
.tactics-pitch:before { inset: 2.2%; border-color: rgba(245,255,246,.72); }
.pitch-half { top: 50%; right: 2.2%; bottom: auto; left: 2.2%; border-top: 1px solid rgba(245,255,246,.72); border-left: 0; }
.pitch-circle { top: 50%; left: 50%; width: 27%; border-color: rgba(245,255,246,.72); }
.pitch-box { left: 20%; right: auto; width: 60%; height: 18%; border-color: rgba(245,255,246,.72); }
.pitch-box-top { top: 2.2%; border-top: 0; }
.pitch-box-bottom { top: auto; bottom: 2.2%; border-bottom: 0; }
.pitch-six { position: absolute; z-index: 1; left: 35%; width: 30%; height: 7%; border: 1px solid rgba(245,255,246,.72); pointer-events: none; }
.pitch-six-top { top: 2.2%; border-top: 0; }
.pitch-six-bottom { bottom: 2.2%; border-bottom: 0; }
.pitch-goal { position: absolute; z-index: 1; left: 39%; width: 22%; height: 2%; border: 1px solid rgba(245,255,246,.72); background: rgba(239, 249, 240, .17); pointer-events: none; }
.pitch-goal-top { top: -.2%; border-top: 0; }
.pitch-goal-bottom { bottom: -.2%; border-bottom: 0; }
.tactic-route { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; pointer-events: none; }
.tactic-route path { fill: none; stroke: rgba(220, 242, 134, .9); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; }
.tactics-pitch.is-animating .tactic-route { opacity: 1; }
.tactics-pitch.is-animating .tactic-route path { stroke-dashoffset: 0; }
.tactic-ball { position: absolute; z-index: 4; top: 76%; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(22, 44, 29, .18); border-radius: 50%; background: #fff; font-size: 17px; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); box-shadow: 0 3px 8px rgba(9, 34, 17, .2); }
.tactics-pitch.is-animating .tactic-ball { opacity: 1; }
.tactic-player { z-index: 3; display: grid; justify-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #fff; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.tactic-player:focus-visible { z-index: 6; outline: 2px solid #e1f19c; outline-offset: 3px; border-radius: 9px; }
.tactic-player.is-dragging { z-index: 7; cursor: grabbing; }
.tactic-dot { width: 40px; height: 40px; border: 2px solid rgba(248,255,248,.96); background: #d2ec85; color: #1e432f; box-shadow: 0 3px 9px rgba(13, 43, 23, .3); font-size: 11px; text-shadow: none; }
.tactic-player small { max-width: 72px; padding: 2px 5px; border-radius: 5px; background: rgba(20, 49, 31, .53); font-size: 9px; line-height: 1.25; }
.tactics-select { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dce7dd; border-radius: 12px; background: #fff; color: #718177; font-size: 10px; }
.tactics-select select { min-height: 30px; border: 0; background: transparent; color: #244c38; font-size: 12px; font-weight: 700; }
.tactics-select select:focus { outline: 2px solid rgba(40, 107, 74, .2); outline-offset: 2px; }
.tactic-playback { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; margin-top: 12px; }
.tactic-play { min-width: 124px; min-height: 42px; gap: 9px; }
.tactic-play [data-tactic-play-icon] { font-size: 11px; }
.tactic-timeline { display: grid; min-width: 0; gap: 4px; }
.tactic-time { display: flex; justify-content: space-between; gap: 8px; color: #74847a; font-size: 9px; }
.tactic-time span:last-child { font-variant-numeric: tabular-nums; }
.tactic-timeline input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: #397c55; cursor: pointer; touch-action: pan-x; }
.tactics-hint { margin: 10px 2px 1px; color: #77877c; font-size: 10px; line-height: 1.6; }
.tactics-lineup { padding: 18px; }
.tactics-lineup .panel-head h2 { font-size: 16px; }
.tactics-lineup .tactics-bench-head { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid #edf1ee; }
.tactic-bench { margin-top: 13px; }
.bench-row { min-height: 48px; border: 1px solid #edf2ed; background: #f8faf8; }
.bench-row .avatar { width: 30px; height: 30px; }

@media (max-width: 780px) {
  .page-root { padding-top: 17px; }
  .page-heading { gap: 10px; }
  .page-heading p { max-width: 220px; line-height: 1.6; }
  .panel-pad { padding: 17px; }
  .modal-backdrop { background: rgba(13, 31, 20, .48); }
  .modal { max-height: min(88dvh, 820px); padding: 22px 17px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .modal:before { display: block; width: 38px; height: 4px; margin: -12px auto 16px; border-radius: 99px; background: #dbe4dc; content: ''; }
  .modal-head { position: sticky; z-index: 2; top: -22px; margin: -8px -3px 16px; padding: 8px 3px 13px; border-bottom: 1px solid #eef2ee; background: #fff; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .form-field.full, .score-entry.full { grid-column: 1 / -1; }
  .form-field input, .form-field select, .form-field textarea { min-height: 49px; font-size: 15px; }
  .form-field textarea { min-height: 122px; }
  .form-actions { position: sticky; z-index: 2; bottom: -18px; justify-content: stretch; margin: 18px -17px -18px; padding: 12px 17px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #edf2ee; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .form-actions .btn { flex: 1; min-height: 48px; }
  .score-stepper { grid-template-columns: 44px minmax(44px,1fr) 44px; min-height: 56px; }
  .score-stepper button, .score-stepper input { min-height: 54px; }
  .score-stepper button { width: 44px; }
  .score-inputs { gap: 5px; }
  .tactics-layout { grid-template-columns: 1fr; }
  .tactics-board { padding: 11px; border-radius: 15px; }
  .tactics-pitch { width: min(100%, 430px); min-height: 0; }
  .tactics-header-actions { gap: 5px; }
  .tactics-reset { min-height: 38px; font-size: 9px; }
  .tactics-lineup { padding: 16px; }
  .tactic-playback { gap: 9px; }
  .tactic-play { min-width: 112px; min-height: 45px; padding: 0 12px; }
}
@media (max-width: 380px) {
  .form-grid { gap: 12px 8px; }
  .score-stepper { grid-template-columns: 38px minmax(38px,1fr) 38px; }
  .score-stepper button { width: 38px; }
  .tactics-board { padding: 8px; }
  .tactic-dot { width: 36px; height: 36px; }
  .tactic-player small { max-width: 58px; font-size: 8px; }
}
