@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: light-dark(#f4f6fb, #0c111d);
  --surface: light-dark(#fff, #141c2b);
  --surface-2: light-dark(#f2f5fa, #1a2436);
  --text: light-dark(#162237, #edf2fc);
  --muted: light-dark(#50617a, #a3b1c8);
  --line: light-dark(#dce3ee, #2a384e);
  --brand: light-dark(#2151cd, #9cbbff);
  --brand-fill: #2e5ee7;
  --brand-hover: #234cc5;
  --brand-wash: light-dark(#e9efff, #202f51);
  --positive: light-dark(#185c52, #94d6c8);
  --danger: light-dark(#a3273b, #ff9cab);
  --pitch: light-dark(#eaf0fa, #1d2a41);
  --marking: light-dark(#9faec7, #647796);
  --home: light-dark(#2550c8, #9ebeff);
  --away: light-dark(#9a4a22, #ffb184);
  --ball: light-dark(#111d30, #fff);
  --focus-player: light-dark(#5124ae, #e6eaff);
  --shadow: 0 6px 20px rgb(12 20 38 / 6%);
  --display: Manrope, Inter, system-ui, sans-serif;
  font: 14px/1.5 Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand, .score, .money { font-family: var(--display); }
h1 { font-size: clamp(32px, 5vw, 51px); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; }
h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.025em; font-weight: 800; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 13px; font-weight: 650; line-height: 1.3; cursor: pointer;
}
button:hover, .button:hover, button[aria-pressed="true"] { background: var(--surface-2); }
button:disabled { opacity: .58; cursor: default; }
button.primary, .button.primary { color: #fff; background: var(--brand-fill); border-color: transparent; }
button.primary:hover:not(:disabled), .button.primary:hover { background: var(--brand-hover); }
.icon-button { width: 41px; flex: 0 0 41px; padding: 0; }
[data-icon], .glyph { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.glyph { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
select, input[type="number"], input[type="search"] {
  min-width: 0; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--text);
}
select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted, .hint, .subheading { color: var(--muted); }
.hint { margin-top: 6px; font-size: 12px; }
.subheading { margin-top: 7px; }
.eyebrow {
  display: flex; gap: 7px; align-items: center; margin-bottom: 6px;
  color: var(--brand); font-size: 10px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow .glyph { width: 13px; height: 13px; }
.money, .rating, .score, .clock, .event-time { font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip {
  display: inline-flex; align-items: center; white-space: nowrap; min-height: 23px; padding: 3px 8px;
  color: var(--muted); background: var(--surface-2); border-radius: 5px; font-size: 11px; font-weight: 700;
}

.app-shell { display: grid; grid-template-columns: 213px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; align-self: start; min-height: 100vh; display: flex; flex-direction: column;
  padding: 24px 13px 16px; background: var(--surface); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; margin: 0 3px 30px; font-size: 16px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font: 500 10px/1.4 Inter, sans-serif; letter-spacing: 0; margin-top: 4px; }
.brand-fc { color: var(--brand); }
.brand-mark {
  width: 37px; height: 37px; flex: 0 0 37px; border-radius: 9px;
  display: flex; align-items: end; justify-content: center; gap: 3px; padding: 8px 6px;
  background: #2e5ee7; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 24%);
}
.brand-mark i { display: block; width: 4px; transform: skew(-12deg); border-radius: 1px; background: currentColor; }
.brand-mark i:nth-child(1) { height: 10px; opacity: .65; }
.brand-mark i:nth-child(2) { height: 15px; opacity: .82; }
.brand-mark i:nth-child(3) { height: 20px; }
.navigation { display: grid; gap: 5px; }
.navigation a { display: flex; gap: 10px; align-items: center; min-height: 44px; border-radius: 8px; padding: 8px 11px; color: var(--muted); font-weight: 650; }
.navigation a:hover { color: var(--text); background: var(--surface-2); }
.navigation a[aria-current="page"] { color: var(--brand); background: var(--brand-wash); font-weight: 760; }
.rail-footer { margin-top: auto; padding: 14px 5px 3px; border-top: 1px solid var(--line); display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); }
.rail-footer .live-dot { color: var(--brand); }
.edition { margin-left: auto; font-size: 10px; letter-spacing: .12em; }
.app-main { min-width: 0; }
.topbar {
  min-height: 68px; padding: 9px clamp(14px, 3vw, 34px); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface);
}
.breadcrumbs, .top-tools { display: flex; gap: 10px; align-items: center; }
.breadcrumbs { font-size: 12px; color: var(--muted); }
.breadcrumbs strong { color: var(--text); white-space: nowrap; }
.breadcrumbs .glyph { width: 13px; height: 13px; }
.club-picker, .currency-picker {
  display: flex; align-items: center; gap: 6px; position: relative;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-height: 41px;
}
.club-picker { padding-left: 6px; }
.club-picker select, .currency-picker select {
  border: 0; min-height: 39px; font-size: 12px; font-weight: 700; background: transparent;
}
.club-picker select { appearance: none; padding: 5px 23px 5px 4px; }
.club-picker > [data-icon] { position: absolute; pointer-events: none; right: 6px; color: var(--muted); }
.club-picker > [data-icon] .glyph { width: 13px; height: 13px; }
.club-emblem {
  min-width: 23px; height: 24px; display: grid; place-items: center; border-radius: 5px 5px 8px 8px;
  background: var(--brand-wash); color: var(--brand); font: 800 9px/1 var(--display); letter-spacing: -.03em;
}
.club-emblem.is-away { background: light-dark(#faece2, #402d2b); color: var(--away); }
.workspace { max-width: 1332px; margin: auto; padding: 26px clamp(14px, 3vw, 34px) 48px; }
.page-head, .section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.page-head { margin-bottom: 17px; }
.manager-access { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; padding: 10px 14px; }
.league-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 12px; margin-top: 12px; align-items: start; }
.league-hero-actions { position: relative; display: grid; gap: 4px; justify-items: end; }
.league-hero-actions small { color: #d4e1fb; font-size: 10px; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings td, .standings th { padding: 8px 5px; text-align: right; border-bottom: 1px solid var(--line); }
.standings tr:last-child td, .standings tr:last-child th { border-bottom: 0; }
.standings thead th { color: var(--muted); background: var(--surface-2); font-size: 11px; }
.standings td:first-child, .standings th:first-child { padding-left: 12px; width: 28px; }
.standings td:last-child, .standings th:last-child { padding-right: 12px; }
.standings th:nth-child(2), .standings tbody th { text-align: left; }
.standings tbody td { font-size: 12px; }
.standings .league-points { color: var(--brand); font-weight: 770; }
.standings .managed-row { background: var(--brand-wash); }
.league-name { display: block; font-weight: 730; }
.standings small { display: block; font-size: 10px; font-weight: 450; }
.round-selector { margin-left: auto; }
.round-selector select { min-height: 36px; font-size: 12px; }
.calendar-kickoff { margin: 9px 14px 0; color: var(--muted); font-size: 12px; }
.calendar-fixture { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.calendar-fixture:last-child { border-bottom: 0; }
.fixture-teams { display: grid; gap: 2px; font-size: 12px; }
.fixture-status { display: grid; gap: 2px; text-align: center; }
.fixture-status small { white-space: nowrap; font-size: 9px; }
.fixture-score { font: 800 20px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.calendar-fixture button { min-height: 35px; padding-inline: 6px; white-space: nowrap; }
.sheet-context { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; padding: 9px 13px; }
.sheet-context label { display: flex; align-items: center; min-width: 0; gap: 6px; }
.sheet-context select { max-width: 100%; }
.sheet-context .muted { font-size: 12px; }
.league-submit { margin-top: 14px; }
.plan-sources { display: flex; justify-content: space-between; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-heading > [data-icon] { color: var(--brand); }
.panel-heading h2 { font-size: 16px; }
.panel-heading .chip { margin-left: auto; }
.panel-body { padding: 13px 16px 16px; }

.market-hero {
  isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: end; justify-content: space-between;
  gap: 16px; padding: clamp(19px, 3vw, 31px); min-height: 162px; border-radius: 14px; color: #f4f7ff;
  background: linear-gradient(106deg, #152849, #20427f 69%, #244e99);
}
.market-hero .eyebrow { color: #aec6ff; }
.market-hero p:not(.eyebrow) { margin-top: 8px; color: #d4e1fb; }
.hero-copy { position: relative; }
.hero-button { position: relative; flex: none; color: #eff4ff; border-color: #7694c4; background: #253d65; }
.hero-button:hover { background: #314f82; }
.hero-pitch {
  z-index: -1; position: absolute; right: -11px; top: -58px; width: 382px; height: 250px;
  border: 1px solid #739ad4; opacity: .32; transform: rotate(-19deg);
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgb(143 179 243 / 14%) 46px 94px);
}
.hero-pitch::before, .hero-pitch::after, .hero-pitch span, .hero-pitch i { content: ""; position: absolute; border: 1px solid #86aaf0; }
.hero-pitch::before { left: 50%; top: 0; bottom: 0; border-width: 0 0 0 1px; }
.hero-pitch::after { left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; }
.hero-pitch span, .hero-pitch i { top: 20%; height: 60%; width: 60px; }
.hero-pitch span { left: 0; border-left: 0; }
.hero-pitch i { right: 0; border-right: 0; }
.finance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.finance-item { padding: 11px 13px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.finance-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; color: var(--brand); background: var(--brand-wash); }
.finance-item .finance-label { display: block; color: var(--muted); font-size: 11px; font-weight: 620; }
.finance-item strong { display: block; font: 800 clamp(14px, 2vw, 20px)/1.3 var(--display); white-space: nowrap; letter-spacing: -.025em; }
.section-head { margin: 23px 0 10px; }
.market-status { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11px; }
.market-status .live-dot { color: var(--brand); }
.market-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 11px; }
.market-tools label { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.market-tools label > [data-icon] { padding-left: 10px; color: var(--muted); }
.market-tools label input, .market-tools label select { background: transparent; border: 0; font-size: 12px; }
.search-field { flex: 1 1 196px; }
.search-field input { width: 100%; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.player-tile { min-width: 0; padding: 11px; }
.kit-panel {
  isolation: isolate; position: relative; overflow: hidden; min-height: 78px; border-radius: 8px;
  display: flex; justify-content: space-between; align-items: start; gap: 6px; padding: 8px;
  color: var(--kit-ink); background: var(--kit-surface);
}
.role-fw { --kit-ink: light-dark(#194bc0, #a8c3ff); --kit-surface: light-dark(#e8efff, #223456); }
.role-mf { --kit-ink: light-dark(#6246a5, #d1bcff); --kit-surface: light-dark(#efeafb, #322b50); }
.role-df { --kit-ink: light-dark(#185e74, #9ad9ee); --kit-surface: light-dark(#e5f2f7, #213947); }
.role-gk { --kit-ink: light-dark(#875128, #ffd0a0); --kit-surface: light-dark(#f8eddf, #41332c); }
.kit-panel::before {
  content: ""; z-index: -1; position: absolute; inset: -28px 42px -28px 25%;
  border-inline: 1px solid currentColor; opacity: .16; transform: skew(-20deg);
  background: repeating-linear-gradient(90deg, transparent 0 22px, currentColor 22px 23px);
}
.kit-panel .kit-art { position: absolute; top: 12px; left: 50%; transform: translateX(-50%) rotate(-8deg); opacity: .65; }
.kit-panel .kit-art .glyph { width: 53px; height: 53px; stroke-width: 1.1; }
.kit-panel .kit-position { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.kit-panel .rating-box { display: grid; z-index: 1; padding: 3px 6px; text-align: center; border-radius: 6px; background: var(--surface); min-width: 38px; }
.rating-box strong { font: 800 19px/1.02 var(--display); font-variant-numeric: tabular-nums; }
.rating-box small { font-size: 8px; font-weight: 760; letter-spacing: .09em; }
.tile-player {
  display: block; width: 100%; min-height: 0; background: transparent; border: 0; padding: 0; margin-top: 9px; text-align: left;
}
.tile-player:hover { background: transparent; color: var(--brand); }
.tile-title { font: 800 19px/1.25 var(--display); letter-spacing: -.025em; }
.tile-club { margin-top: 3px; color: var(--muted); font-size: 11px; }
.tile-stats, .tile-price { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.tile-stats { margin-top: 9px; }
.tile-stats span { display: flex; align-items: baseline; justify-content: space-between; gap: 3px; padding: 5px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 10px; }
.tile-stats strong { color: var(--text); font-size: 11px; }
.tile-traits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tile-price { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.tile-price small { display: block; font-size: 10px; color: var(--muted); }
.tile-price strong { font-size: 16px; }
.tile-action { display: flex; width: 100%; margin-top: 9px; }
.empty { grid-column: 1 / -1; padding: 17px; color: var(--muted); }
.transfer-log { margin-top: 16px; }
.transfer-log ul { padding: 0 16px; margin: 0; list-style: none; }
.transfer-log li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; }
.transfer-log li:last-child { border: 0; }

.roster-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto auto; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: 0; }
.role-tag { display: grid; place-items: center; min-height: 27px; border-radius: 6px; color: var(--kit-ink); background: var(--kit-surface); font-size: 10px; font-weight: 780; }
.roster-name { background: transparent; border: 0; padding: 0; min-height: 36px; display: block; text-align: left; width: 100%; }
.roster-name:hover { background: transparent; color: var(--brand); }
.roster-name small { display: block; color: var(--muted); font-weight: 480; }
.roster-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.roster-profile .roster-name { width: auto; min-width: 106px; flex: 1 0 auto; }
.rating { color: var(--brand); min-width: 37px; padding-inline: 5px; font-weight: 780; }
.roster-row .list-action { white-space: nowrap; min-height: 36px; }
.roster-row .listed-label { color: var(--brand); }
.setup-grid, .match-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr); gap: 12px; align-items: start; }
.match-grid { grid-template-columns: minmax(0,1.9fr) minmax(245px,1fr); }
.player-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.player-row:last-child { border-bottom: 0; }
.player-row select { width: 100%; min-width: 0; }
.position { color: var(--muted); font-size: 11px; font-weight: 760; }
.field { display: grid; gap: 5px; margin-top: 12px; font-weight: 650; }
.field input, .field select { width: 100%; }
.check { display: flex; align-items: center; gap: 7px; margin-top: 14px; min-height: 30px; }
.check input, #seek { accent-color: var(--brand-fill); }
.launch, .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.launch { margin-top: 15px; }

.viewer { padding: 12px; }
.scoreboard { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px; align-items: center; text-align: center; margin: 2px 0 10px; }
.team-name { font-size: clamp(12px, 2.8vw, 16px); font-weight: 710; }
.club-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.club-dot.home { background: var(--home); }
.club-dot.away { border: 2px solid var(--away); }
.score { font-size: 34px; line-height: 1; letter-spacing: -.06em; font-weight: 800; }
.clock { margin-top: 3px; color: var(--muted); font-size: 12px; }
#pitch { display: block; width: 100%; aspect-ratio: 115 / 76; border-radius: 8px; background: var(--pitch); }
.transport { padding-top: 8px; }
#seek { display: block; width: 100%; margin: 0; min-height: 27px; }
.activity-header { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.activity-header .muted { font-size: 12px; }
.activity-header button { display: flex; margin-top: 6px; }
.events { max-height: 500px; overflow: auto; list-style: none; margin: 0; padding: 3px 12px; }
.events li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.events li:last-child { border-bottom: 0; }
.event-row { display: grid; grid-template-columns: 53px minmax(0,1fr); align-items: start; gap: 4px; text-align: left; width: 100%; font-size: 12px; }
button.event-row { border-color: transparent; padding: 4px; font-weight: 520; }
.event-time { color: var(--muted); }
.event-goal { color: var(--brand); font-weight: 750; }
.tracking { margin-top: 8px; color: var(--brand); font-size: 12px; font-weight: 700; }
.match-lineups { margin-top: 11px; border-top: 1px solid var(--line); padding-top: 8px; }
.match-lineups summary { cursor: pointer; font-weight: 690; }
.match-lineups summary [data-icon] { vertical-align: middle; margin-right: 4px; }
.match-lineups summary .muted { font-size: 11px; }
#match-players { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 7px; }
.match-team h3 { font-size: 13px; margin-bottom: 3px; }
.track-button { display: flex; width: 100%; justify-content: start; font-size: 11px; margin-bottom: 3px; padding: 4px; }
.match-player-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px; align-items: start; }
.match-card-button { width: 34px; padding-inline: 2px; }

.notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding: 7px 9px 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.notice > [data-icon] { color: var(--brand); }
.notice #notice-text { flex: 1 1 165px; }
.notice a { color: var(--brand); display: inline-flex; align-items: center; gap: 3px; font-weight: 740; }
.notice .icon-button { min-height: 30px; width: 32px; flex-basis: 32px; }
dialog { width: min(468px, calc(100vw - 22px)); max-height: 90vh; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); box-shadow: 0 24px 65px rgb(0 0 0 / 26%); }
dialog::backdrop { background: rgb(5 12 27 / 62%); }
.card-close { display: flex; justify-content: end; margin-bottom: 5px; }
.player-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 9px 0 12px; }
.player-heading .muted { font-size: 12px; }
.player-attributes, .player-traits { margin: 0 0 11px; }
.profile-subhead { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.player-attributes h3, .player-traits h3 { margin-bottom: 5px; font-size: 14px; }
.player-traits p { margin: 4px 0 0; font-size: 12px; }
.trait-row { padding: 7px 8px; border-radius: 7px; background: var(--surface-2); margin-top: 4px; }
.trait-chip, .freshness { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 730; }
.trait-chip { color: var(--brand); background: var(--brand-wash); border-radius: 5px; padding: 3px 5px; }
.trait-chip.risk { color: var(--danger); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.trait-chip .glyph, .freshness .glyph { width: 12px; height: 12px; }
.freshness { color: var(--muted); font-variant-numeric: tabular-nums; }
.freshness.low { color: var(--danger); }
.attribute-group { border: 1px solid var(--line); border-radius: 7px; margin-bottom: 4px; }
.attribute-group summary { display: grid; grid-template-columns: minmax(94px,1fr) minmax(40px,1fr) 24px 16px; align-items: center; gap: 7px; cursor: pointer; padding: 9px; font-size: 12px; font-weight: 700; }
.attribute-group summary::-webkit-details-marker { display: none; }
.attribute-group summary strong { text-align: right; font-variant-numeric: tabular-nums; }
.attribute-group summary .glyph { color: var(--muted); width: 15px; }
.attribute-group[open] summary .glyph { transform: rotate(180deg); }
.attribute-meter { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.attribute-meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.attribute-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 10px; margin: 0; padding: 0 9px 7px; }
.attribute-values div { display: flex; justify-content: space-between; gap: 4px; border-top: 1px solid var(--line); padding: 6px 0; font-size: 12px; }
.attribute-values dd { margin: 0; font-weight: 720; font-variant-numeric: tabular-nums; }
.training-status { margin: 0 0 10px; }
.training-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.focus-targets { display: grid; gap: 3px; font-size: 12px; margin-top: 7px; }
.focus-targets div { display: flex; gap: 5px 9px; flex-wrap: wrap; }
.focus-targets span { min-width: 51px; }
.training-gains { list-style: none; margin: 8px 0 0; padding: 0; max-height: 206px; overflow: auto; }
.training-gains li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12px; }
.individual-training { margin-top: 12px; }
.individual-hint { padding: 0 14px 8px; border-bottom: 1px solid var(--line); }
.training-player { display: grid; grid-template-columns: 35px minmax(0,1fr) minmax(135px,1fr); gap: 9px; align-items: start; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.training-player:last-child { border-bottom: 0; }
.training-player .role-tag { margin-top: 4px; }
.drill-select { width: 100%; min-width: 0; }
.drill-targets { display: block; margin-top: 2px; font-size: 11px; }
.quote { margin: 12px 0; padding: 9px 10px; border-radius: 8px; background: var(--surface-2); }
.quote div { display: flex; justify-content: space-between; gap: 7px; padding: 3px 0; font-size: 12px; }
.quote dt { color: var(--muted); }
.quote dd { margin: 0; font-weight: 730; text-align: end; }
.form-error { color: var(--danger); margin: 10px 0; font-size: 12px; }
#confirm-trade { width: 100%; margin-top: 8px; }

@media (min-width: 1350px) { .market-grid { gap: 14px; } .player-tile { padding: 13px; } }
@media (max-width: 1120px) { .app-shell { grid-template-columns: 181px minmax(0,1fr); } .market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 855px) {
  .app-shell { display: flex; flex-direction: column; }
  .rail { position: static; min-height: 0; width: 100%; padding: 8px 12px 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 7px; }
  .navigation { display: flex; flex-wrap: wrap; gap: 4px; }
  .navigation a { min-height: 40px; padding: 6px 9px; font-size: 12px; }
  .rail-footer { display: none; }
  .topbar { min-height: 56px; }
}
@media (max-width: 610px) {
  .workspace { padding-top: 14px; }
  .navigation { flex-wrap: nowrap; }
  .navigation a { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 2px; font-size: 10px; white-space: nowrap; }
  .navigation a .glyph { width: 15px; height: 15px; }
  .topbar { justify-content: start; }
  .top-tools { flex-wrap: wrap; gap: 6px; }
  .breadcrumbs { display: none; }
  .market-hero { flex-direction: column; align-items: start; gap: 8px; min-height: 0; padding: 14px; }
  .market-hero p:not(.eyebrow) { margin-top: 4px; font-size: 12px; }
  .market-hero .eyebrow { margin-bottom: 3px; }
  .hero-pitch { right: -166px; }
  .finance-grid { gap: 5px; margin-top: 8px; }
  .finance-item { display: block; padding: 7px 6px; }
  .finance-icon { width: 24px; height: 24px; margin-bottom: 4px; }
  .finance-icon .glyph { width: 13px; height: 13px; }
  .finance-item .finance-label { font-size: 9px; }
  .section-head { margin-top: 16px; }
  .section-head .eyebrow { margin-bottom: 2px; }
  .setup-grid, .match-grid, .league-grid, .training-grid { grid-template-columns: 1fr; }
  .league-hero-actions { justify-items: start; }
  .match-grid .events { max-height: 300px; }
}
@media (max-width: 420px) {
  .league-detail { display: none; }
  .calendar-fixture { padding-inline: 8px; }
  .market-grid { grid-template-columns: 1fr; }
  .search-field { flex-basis: calc(100% - 53px); }
  .select-field { flex: 1 1 auto; }
  .select-field select { width: 100%; }
  .market-tools label select { padding-inline: 5px; }
  .market-tools label > [data-icon] { padding-left: 5px; }
  .roster-row { padding-inline: 8px; gap: 4px; }
  .roster-row .list-action { padding-inline: 5px; font-size: 11px; }
  .training-player { padding-inline: 8px; gap: 5px; }
  .training-player .drill-select { padding-inline: 5px; }
}
@media (pointer: coarse) {
  button, .button, .navigation a, select, input[type="number"], input[type="search"], #seek, .roster-name, .roster-row .list-action { min-height: 44px; }
}
