:root {
  --fm-manager-tab-gap: 6px;
  --ink: #f4f1e9;
  --muted: #a9b5af;
  --deep: #111c19;
  --panel: #1a2a25;
  --panel-light: #243a31;
  --panel-bright: #2c493b;
  --line: rgba(244, 241, 233, 0.14);
  --team-watermark-opacity: .065;
  --lime: #c3e66a;
  --manager-squad-icon: #8bc7ed;
  --brand-rim: #c3e66a;
  --brand-wordmark-highlight: #ffd45b;
  --stat-overall: #E1E6E3;
  --stadium-overall-color: var(--stat-overall);
  --stat-overall-bright: var(--stat-overall);
  --stat-overall-ink: #17221b;
  --stat-overall-malus-position-ink: #8c5b12;
  --stat-overall-malus-condition-ink: #a63f35;
  --stat-overall-base-ink: #53625d;
  --gold: #f3b648;
  --red: #ef8d7b;
  --cyan: #69c4b0;
  --training-recovery-icon: #74a85e;
  --talent-bronze: #98603d;
  --talent-silver: #d4dfe0;
  --talent-gold: #ffd45b;
  --role-gk: #B59CFF;
  --role-def: #5CA8E8;
  --role-mid: #58C9B4;
  --role-fwd: #F3B648;
  --stat-experience: #f1c65b;
  --stat-speed: #9fcfff;
  --stat-duels: #e186bf;
  --stat-shot: #f47c5f;
  --stat-passing: #69c4b0;
  --stat-ball-control: #8f79e8;
  --stat-awareness: #D8CCA0;
  --tactic-press: #e78c62;
  --tactic-extreme: #dc6073;
  --condition-fresh: #c3e66a;
  --condition-tired: #f3b648;
  --condition-low: #e68b60;
  --condition-empty: #ef8d7b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  /* Zentrale UI-Tokens: neue Styles verwenden diese semantischen Namen. */
  --fm-color-bg: var(--deep);
  --fm-color-surface: var(--panel);
  --fm-color-surface-raised: var(--panel-light);
  --fm-color-text: var(--ink);
  --fm-color-team-name: var(--fm-color-text);
  --fm-color-text-muted: var(--muted);
  --fm-color-neutral-data: var(--fm-color-text);
  --fm-color-border: var(--line);
  --fm-color-accent: var(--lime);
  --fm-color-overall: var(--stat-overall);
  --fm-color-defense: var(--role-def);
  --fm-color-midfield: var(--role-mid);
  --fm-color-attack: var(--role-fwd);
  --fm-color-experience: var(--stat-experience);
  --fm-color-warning: var(--gold);
  --fm-color-danger: var(--red);
  --fm-space-1: 4px;
  --fm-space-2: 8px;
  --fm-space-3: 12px;
  --fm-space-4: 16px;
  --fm-space-5: 20px;
  --fm-space-6: 24px;
  --fm-radius-sm: 8px;
  --fm-radius-md: 12px;
  --fm-radius-lg: 18px;
  --fm-content-width: 1180px;
  --fm-panel-gap: var(--fm-space-4);
  --fm-control-height: 44px;
  --roster-data-row-height: 37px;
  --fm-icon-control-size: 32px;
  --fm-icon-control-radius: 8px 12px 8px 12px;
  --fm-heading-page-size: calc(clamp(1.8rem, 3.4vw, 2.2rem) - 3px);
  --fm-heading-panel-size: calc(clamp(1.25rem, 2.6vw, 1.65rem) - 3px);
  --fm-font-text: calc(0.875rem - 3px);
  --fm-font-control: calc(0.875rem - 3px);
  --fm-font-data: calc(0.875rem - 3px);
  --fm-font-label: calc(0.8125rem - 3px);
  --fm-role-tag-font-size: calc(var(--fm-font-label) - 2px);
  --fm-font-dialog: calc(1.0625rem - 3px);
  --fm-heading-card-size: calc(1.0625rem - 3px);
  --fm-heading-section-size: calc(1.25rem - 3px);
  --fm-heading-label-size: var(--fm-font-label);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-size: calc(1rem - 3px);
  min-width: 320px;
  margin: 0;
  background: radial-gradient(circle at 92% 0%, rgba(195, 230, 106, 0.14), transparent 26rem), radial-gradient(circle at 8% 42%, rgba(105, 196, 176, 0.09), transparent 28rem), var(--fm-color-bg);
  color: var(--fm-color-text);
  line-height: 1.5;
}
body.leave-game-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.hidden { display: none !important; }
/* Keep unselected panels hidden before the application initializes their view. */
.manager-panel[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.manager-header, .manager-shell, .manager-footer { width: min(var(--fm-content-width), calc(100% - 32px)); margin-inline: auto; }
.manager-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding-block: 8px; border-bottom: 1px solid rgba(244, 241, 233, 0.1); }
.manager-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.manager-brand:hover, .manager-brand:focus-visible { color: inherit; outline: none; }
.manager-brand:focus-visible { border-radius: 10px; box-shadow: 0 0 0 3px rgba(195, 230, 106, 0.26); }
.manager-brand.home-active .brand-mark { filter: drop-shadow(0 0 13px rgba(195, 230, 106, 0.46)); }
.manager-brand > span:last-child { display: grid; gap: 3px; min-width: 0; }
.brand-wordmark-image { display: block; width: 210px; max-width: 100%; height: auto; object-fit: contain; object-position: left center; filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.2)); }
.brand-lockup { position: relative; width: max-content; max-width: 100%; min-width: 0; padding: 3px 0 2px; }
.brand-region { display: block; width: 100%; max-width: 100%; overflow: hidden; color: var(--brand-rim); font-family: Georgia, "Times New Roman", serif; font-size: var(--fm-font-label); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; text-align: left; text-shadow: 0 0 10px rgba(195, 230, 106, 0.16); text-overflow: ellipsis; white-space: nowrap; }
.manager-brand strong { display: inline-flex; align-items: baseline; gap: 0.16em; max-width: 100%; min-width: 0; overflow: hidden; padding-bottom: 2px; color: var(--brand-rim); font-family: Georgia, "Times New Roman", serif; font-size: calc(1.2rem - 3px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.87; text-overflow: ellipsis; white-space: nowrap; }
.manager-brand strong .brand-name { display: inline-block; overflow: hidden; color: var(--brand-rim); text-overflow: ellipsis; }
.manager-brand strong em { display: inline; flex: 0 0 auto; align-items: baseline; padding: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--brand-wordmark-highlight); font-size: calc(0.72em - 3px); font-style: normal; letter-spacing: -0.08em; line-height: inherit; transform: none; }
.brand-mark { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; color: var(--lime); filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.22)); }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-mark[data-logo-variant="plaque"] { color: var(--gold); }
.brand-mark[data-logo-variant="ball"] { color: var(--cyan); }
.brand-mark[data-logo-variant="river"] { color: var(--lime); }
.brand-mark[data-logo-variant="classic-ball"] { color: var(--gold); }
.brand-mark[data-logo-variant="schach-turm"] { color: var(--cyan); }
.brand-mark[data-logo-variant="ponzelar"] { color: var(--lime); }
.brand-mark[data-logo-variant="nf47-monogram"] { color: var(--lime); }
.brand-mark[data-logo-variant="nf47-fusion"] { color: var(--lime); }
.brand-mark[data-logo-variant="torwinkel"] { color: var(--cyan); }
.brand-mark[data-logo-variant="number-plaque"] { color: var(--gold); }
.manager-brand-compact { gap: 10px; }
.manager-brand-compact .brand-wordmark-image { width: 190px; }
.manager-brand-compact .brand-lockup { padding: 3px 0 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.manager-brand-compact .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.08em; line-height: 0.98; }
.manager-brand-compact strong { font-size: calc(1.48rem - 3px); letter-spacing: -0.075em; line-height: 0.84; text-shadow: 0 2px 0 rgba(7, 17, 14, 0.18); }
.manager-brand-compact strong em { align-self: baseline; margin-left: 0.04em; color: var(--brand-wordmark-highlight); font-size: calc(0.78em - 3px); font-weight: 900; letter-spacing: -0.06em; line-height: 0.9; vertical-align: baseline; }
.manager-team-context { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; min-height: 46px; gap: 8px; margin: 0; padding: 5px 9px 5px 5px; border: 1px solid transparent; border-radius: 10px 14px 10px 14px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease; }
.manager-team-context:hover, .manager-team-context:focus-visible { border-color: color-mix(in srgb, var(--team-color, var(--lime)) 72%, var(--line)); background: color-mix(in srgb, var(--team-color, var(--cyan)) 14%, rgba(17, 28, 25, 0.54)); outline: none; transform: translateY(-1px); }
.manager-main-kicker { color: var(--lime); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.13em; line-height: 1; text-transform: uppercase; }
.manager-team-context-crest { flex: 0 0 36px; width: 36px; height: 36px; border-color: var(--team-color, var(--cyan)); background: color-mix(in srgb, var(--team-color, var(--cyan)) 23%, var(--deep)); }
.manager-team-context-copy { display: grid; min-width: 0; gap: 3px; }
.manager-team-context-copy strong { overflow: hidden; color: var(--fm-color-team-name); font-size: var(--fm-font-data); text-overflow: ellipsis; white-space: nowrap; }
.manager-team-context-status { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; overflow: hidden; color: var(--lime); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.manager-team-context-trophy { display: inline-flex; flex: 0 0 14px; align-items: center; justify-content: center; width: 14px; height: 14px; color: var(--gold); }
.manager-team-context-trophy .fm-symbol { flex-basis: 14px; width: 14px; height: 14px; }
.manager-team-context-status-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-header-tools { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.mailbox { position: relative; z-index: 32; flex: 0 0 auto; }
.mailbox-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.045); color: var(--ink); cursor: pointer; font: inherit; font-size: var(--fm-font-label); font-weight: 850; }
.mailbox-toggle:hover, .mailbox-toggle[aria-expanded="true"] { border-color: var(--cyan); background: rgba(105, 196, 176, 0.13); color: var(--cyan); }
.mailbox-toggle:focus-visible { outline: 2px solid rgba(105, 196, 176, 0.38); outline-offset: 2px; }
.mailbox-icon { display: inline-grid; width: 21px; place-items: center; color: var(--cyan); font-size: calc(1.05rem - 3px); line-height: 1; }
.mailbox-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border-radius: 99px; background: var(--red); color: #17221b; font-size: var(--fm-font-label); font-weight: 950; line-height: 1; }
.mailbox-count[hidden] { display: none; }
.mailbox-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: min(900px, calc(100vw - 32px)); min-width: min(700px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 90px)); min-height: 380px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 72px); overflow: hidden; resize: both; padding: 12px; border: 1px solid rgba(105, 196, 176, 0.48); border-radius: 14px 20px 14px 20px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.99), rgba(17, 28, 25, 0.99)); box-shadow: 0 22px 65px rgba(0, 0, 0, 0.46); }
.mailbox-panel[hidden] { display: none; }
.mailbox-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 10px; border-bottom: 1px solid rgba(105, 196, 176, 0.2); }
.mailbox-panel-heading > div:not(.mailbox-panel-actions) { display: grid; gap: 2px; min-width: 0; }
.mailbox-panel-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 6px; }
.mailbox-panel-heading h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; }
.mailbox-close { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid rgba(105, 196, 176, 0.25); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--ink); cursor: pointer; font: inherit; font-size: calc(1.25rem - 3px); font-weight: 500; line-height: 1; }
.mailbox-close:hover, .mailbox-close:focus-visible { border-color: var(--cyan); background: rgba(105, 196, 176, 0.13); color: var(--cyan); outline: none; }
.mailbox-filters { display: flex; gap: 5px; padding: 8px 2px 0; }
.mailbox-filter { display: inline-grid; min-width: 102px; min-height: 32px; place-items: center; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-label); font-weight: 850; }
.mailbox-filter:hover, .mailbox-filter:focus-visible { border-color: rgba(105, 196, 176, 0.35); color: var(--cyan); outline: none; }
.mailbox-filter.active { border-color: rgba(195, 230, 106, 0.52); background: rgba(195, 230, 106, 0.1); color: var(--lime); }
.mailbox-panel-body { display: grid; grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr); gap: 10px; min-height: 0; padding-top: 10px; }
.mailbox-message-list { display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.mailbox-message-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 4px; width: 100%; min-width: 0; min-height: 62px; border: 1px solid var(--line); border-radius: 8px 12px 8px 12px; background: rgba(255, 255, 255, 0.035); color: var(--ink); }
.mailbox-message-item:hover, .mailbox-message-item:focus-within { border-color: rgba(105, 196, 176, 0.58); background: rgba(105, 196, 176, 0.09); outline: none; }
.mailbox-message-item.is-selected { border-color: var(--cyan); background: rgba(105, 196, 176, 0.13); }
.mailbox-message-item.is-unread { box-shadow: inset 3px 0 0 var(--red); }
.mailbox-message-select { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 7px; width: 100%; min-width: 0; min-height: 100%; padding: 8px 2px 8px 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.mailbox-message-select:hover { color: var(--ink); }
.mailbox-message-actions { display: grid; align-content: space-between; justify-items: end; gap: 4px; min-width: 62px; padding: 6px 6px 6px 0; }
.mailbox-message-action { display: inline-grid; width: 27px; height: 27px; place-items: center; margin: 0; padding: 0; border: 1px solid rgba(239, 141, 123, 0.36); border-radius: 8px; background: rgba(239, 141, 123, 0.08); color: var(--red); cursor: pointer; font: inherit; font-size: var(--fm-font-label); line-height: 1; }
.mailbox-message-action:hover, .mailbox-message-action:focus-visible { border-color: var(--red); background: rgba(239, 141, 123, 0.16); color: var(--ink); outline: none; }
.mailbox-message-mark { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: rgba(105, 196, 176, 0.12); color: var(--cyan); font-size: var(--fm-font-label); line-height: 1; }
.mailbox-message-item.is-unread .mailbox-message-mark { background: rgba(239, 141, 123, 0.14); color: var(--red); }
.mailbox-message-copy { display: grid; min-width: 0; gap: 3px; }
.mailbox-message-copy strong { overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-message-topline { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; }
.mailbox-message-type { min-width: 0; overflow: hidden; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.mailbox-message-badge { max-width: 100%; overflow: hidden; padding: 2px 4px; border: 1px solid rgba(105, 196, 176, 0.24); border-radius: 5px; background: rgba(105, 196, 176, 0.08); color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; line-height: 1.15; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-message-detail { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow-y: auto; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px 14px 10px 14px; background: rgba(17, 28, 25, 0.42); scrollbar-width: thin; }
.mailbox-detail-empty { display: grid; min-height: 150px; place-items: center; margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.4; text-align: center; }
.mailbox-detail-heading { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid rgba(105, 196, 176, 0.18); }
.mailbox-detail-heading-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.mailbox-detail-icon { width: 22px; height: 22px; flex-basis: 22px; font-size: var(--fm-font-label); }
.mailbox-detail-heading small { color: var(--cyan); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.mailbox-detail-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.mailbox-detail-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.3; }
.mailbox-detail-meta strong { color: var(--ink); font-weight: 850; }
.mailbox-detail-time { margin-left: auto; color: var(--cyan); font-weight: 850; text-align: right; }
.mailbox-detail-body { display: grid; gap: 7px; padding-top: 9px; }
.mailbox-detail-body p { margin: 0; color: var(--muted); font-size: var(--fm-font-text); line-height: 1.45; }
.mailbox-detail-lead { color: var(--ink) !important; font-size: var(--fm-font-label) !important; font-weight: 800; line-height: 1.3 !important; }
.mailbox-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.mailbox-detail-fact { display: grid; min-width: 0; gap: 2px; padding: 6px 7px; border: 1px solid rgba(105, 196, 176, 0.18); border-radius: 7px 9px 7px 9px; background: rgba(105, 196, 176, 0.055); }
.mailbox-detail-fact small { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.mailbox-detail-fact strong { overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-detail-more { border-top: 1px solid rgba(105, 196, 176, 0.16); }
.mailbox-detail-more summary { padding: 7px 0 2px; color: var(--cyan); cursor: pointer; font-size: var(--fm-font-label); font-weight: 850; list-style-position: inside; }
.mailbox-detail-more summary:hover, .mailbox-detail-more summary:focus-visible { color: var(--lime); outline: none; }
.mailbox-detail-more-body { display: grid; gap: 7px; padding: 5px 0 1px; }
.mailbox-development-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mailbox-development-entry { display: grid; gap: 4px; padding: 7px 8px; border-left: 2px solid var(--lime); border-radius: 6px 9px 6px 9px; background: rgba(195, 230, 106, 0.08); }
.mailbox-development-entry > strong { color: var(--ink); font-size: var(--fm-font-label); }
.mailbox-development-entry > small { color: var(--lime); font-size: var(--fm-font-label); font-weight: 850; }
.mailbox-attribute-list { display: flex; flex-wrap: wrap; gap: 4px; }
.mailbox-attribute-list span { padding: 3px 5px; border: 1px solid rgba(195, 230, 106, 0.24); border-radius: 5px; background: rgba(195, 230, 106, 0.08); color: var(--ink); font-size: var(--fm-font-label); font-weight: 800; }
.mailbox-development-compact-heading { display: flex; align-items: center; gap: 5px; min-width: 0; padding-bottom: 8px; border-bottom: 1px solid rgba(105, 196, 176, 0.18); }
.mailbox-development-compact-heading h3 { min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-development-compact-body { display: grid; gap: 8px; padding-top: 10px; }
.mailbox-development-compact-summary { margin: 0; color: var(--ink); font-size: var(--fm-font-label); font-weight: 850; line-height: 1.3; }
.mailbox-development-compact-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mailbox-development-compact-entry { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid rgba(105, 196, 176, 0.14); }
.mailbox-development-compact-entry:last-child { border-bottom: 0; }
.mailbox-development-compact-entry strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); text-overflow: ellipsis; white-space: nowrap; }
.mailbox-development-compact-entry span { flex: 0 0 auto; color: var(--lime); font-size: var(--fm-font-label); font-weight: 850; white-space: nowrap; }
.mailbox-development-details { margin-top: 2px; }
.mailbox-contract-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mailbox-contract-entry { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-left: 2px solid var(--gold); border-radius: 6px 9px 6px 9px; background: rgba(243, 182, 72, 0.08); }
.mailbox-contract-entry strong { overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); text-overflow: ellipsis; white-space: nowrap; }
.mailbox-contract-entry span { flex: 0 0 auto; color: var(--gold); font-size: var(--fm-font-label); font-weight: 850; }
.mailbox-contract-entry.is-expired { border-left-color: var(--red); background: rgba(239, 141, 123, 0.08); }
.mailbox-contract-entry.is-expired span { color: var(--red); }
.mailbox-availability-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mailbox-availability-entry { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 8px; border-left: 2px solid var(--cyan); border-radius: 6px 9px 6px 9px; background: rgba(105, 196, 176, 0.08); }
.mailbox-availability-entry strong { min-width: 0; overflow: hidden; flex: 1 1 auto; color: var(--ink); font-size: var(--fm-font-label); text-overflow: ellipsis; white-space: nowrap; }
.mailbox-availability-entry span { flex: 0 0 auto; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 850; text-align: right; }
.mailbox-detail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin-top: auto; padding-top: 10px; }
.mailbox-transfer-offer-confirmation { flex: 1 0 100%; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.4; }
.mailbox-detail-actions button { padding: 5px 7px; border: 1px solid rgba(105, 196, 176, 0.28); border-radius: 7px; background: rgba(105, 196, 176, 0.08); color: var(--cyan); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 850; }
.mailbox-detail-actions button:hover, .mailbox-detail-actions button:focus-visible { border-color: var(--cyan); background: rgba(105, 196, 176, 0.14); outline: none; }
.audio-settings { position: relative; z-index: 31; }
.audio-settings-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.audio-settings-toggle:hover, .audio-settings-toggle[aria-expanded="true"] { border-color: var(--lime); background: rgba(195, 230, 106, 0.12); color: var(--lime); }
.audio-settings-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: min(250px, calc(100vw - 32px)); gap: 9px; padding: 11px; border: 1px solid rgba(195, 230, 106, 0.34); border-radius: 14px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.99), rgba(17, 28, 25, 0.99)); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42); }
.audio-settings-panel[hidden] { display: none; }
.audio-settings-panel { max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.audio-settings-topline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.settings-panel-heading { margin: 0 2px; color: var(--lime); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.audio-panel-sound-toggle { min-height: 31px; padding: 0 8px; font-size: var(--fm-font-label); white-space: nowrap; }
.settings-divider { height: 1px; margin: 2px 0 1px; background: var(--line); }
.simulation-switch { position: relative; display: grid; align-items: center; cursor: pointer; }
.simulation-switch:hover { border-color: rgba(195, 230, 106, 0.58); background: rgba(195, 230, 106, 0.08); }
.simulation-switch-copy { display: grid; min-width: 0; gap: 2px; }
.simulation-switch-copy strong { color: var(--ink); font-size: var(--fm-font-label); font-weight: 850; }
.simulation-switch-copy small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 650; line-height: 1.25; }
.simulation-switch input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.simulation-switch-track { position: relative; display: block; width: 42px; height: 23px; flex: 0 0 42px; border: 1px solid rgba(244, 241, 233, 0.25); border-radius: 99px; background: rgba(244, 241, 233, 0.14); transition: background 0.16s ease, border-color 0.16s ease; }
.simulation-switch-track span { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28); transition: transform 0.16s ease, background 0.16s ease; }
.simulation-switch input:checked + .simulation-switch-track { border-color: var(--cyan); background: rgba(105, 196, 176, 0.72); }
.simulation-switch input:checked + .simulation-switch-track span { background: #f4f1e9; transform: translateX(19px); }
.simulation-switch input:focus-visible + .simulation-switch-track { outline: 3px solid var(--lime); outline-offset: 3px; }
.audio-volume-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 9px; align-items: center; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.audio-volume-setting output { color: var(--ink); font-variant-numeric: tabular-nums; }
.audio-volume-setting input { grid-column: 1 / -1; width: 100%; accent-color: var(--lime); cursor: pointer; }
.game-menu { position: relative; z-index: 30; flex: 0 0 auto; }
.game-menu-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.045); color: var(--ink); cursor: pointer; font-size: var(--fm-font-label); font-weight: 850; }
.game-menu-toggle:hover, .game-menu-toggle[aria-expanded="true"] { border-color: var(--lime); background: rgba(195, 230, 106, 0.12); color: var(--lime); }
.game-menu-icon { display: inline-grid; width: 20px; place-items: center; font-size: calc(1.05rem - 3px); line-height: 1; }
.game-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: min(286px, calc(100vw - 32px)); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; gap: 6px; padding: 9px; border: 1px solid rgba(195, 230, 106, 0.34); border-radius: 14px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.99), rgba(17, 28, 25, 0.99)); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42); }
.game-menu-panel[hidden] { display: none; }
.game-menu-heading { margin: 0 48px 8px 0; color: var(--ink); font-size: 16px; font-weight: 850; line-height: 1.4; }
.game-menu-settings { display: grid; gap: 6px; padding: 1px 0 2px; }
.game-menu-view-settings { padding: 6px 7px; }
.game-menu-section-heading { margin: 0 7px; color: var(--lime); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.game-menu-close { position: absolute; top: 8px; right: 8px; display: grid; width: 29px; height: 29px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font-size: calc(1.05rem - 3px); line-height: 1; }
.game-menu-close:hover, .game-menu-close:focus-visible { border-color: var(--lime); background: rgba(195, 230, 106, 0.1); color: var(--lime); outline: none; }
.game-menu-action { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; padding: 9px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.game-menu-action:hover, .game-menu-action:focus-visible { border-color: rgba(195, 230, 106, 0.42); background: rgba(195, 230, 106, 0.1); outline: none; }
.game-menu-action-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #d5c38b; font-size: 18px; line-height: 1; }
.game-menu-action strong, .game-menu-action small { display: block; }
.game-menu-action strong { font-size: var(--fm-font-label); }
.game-menu-action small { margin-top: 1px; color: var(--muted); font-size: var(--fm-font-label); }
.game-menu-save-status { min-height: 0; margin: 0 7px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.game-menu-save-status:not(:empty) { min-height: 1.2em; }

.logo-ideas-page { padding-block: 34px 56px; }
.logo-ideas-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; margin-bottom: 22px; }
.logo-ideas-intro h1 { margin-bottom: 9px; color: var(--ink); font-family: inherit; font-size: var(--fm-heading-page-size); font-weight: 950; line-height: 1.08; letter-spacing: -0.035em; }
.logo-ideas-intro p:last-child { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: calc(0.98rem - 3px); }
.logo-choice-status { align-self: end; margin: 0; padding: 9px 12px; border: 1px solid rgba(195, 230, 106, 0.28); border-radius: 7px 13px 7px 13px; background: rgba(195, 230, 106, 0.08); color: var(--lime); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.logo-ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.logo-option { display: grid; align-content: start; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px 18px 7px 18px; background: linear-gradient(145deg, rgba(30, 51, 43, 0.9), rgba(19, 32, 28, 0.9)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease; }
.logo-option:hover { border-color: rgba(195, 230, 106, 0.52); transform: translateY(-2px); }
.logo-option.selected { border-color: var(--lime); background: linear-gradient(145deg, rgba(57, 83, 51, 0.94), rgba(22, 40, 32, 0.94)); box-shadow: inset 0 -3px 0 rgba(195, 230, 106, 0.35), 0 14px 24px rgba(0, 0, 0, 0.16); }
.logo-option-stage { display: grid; min-height: 194px; place-items: center; border: 1px solid rgba(244, 241, 233, 0.1); border-radius: 5px 14px 5px 14px; background: radial-gradient(circle at 50% 40%, rgba(105, 196, 176, 0.12), transparent 61%), #13231e; }
.logo-option-mark { display: grid; width: 136px; height: 136px; place-items: center; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.3)); }
.logo-option-mark[data-logo-variant="shield"] { color: var(--lime); }
.logo-option-mark[data-logo-variant="plaque"] { color: var(--gold); }
.logo-option-mark[data-logo-variant="ball"] { color: var(--cyan); }
.logo-option-mark[data-logo-variant="river"] { color: var(--lime); }
.logo-option-mark[data-logo-variant="classic-ball"] { color: var(--gold); }
.logo-option-mark[data-logo-variant="schach-turm"] { color: var(--cyan); }
.logo-option-mark[data-logo-variant="ponzelar"] { color: var(--lime); }
.logo-option-mark[data-logo-variant="nf47-monogram"] { color: var(--lime); }
.logo-option-mark[data-logo-variant="nf47-fusion"] { color: var(--lime); }
.logo-option-mark[data-logo-variant="torwinkel"] { color: var(--cyan); }
.logo-option-mark[data-logo-variant="number-plaque"] { color: var(--gold); }
.logo-option-mark svg { display: block; width: 100%; height: 100%; }
.logo-option-meta { display: grid; gap: 6px; padding: 15px 3px 3px; }
.logo-option-label { color: var(--lime); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.logo-option h2 { margin-bottom: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.logo-option-description { min-height: 38px; margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.logo-option-select { min-height: 35px; margin-top: 4px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--ink); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 850; text-align: left; }
.logo-option-select:hover, .logo-option-select.selected { border-color: var(--lime); background: rgba(195, 230, 106, 0.12); color: var(--lime); }
.logo-option-select:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.logo-ideas-new { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 233, 0.12); }
.logo-ideas-subheading { display: grid; gap: 5px; margin-bottom: 14px; }
.logo-ideas-subheading .eyebrow { margin-bottom: 0; }
.logo-ideas-subheading h2 { margin-bottom: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.08; }
.logo-ideas-subheading p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.wordmark-ideas { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 233, 0.12); }
.wordmark-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wordmark-option { display: grid; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px 18px 7px 18px; background: linear-gradient(145deg, rgba(30, 51, 43, 0.9), rgba(19, 32, 28, 0.9)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease; }
.wordmark-option:hover { border-color: rgba(195, 230, 106, 0.52); transform: translateY(-2px); }
.wordmark-option.selected { border-color: var(--lime); background: linear-gradient(145deg, rgba(57, 83, 51, 0.94), rgba(22, 40, 32, 0.94)); box-shadow: inset 0 -3px 0 rgba(195, 230, 106, 0.35), 0 14px 24px rgba(0, 0, 0, 0.16); }
.wordmark-preview { display: flex; min-height: 136px; align-items: center; padding: 16px 20px; overflow: hidden; border: 1px solid rgba(244, 241, 233, 0.1); border-radius: 5px 14px 5px 14px; background: radial-gradient(circle at 50% 40%, rgba(105, 196, 176, 0.12), transparent 61%), #13231e; }
.wordmark-preview .brand-lockup { max-width: 100%; padding: 3px 0 2px; }
.wordmark-preview .brand-region { width: auto; max-width: 100%; font-size: calc(0.92rem - 3px); }
.wordmark-preview strong { display: inline-flex; align-items: baseline; gap: 0.16em; max-width: 100%; min-width: 0; overflow: hidden; color: var(--brand-rim); font-family: Georgia, "Times New Roman", serif; font-size: calc(2rem - 3px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.87; white-space: nowrap; }
.wordmark-preview strong .brand-name { display: inline-block; overflow: hidden; color: var(--brand-rim); text-overflow: ellipsis; }
.wordmark-preview strong em { display: inline; flex: 0 0 auto; color: var(--brand-wordmark-highlight); font-size: calc(0.72em - 3px); font-style: normal; letter-spacing: -0.08em; line-height: inherit; }
.wordmark-option-meta { display: grid; gap: 6px; padding: 15px 3px 3px; }
.wordmark-option h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.wordmark-option-meta p { min-height: 38px; margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.wordmark-option-select { margin-top: 4px; }
.wordmark-choice-status { display: inline-flex; margin-top: 14px; }

/* Jede Variante verändert nur Typografie und Anordnung; die Farbrollen bleiben gleich. */
.brand-wordmark.wordmark-variant-classic-serif { display: grid; gap: 3px; }
.brand-wordmark.wordmark-variant-classic-serif strong { width: max-content; }
.brand-wordmark.wordmark-variant-compact-sans .brand-region { font-family: "Trebuchet MS", Arial, sans-serif; font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.15em; line-height: 1; text-transform: uppercase; }
.brand-wordmark.wordmark-variant-compact-sans strong { font-family: "Arial Narrow", "Trebuchet MS", Arial, sans-serif; font-size: calc(1.12rem - 3px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; }
.brand-wordmark.wordmark-variant-compact-sans strong em { font-size: calc(0.7em - 3px); letter-spacing: -0.045em; }
.brand-wordmark.wordmark-variant-inline-sport { display: inline-flex; align-items: baseline; gap: 8px; }
.brand-wordmark.wordmark-variant-inline-sport .brand-region { width: auto; font-family: "Trebuchet MS", Arial, sans-serif; font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.brand-wordmark.wordmark-variant-inline-sport .brand-region::after { margin-left: 8px; color: var(--brand-wordmark-highlight); content: "·"; }
.brand-wordmark.wordmark-variant-inline-sport strong { font-size: calc(1.16rem - 3px); letter-spacing: -0.055em; line-height: 0.9; }
.brand-wordmark.wordmark-variant-inline-sport strong em { font-size: calc(0.7em - 3px); letter-spacing: -0.06em; }
.brand-wordmark.wordmark-variant-block-mark .brand-region { font-family: "Trebuchet MS", Arial, sans-serif; font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.2em; line-height: 1; text-transform: uppercase; }
.brand-wordmark.wordmark-variant-block-mark strong { font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif; font-size: calc(1.1rem - 3px); font-weight: 900; letter-spacing: -0.08em; line-height: 0.9; }
.brand-wordmark.wordmark-variant-block-mark strong em { font-size: calc(0.68em - 3px); letter-spacing: -0.055em; }
/* Die Standard-Wortmarke bleibt einzeilig, damit das Spielzeichen im Kopf nicht zwei vertikale Ebenen beansprucht. */
.manager-brand .brand-wordmark.wordmark-variant-inline-sport { display: inline-flex; align-items: baseline; gap: 7px; }
.manager-brand .brand-wordmark.wordmark-variant-inline-sport .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.11em; }
.manager-brand .brand-wordmark.wordmark-variant-inline-sport strong { font-size: calc(1.28rem - 3px); letter-spacing: -0.055em; line-height: 0.92; }
.manager-brand .brand-wordmark.wordmark-variant-inline-sport strong em { font-size: calc(0.72em - 3px); }
.manager-brand-compact .brand-wordmark.wordmark-variant-inline-sport { gap: 6px; }
.manager-brand-compact .brand-wordmark.wordmark-variant-inline-sport .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.12em; }
.manager-brand-compact .brand-wordmark.wordmark-variant-inline-sport strong { font-size: calc(1.42rem - 3px); letter-spacing: -0.06em; }
.manager-brand-compact .brand-wordmark.wordmark-variant-inline-sport strong em { font-size: calc(0.76em - 3px); }
/* Die aktive Inline-Wortmarke braucht in der Anwendung passende Größen für Kopfzeile und Atelier. */
.manager-brand .brand-wordmark.wordmark-variant-compact-sans .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.15em; line-height: 1.05; }
.manager-brand .brand-wordmark.wordmark-variant-compact-sans strong { font-size: calc(1.42rem - 3px); letter-spacing: -0.05em; line-height: 0.92; }
.manager-brand-compact .brand-wordmark.wordmark-variant-compact-sans .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.16em; line-height: 1.05; }
.manager-brand-compact .brand-wordmark.wordmark-variant-compact-sans strong { font-size: calc(1.68rem - 3px); letter-spacing: -0.065em; line-height: 0.9; }
.manager-brand-compact .brand-wordmark.wordmark-variant-compact-sans strong em { font-size: calc(0.78em - 3px); font-weight: 900; line-height: 0.9; }
.wordmark-preview .brand-wordmark.wordmark-variant-compact-sans .brand-region { font-size: var(--fm-font-label); }
.wordmark-preview .brand-wordmark.wordmark-variant-compact-sans strong { font-size: calc(2rem - 3px); }
.wordmark-preview .brand-wordmark.wordmark-variant-inline-sport { gap: 10px; }
.wordmark-preview .brand-wordmark.wordmark-variant-inline-sport .brand-region { font-size: var(--fm-font-label); }
.wordmark-preview .brand-wordmark.wordmark-variant-inline-sport strong { font-size: calc(1.92rem - 3px); }
.wordmark-preview .brand-wordmark.wordmark-variant-block-mark .brand-region { font-size: var(--fm-font-label); }
.wordmark-preview .brand-wordmark.wordmark-variant-block-mark strong { font-size: calc(1.88rem - 3px); }
.logo-ideas-note { margin: 18px 0 0; padding: 11px 13px; border-left: 3px solid var(--gold); background: rgba(244, 182, 72, 0.07); color: var(--muted); font-size: var(--fm-font-label); line-height: 1.5; }

.eyebrow { margin: 0 0 10px; color: var(--lime); font-size: var(--fm-heading-label-size); font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.fm-heading { margin: 0; color: var(--ink); font-family: inherit; font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.fm-heading-page { font-size: var(--fm-heading-page-size); }
.fm-heading-panel { font-size: var(--fm-heading-panel-size); }
.fm-heading-card { font-size: var(--fm-heading-card-size); }
.fm-heading-section { font-size: var(--fm-heading-section-size); }
.fm-heading-label { margin: 0 0 10px; color: var(--lime); font-size: var(--fm-heading-label-size); font-weight: 850; letter-spacing: 0.16em; line-height: 1.1; text-transform: uppercase; }
.fm-heading-accent { color: var(--lime); }
.fm-heading-muted { color: var(--muted); }
.fm-heading-marker { display: flex; min-width: 0; align-items: center; gap: 8px; }
.fm-heading-marker::before { flex: 0 0 4px; width: 4px; height: 20px; border-radius: 3px 5px 3px 5px; background: linear-gradient(180deg, var(--lime), color-mix(in srgb, var(--lime) 42%, var(--cyan))); box-shadow: 0 0 12px rgba(195, 230, 106, 0.18); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.035em; }
h1 { margin-bottom: 16px; font-family: Georgia, "Times New Roman", serif; font-size: calc(clamp(3rem, 10vw, 6rem) - 3px); font-weight: 500; }
h1 span { color: var(--lime); }
.intro-copy { max-width: 610px; margin: 0; color: var(--muted); font-size: calc(1rem - 3px); }
.mini-label, .panel-note { display: inline-flex; align-items: center; width: fit-content; border-radius: 99px; font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.mini-label { padding: 4px 7px; background: rgba(105, 196, 176, 0.13); color: var(--cyan); }
.mini-label[data-state="finished"], .mini-label[data-state="paused"], .mini-label[data-state="halftime"] { background: rgba(181, 199, 190, 0.12); color: var(--muted); }
.mini-label[data-state="replay"] { background: rgba(195, 230, 106, 0.13); color: var(--lime); }
.panel-note { padding: 5px 9px; background: rgba(244, 241, 233, 0.07); color: var(--muted); }
.info-button, .stadium-info-button { display: inline-grid; width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; place-items: center; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); cursor: help; font: inherit; font-size: var(--fm-font-label); font-weight: 800; line-height: 1; transition: color 140ms ease, background-color 140ms ease, outline-color 140ms ease; }
.info-button { position: absolute; top: 16px; right: 16px; }
.card-title-row .info-button { position: static; }
.info-button:hover, .stadium-info-button:hover { background: rgba(244, 241, 233, 0.055); color: var(--ink); }
.info-button:focus-visible, .stadium-info-button:focus-visible { color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.48); outline-offset: 1px; }

.manager-navigation-layout { display: grid; gap: var(--fm-panel-gap); }
.manager-main-nav { display: grid; gap: 9px; align-content: start; }
.manager-main-divider { display: flex; align-items: center; min-height: 1px; margin: 2px 8px 1px; background: rgba(244, 241, 233, 0.12); }
.manager-main-tile { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 11px; min-height: 84px; padding: 9px 11px 9px 9px; overflow: hidden; border: 1px solid rgba(244, 241, 233, 0.17); border-radius: 6px 17px 6px 17px; background: linear-gradient(112deg, rgba(30, 51, 43, 0.96), rgba(20, 33, 29, 0.92)); color: var(--muted); cursor: pointer; text-align: left; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; }
.manager-main-tile-manager { border-color: rgba(195, 230, 106, 0.34); }
.manager-main-tile::before { position: absolute; inset: 4px; border: 1px solid rgba(244, 241, 233, 0.06); border-radius: 4px 14px 4px 14px; content: ""; pointer-events: none; }
.manager-main-tile::after { position: absolute; top: 0; right: 19px; width: 28px; height: 3px; background: rgba(244, 241, 233, 0.18); content: ""; transform: skewX(-34deg); }
.manager-main-tile:hover, .manager-main-tile:focus-visible, .manager-main-tile:focus-within { border-color: rgba(195, 230, 106, 0.72); background: linear-gradient(112deg, rgba(51, 80, 54, 0.98), rgba(25, 45, 37, 0.96)); color: var(--ink); outline: none; transform: translateX(2px); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.17), inset 0 0 0 1px rgba(195, 230, 106, 0.12); }
.manager-main-tile.active { border-color: var(--lime); background: linear-gradient(112deg, rgba(64, 94, 55, 0.98), rgba(27, 47, 37, 0.96)); color: var(--ink); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18), inset 0 -3px 0 rgba(195, 230, 106, 0.34); }
.manager-main-tile.active::after { background: var(--lime); }
.manager-main-visual { position: relative; z-index: 1; display: grid; width: 72px; height: 64px; place-items: center; overflow: hidden; border: 1px solid currentColor; border-radius: 5px 12px 5px 12px; background: rgba(11, 23, 19, 0.58); color: var(--cyan); transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.manager-main-portrait-trigger { position: relative; z-index: 1; display: grid; width: 72px; height: 64px; place-items: center; padding: 0; border: 0; border-radius: 5px 12px 5px 12px; background: transparent; color: inherit; cursor: pointer; }
.manager-main-dashboard-trigger { align-self: stretch; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.manager-main-portrait-trigger:focus-visible, .manager-main-dashboard-trigger:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.manager-main-visual::after { position: absolute; inset: 0; background: repeating-linear-gradient(132deg, transparent 0 10px, rgba(255, 255, 255, 0.04) 10px 11px); content: ""; pointer-events: none; }
.manager-main-visual svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.manager-main-visual img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.manager-main-visual-squad { color: var(--manager-squad-icon); }
.manager-main-visual-squad .fm-symbol-roster { color: inherit; }
.manager-main-visual-league { color: var(--gold); }
.manager-main-visual-manager { color: var(--lime); }
.manager-main-tile.ponzelar-message-armed .manager-main-visual-manager { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(195, 230, 106, 0.27), 0 0 16px rgba(195, 230, 106, 0.2); }
.manager-main-visual-finance { color: #f3e65c; }
.manager-main-tile.active .manager-main-visual { background: rgba(195, 230, 106, 0.11); }
.manager-main-copy { position: relative; z-index: 1; display: grid; min-width: 0; gap: 4px; }
.manager-main-copy strong { overflow: hidden; color: inherit; font-size: 15px; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.manager-tabs { display: flex; align-items: center; gap: var(--fm-space-2); min-height: 49px; margin-bottom: 13px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; }
.manager-tabs.manager-tabs-empty { display: none; }
.manager-tab-list { display: grid; flex: 1 1 auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--fm-manager-tab-gap); min-width: 0; }
.manager-tab { display: inline-flex; width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 800; white-space: nowrap; }
.manager-tab:hover, .manager-tab:focus-visible { border-color: rgba(195, 230, 106, 0.48); background: rgba(255, 255, 255, 0.04); color: var(--ink); outline: none; }
.manager-tab.active { border-color: rgba(195, 230, 106, 0.7); background: rgba(195, 230, 106, 0.13); color: var(--lime); }
.manager-tab-icon { display: inline-grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; color: currentColor; transition: color 0.16s ease, transform 0.16s ease, filter 0.16s ease; }
.manager-tab-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.manager-tab:hover .manager-tab-icon, .manager-tab:focus-visible .manager-tab-icon { transform: translateY(-1px) scale(1.06); }
.manager-tab.active .manager-tab-icon { color: currentColor; filter: drop-shadow(0 0 5px rgba(195, 230, 106, 0.3)); }
.manager-tab small { color: var(--gold); font-size: var(--fm-font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.manager-tab-disabled, .manager-tab-disabled:hover { cursor: not-allowed; opacity: 0.45; transform: none; }
.manager-main-tile.match-navigation-locked, .manager-tab.match-navigation-locked, .manager-brand.match-navigation-locked, .manager-team-context.match-navigation-locked { cursor: not-allowed; opacity: 0.42; filter: saturate(0.55); }
.manager-main-tile.match-navigation-locked:hover, .manager-main-tile.match-navigation-locked:focus-visible, .manager-tab.match-navigation-locked:hover, .manager-tab.match-navigation-locked:focus-visible, .manager-team-context.match-navigation-locked:hover, .manager-team-context.match-navigation-locked:focus-visible { border-color: var(--line); background: transparent; color: var(--muted); outline: none; transform: none; box-shadow: none; }
.manager-main-tile.onboarding-target { border-color: var(--lime); background: linear-gradient(112deg, rgba(64, 94, 55, 0.98), rgba(27, 47, 37, 0.96)); color: var(--ink); box-shadow: 0 0 0 2px rgba(195, 230, 106, 0.2), 0 12px 24px rgba(0, 0, 0, 0.18), inset 0 -3px 0 rgba(195, 230, 106, 0.34); }
.manager-main-tile.onboarding-target::after { background: var(--lime); }
.manager-main-tile.onboarding-locked, .manager-main-tile.onboarding-locked:hover, .manager-main-tile.onboarding-locked:focus-visible { cursor: not-allowed; opacity: 0.4; filter: saturate(0.45); transform: none; box-shadow: none; }
.manager-main-tile.onboarding-locked::after { background: rgba(244, 241, 233, 0.1); }
.manager-content { min-width: 0; }

.scoreboard { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 14px; padding: 15px; border: 0; border-radius: 12px; background: rgba(26, 42, 37, 0.84); box-shadow: none; }
.scoreboard { isolation: isolate; border-radius: 12px; background: linear-gradient(180deg, rgba(28, 48, 41, 0.98), rgba(11, 22, 19, 0.98)); box-shadow: none; }
.scoreboard::before { position: absolute; z-index: 0; inset: 6px; border: 0; border-radius: 7px; background-image: radial-gradient(circle, rgba(174, 229, 184, 0.44) 0.75px, transparent 1px); background-size: 5px 5px; content: ""; opacity: 0.22; pointer-events: none; }
.scoreboard > .team-headline, .scoreboard > .score-block { position: relative; z-index: 1; }
.team-headline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team-headline-away { justify-content: flex-end; text-align: right; }
.team-headline > span:last-child, .team-headline > span:first-child:not(.team-dot) { display: grid; gap: 1px; min-width: 0; }
.team-headline small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; letter-spacing: 0.08em; }
.team-headline .team-headline-side-label { display: inline-flex; align-items: center; gap: 5px; color: #fff8ea; font-size: var(--fm-font-label); letter-spacing: 0.12em; text-transform: uppercase; }
.team-headline-side-label::before { flex: 0 0 8px; width: 8px; height: 8px; box-sizing: border-box; border: 1px solid #fff8ea; border-radius: 50%; background: var(--team-kit-color, var(--cyan)); content: ""; }
.team-headline-away .team-headline-side-label { flex-direction: row-reverse; justify-content: flex-start; }

.team-headline strong { overflow: hidden; color: var(--fm-color-team-name); text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-data); }
.team-headline .team-headline-meta { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 5px; color: var(--ink); font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.team-headline-away .team-headline-meta { justify-content: flex-end; }
.team-headline-meta .team-headline-rank { color: var(--ink); }
.team-headline-meta .team-headline-separator { color: var(--muted); letter-spacing: 0; }
.team-headline-meta .fixture-team-overall { color: var(--stat-overall); font-weight: 850; }
.team-dot { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #20182a; font-size: var(--fm-font-label); font-weight: 900; }
.team-crest { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid rgba(255, 248, 234, 0.72); border-radius: 9px 13px 9px 13px; background: linear-gradient(145deg, color-mix(in srgb, var(--team-color, var(--cyan)) 88%, white), color-mix(in srgb, var(--team-color, var(--cyan)) 72%, #17231f)); color: #20182a; font-weight: 900; }
.team-crest img { display: block; width: 100%; height: 100%; object-fit: contain; background: rgba(10, 20, 17, 0.32); }
.scoreboard .team-crest { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.scoreboard .team-crest img { background: transparent; }
.team-crest-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: var(--fm-font-label); font-weight: 950; letter-spacing: -0.04em; }
.team-color-fill { background-color: var(--team-color, var(--cyan)); }
.team-dot[data-kit-pattern="stripe"] { outline: 2px dashed rgba(32, 24, 42, 0.72); outline-offset: 2px; }
.score-block { display: grid; justify-items: center; min-width: 92px; }
.match-status-row { display: flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; text-align: center; }
.scoreboard .match-context-info { position: absolute; top: 8px; right: 8px; z-index: 2; cursor: pointer; }
.scoreboard .match-context-info[hidden] { display: none !important; }
.score-block span { color: var(--lime); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.score-block strong { font-family: Georgia, serif; font-size: calc(1.85rem - 3px); line-height: 1; }
.scoreboard .score-block strong { color: #d9f89a; font-family: Consolas, "Lucida Console", monospace; letter-spacing: 0.04em; text-shadow: 0 0 7px rgba(195, 230, 106, 0.72), 0 0 18px rgba(195, 230, 106, 0.28); }
.score-block small { color: var(--muted); font-size: var(--fm-font-label); }
.score-block .match-halftime-score { color: var(--ink); font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; font-weight: 850; }

.match-highlights.match-history-timeline { position: relative; min-height: 0; margin: 0; padding: 0; }
.match-highlights[hidden] { display: none; }
.match-event-timeline { position: relative; display: grid; gap: 5px; min-width: 0; padding: 0 0 2px; }
.match-event-timeline::before { position: absolute; top: 38px; bottom: 2px; left: 50%; width: 1px; background: rgba(105, 196, 176, 0.34); content: ""; pointer-events: none; }
.match-event-timeline-labels, .match-event-timeline-event { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); column-gap: 8px; min-width: 0; }
.match-event-timeline-labels { position: relative; z-index: 1; grid-column: 1; grid-row: 1; align-items: center; min-height: 42px; }
.match-event-timeline-label { display: flex; align-items: center; min-width: 0; }
.match-event-timeline-label-home { grid-column: 1; justify-content: flex-start; }
.match-event-timeline-label-away { grid-column: 3; justify-content: flex-end; }
.match-event-timeline-crest { flex: 0 0 38px; width: 38px; height: 38px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.match-history-timeline .team-crest { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.match-history-timeline .team-crest img { background: transparent; }
.match-event-timeline-kickoff { position: relative; z-index: 1; grid-column: 1; grid-row: 1; display: grid; align-items: center; justify-items: center; min-height: 42px; padding: 0; text-align: center; }
.match-event-timeline-kickoff-card { display: inline-flex; align-items: center; gap: 7px; min-width: 92px; padding: 5px 9px; border: 1px solid rgba(195, 230, 106, 0.52); border-radius: 8px 12px 8px 12px; background: rgba(17, 35, 30, 0.97); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18); color: var(--ink); }
.match-event-timeline-kickoff-icon { display: block; flex: 0 0 19px; width: 19px; height: 19px; color: var(--lime); }
.match-event-timeline-kickoff-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.match-event-timeline-kickoff-copy { display: grid; gap: 1px; justify-items: start; min-width: 0; text-align: left; }
.match-event-timeline-kickoff-copy small { color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; line-height: 1; }
.match-event-timeline-kickoff-copy strong { color: var(--ink); font-size: var(--fm-font-label); letter-spacing: 0.06em; line-height: 1.05; text-transform: uppercase; }
.match-event-timeline-events { position: relative; z-index: 1; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.match-event-timeline-event { position: relative; align-items: center; min-height: 28px; }
.match-event-timeline-side { display: flex; min-width: 0; }
.match-event-timeline-side-home { grid-column: 1; justify-content: flex-end; }
.match-event-timeline-side-away { grid-column: 3; justify-content: flex-start; }
.match-highlight-item { display: flex; align-items: center; box-sizing: border-box; width: min(100%, 220px); min-width: 0; min-height: 21px; overflow: hidden; padding: 3px 7px; border-radius: 6px; background: rgba(105, 196, 176, 0.12); color: var(--ink); font-size: var(--fm-font-label); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.match-event-timeline-side-home .match-highlight-item { text-align: right; }
.match-event-timeline-side-away .match-highlight-item { text-align: left; }
.match-highlight-item.highlight-goal { border-left: 2px solid var(--lime); }
.match-highlight-item.highlight-yellow { border-left: 2px solid var(--gold); color: #f5ca72; }
.match-highlight-item.highlight-red { border-left: 2px solid var(--red); color: #f0a08e; }
.match-highlight-item.highlight-injury { border-left: 2px solid var(--cyan); }
.match-event-timeline-side-away .match-highlight-item { border-right: 2px solid var(--lime); border-left: 0; }
.match-event-timeline-side-away .match-highlight-item.highlight-yellow { border-right-color: var(--gold); }
.match-event-timeline-side-away .match-highlight-item.highlight-red { border-right-color: var(--red); }
.match-event-timeline-side-away .match-highlight-item.highlight-injury { border-right-color: var(--cyan); }
.match-event-timeline-point { grid-column: 2; display: grid; width: 100%; height: 100%; min-height: 28px; place-items: center; }
.match-event-timeline-point::before { width: 8px; height: 8px; border: 2px solid var(--panel); border-radius: 50%; background: var(--team-color, var(--lime)); box-shadow: 0 0 0 2px rgba(105, 196, 176, 0.2); content: ""; }

.match-event-banner { position: absolute; z-index: 5; top: 12px; left: 50%; display: grid; width: fit-content; max-width: min(calc(100% - 24px), 460px); grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin: 0; padding: 8px 12px; border: 1px solid var(--lime); border-radius: 16px; background: linear-gradient(105deg, rgba(18, 41, 34, 0.97), rgba(17, 28, 25, 0.95) 72%); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 28px rgba(195, 230, 106, 0.16); pointer-events: none; transform: translateX(-50%); }
.match-event-banner[hidden] { display: none; }
.match-event-banner { pointer-events: auto; }
.match-event-banner:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.match-event-banner[aria-pressed="true"] { outline: 2px solid var(--cyan); outline-offset: 3px; }
.match-event-banner .match-event-copy small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
.match-event-banner .match-event-copy small:empty { display: none; }
.match-event-banner > b:empty { display: none; }
.match-event-banner.is-new { animation: match-event-pop 0.72s cubic-bezier(0.18, 0.88, 0.28, 1); }
.match-event-banner.goal { border-width: 2px; background: linear-gradient(105deg, rgba(195, 230, 106, 0.3), rgba(26, 42, 37, 0.96) 62%); box-shadow: 0 0 0 3px rgba(195, 230, 106, 0.08), 0 18px 40px rgba(0, 0, 0, 0.24), 0 0 34px rgba(195, 230, 106, 0.2); }
.match-event-banner.goal .match-event-symbol { width: 56px; height: 56px; }
.match-event-banner.goal .match-event-copy strong { font-size: calc(1.05rem - 3px); }
.match-event-banner.yellow { border-color: var(--gold); background: linear-gradient(105deg, rgba(243, 182, 72, 0.16), rgba(26, 42, 37, 0.92) 62%); }
.match-event-banner.red { border-color: var(--red); background: linear-gradient(105deg, rgba(239, 141, 123, 0.17), rgba(26, 42, 37, 0.92) 62%); }
.match-event-symbol { display: block; width: 48px; height: 48px; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.match-event-copy { display: grid; gap: 1px; min-width: 0; }
.match-event-copy strong { color: var(--lime); font-size: var(--fm-font-label); letter-spacing: 0.12em; text-transform: uppercase; }
.match-event-copy small { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); text-overflow: ellipsis; white-space: nowrap; }
.match-event-banner.yellow .match-event-copy strong { color: var(--gold); }
.match-event-banner.red .match-event-copy strong { color: var(--red); }
.match-event-banner > b { font-family: Georgia, serif; font-size: calc(clamp(1.45rem, 3vw, 2rem) - 3px); white-space: nowrap; }
.sound-toggle { color: var(--cyan); }
.sound-toggle[aria-pressed="false"] { color: var(--muted); }

@keyframes match-event-pop {
  0% { opacity: 0; transform: translate(-50%, -9px) scale(0.96); }
  38% { opacity: 1; transform: translate(-50%, 0) scale(1.02); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes lineup-swap-target-pulse {
  from { box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.18), 0 0 16px rgba(195, 230, 106, 0.24); }
  to { box-shadow: 0 0 0 6px rgba(195, 230, 106, 0.3), 0 0 28px rgba(195, 230, 106, 0.46); }
}

.lineup-studio { display: grid; grid-template-columns: 1fr; grid-template-areas: "field" "rating" "roster"; align-items: start; gap: 10px; }
.lineup-studio-panel { margin-top: 0; }
.field-card, .side-card, .table-card, .tactic-block, .explanation-card, .future-grid article { border: 1px solid var(--line); border-radius: 18px; background: rgba(26, 42, 37, 0.78); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12); }
.field-card, .player-pool-card { overflow: hidden; }
.lineup-field-card { position: relative; z-index: 2; grid-area: field; width: 100%; min-width: 0; margin-inline: auto; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.squad-roster-card { grid-area: roster; min-width: 0; }
.team-rating-card { position: relative; grid-area: rating; width: 100%; min-width: 0; margin-inline: auto; overflow: hidden; padding: 14px; background: linear-gradient(135deg, rgba(34, 57, 47, 0.96), rgba(26, 42, 37, 0.84)); }
.live-field-card { width: min(100%, 700px); margin-inline: auto; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(239, 141, 123, 0.1); }
.canvas-wrap { position: relative; display: flex; justify-content: center; padding: 6px; background: #174638; }
/* Live frame preserves the canvas inset and all pointer coordinates. */
.live-field-card > .canvas-wrap {
  background: #10231b;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(6,17,13,.28);
}
.live-field-card > .canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--fm-button-brass-dark);
  pointer-events: none;
}
.lineup-field-card .canvas-wrap {
  padding: 0;
  border-radius: 10px;
  background: #173b2d;
  box-shadow: 0 10px 22px rgba(6,17,13,.35);
}
.lineup-field-card .canvas-wrap > canvas { border-radius: 10px; }
/* Decorative frame stays outside the pitch, preserving drag coordinates. */
.lineup-field-card .canvas-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 1;
  border: 4px solid #173b2d;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--fm-button-brass-dark), inset 0 0 0 1px rgba(203,168,85,.45);
  pointer-events: none;
}
.lineup-field-card .canvas-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 1;
  border-radius: 14px;
  background:
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) left 5px top 0 / 10px 2px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) left 0 top 5px / 2px 10px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) right 5px top 0 / 10px 2px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) right 0 top 5px / 2px 10px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) left 5px bottom 0 / 10px 2px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) left 0 bottom 5px / 2px 10px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) right 5px bottom 0 / 10px 2px no-repeat,
    linear-gradient(var(--fm-button-brass), var(--fm-button-brass-dark)) right 0 bottom 5px / 2px 10px no-repeat;
  pointer-events: none;
}
#match-canvas, #live-match-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1.54 / 1; }
#match-canvas { cursor: default; touch-action: none; }
.live-player-hover-card { position: absolute; z-index: 4; top: 14px; right: 14px; width: min(360px, calc(100% - 28px)); min-width: 0; max-width: calc(100% - 28px); padding: 0; border: 0; border-radius: 10px; background: transparent; pointer-events: none; }
.live-player-hover-card.is-match-patterned .field-player-detail-card { border-right-style: dashed; }
.live-player-hover-card[hidden] { display: none; }
.player-card-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; min-width: 0; column-gap: 6px; }
.field-player-chip-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; min-width: 0; gap: 3px; }
.live-player-hover-card .field-player-chip-name { font-size: var(--fm-font-label); }
.live-player-hover-card .field-player-chip-meta { gap: 6px; font-size: var(--fm-font-label); }

#match-canvas:active { cursor: grabbing; }
.field-player-layer { position: absolute; inset: 6px; pointer-events: none; }
.lineup-field-card .field-player-layer { inset: 0; }
.lineup-slot-layer { position: absolute; z-index: 1; inset: 6px; pointer-events: none; }
.lineup-field-card .lineup-slot-layer { inset: 0; }
.lineup-slot-layer[hidden] { display: none; }
.lineup-drag-preview { position: fixed; z-index: 100; width: min(190px, calc(100vw - 24px)); min-height: 42px; pointer-events: none; opacity: 0.94; filter: drop-shadow(0 8px 13px rgba(0, 0, 0, 0.28)); transform: rotate(1deg); }
.lineup-drag-preview[hidden] { display: none; }
.lineup-drag-preview-card { position: relative !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; transform: none !important; pointer-events: none !important; cursor: grabbing !important; }
.lineup-drag-preview .field-player-hit { min-height: 42px; }
.lineup-drag-preview .roster-card { min-height: 58px; opacity: 1; }
.lineup-slot { position: absolute; display: grid; width: clamp(92px, 20%, 132px); min-height: 42px; place-items: center; align-content: center; gap: 2px; padding: 5px 8px; border: 1px dashed rgba(195, 230, 106, 0.58); border-radius: 9px 15px 9px 15px; background: rgba(17, 28, 25, 0.34); color: rgba(244, 241, 233, 0.75); cursor: default; pointer-events: auto; text-align: center; transform: translate(-50%, -50%); transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease; }
.lineup-slot strong { color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.lineup-slot small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.lineup-slot.is-drop-target, .lineup-slot:focus-visible { border-color: var(--lime); background: rgba(195, 230, 106, 0.19); color: var(--ink); box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.18), 0 0 18px rgba(195, 230, 106, 0.3); outline: none; }
.field-player-hit { position: absolute; z-index: 2; display: grid; width: clamp(154px, 28%, 198px); min-height: 48px; padding: 5px 8px; align-content: center; gap: 0; border: 1px solid rgba(244, 241, 233, 0.42); border-radius: 8px 14px 8px 14px; background: rgba(17, 28, 25, 0.94); color: var(--ink); cursor: grab; pointer-events: auto; text-align: left; touch-action: none; transform: translate(-50%, -50%); box-shadow: 0 7px 12px rgba(0, 0, 0, 0.2); }
.field-player-hit-goalkeeper { z-index: 3; }
.field-player-hit:hover, .field-player-hit:focus-visible { border-color: var(--lime); background: rgba(195, 230, 106, 0.09); box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.16); outline: none; }
.field-player-hit.is-swap-target { border-color: var(--lime); background: rgba(195, 230, 106, 0.16); box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.2), 0 0 22px rgba(195, 230, 106, 0.32); outline: none; animation: lineup-swap-target-pulse 0.72s ease-in-out infinite alternate; }
.field-player-hit:active { cursor: grabbing; }
.tactics-field-player-hit { cursor: pointer; transition: opacity 0.18s ease, filter 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.tactics-field-player-hit.is-movement-editor-muted { opacity: 0.24; filter: saturate(0.48); }
.tactics-field-player-hit.is-movement-editor-muted.is-selected { opacity: 1; filter: none; }
.tactics-field-player-hit-static { cursor: default; }
.tactics-field-player-hit.is-selected { border-color: transparent; background: transparent; box-shadow: none; }
.field-player-chip-heading { display: block; min-width: 0; }
.field-player-chip-identity { display: flex; align-items: center; min-width: 0; gap: 4px; }
.field-player-chip-name { display: -webkit-box; min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-weight: 950; line-height: 1.05; text-wrap: balance; white-space: normal; hyphens: none; word-break: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.field-player-chip-vitals { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, auto)); grid-column: 2; grid-row: 1; align-content: center; align-items: stretch; gap: 2px; width: 46px; min-width: 46px; align-self: stretch; padding-left: 4px; border-left: 1px solid rgba(244, 241, 233, 0.28); color: var(--ink); font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1.1; white-space: normal; }
.field-player-chip-experience, .field-player-chip-condition { display: grid; width: 100%; min-height: 17px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3px; padding: 2px 4px; border: 1px solid rgba(16, 24, 21, 0.22); border-radius: 4px 7px 4px 7px; color: var(--deep); font-size: var(--fm-font-label); font-weight: 950; line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.18); }
.field-player-chip-metric-label { justify-self: start; font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.02em; line-height: 1; opacity: 0.82; }
.field-player-chip-metric-value { min-width: 1.4ch; justify-self: end; text-align: right; font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0; line-height: 1; }
.field-player-chip-experience { background: var(--stat-experience); }
.field-player-chip-meta { display: flex; align-items: center; min-width: 0; gap: 4px; overflow: hidden; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 850; line-height: 1.1; white-space: nowrap; }
.field-player-chip-strength { flex: 0 0 auto; font-size: var(--fm-font-label); font-weight: 850; }
.field-player-chip-strength .overall-mark { color: #f1ead9; font-size: inherit; font-weight: 850; letter-spacing: 0; }
.field-player-chip-strength .overall-mark.overall-mark-normal, .field-player-chip-strength .overall-mark.overall-mark-reduced { min-height: 0; padding: 1px 3px; border-color: rgba(220, 210, 180, 0.55); border-radius: 4px 6px 4px 6px; background: #101b17; box-shadow: none; }
.field-player-chip-strength .overall-mark > b, .field-player-chip-strength .overall-mark .overall-mark-current, .field-player-chip-strength .overall-mark .overall-mark-direction, .field-player-chip-strength .overall-mark .overall-mark-base { font-weight: 850; }
.field-player-chip-talent { display: inline-grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; }
.field-player-chip-talent .talent-star { width: 18px; height: 18px; }
.field-player-chip-condition.field-condition-fresh { background: var(--condition-fresh); }
.field-player-chip-condition.field-condition-tired { background: var(--condition-tired); }
.field-player-chip-condition.field-condition-low { background: var(--condition-low); }
.field-player-chip-condition.field-condition-empty { background: var(--condition-empty); }
.field-player-chip-position { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 2px; }
.field-player-chip-position .role-badge { border-radius: 4px 6px 4px 6px; }

/* Feldaufstellung: Porträt als ruhiger Hauptmarker, Details nur bei Bedarf. */
.lineup-field-card .field-player-hit-portrait, .tactics-field-card .field-player-hit-portrait { width: 58px; height: 58px; min-height: 58px; padding: 0; overflow: visible; border: 0; border-radius: 50%; background: transparent; box-shadow: none; text-align: center; cursor: pointer; }
.lineup-field-card .field-player-hit-portrait:hover, .lineup-field-card .field-player-hit-portrait:focus-visible, .tactics-field-card .field-player-hit-portrait:hover, .tactics-field-card .field-player-hit-portrait:focus-visible, .tactics-field-card .field-player-hit-portrait.is-selected { border-color: transparent; background: transparent; box-shadow: none; outline: none; }
.lineup-field-card .field-player-hit-portrait:focus-visible, .tactics-field-card .field-player-hit-portrait:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.field-player-marker { position: relative; isolation: isolate; display: grid; width: 58px; height: 58px; place-items: center; }
.field-player-marker::before { position: absolute; z-index: 0; inset: 7px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--field-player-role-color, var(--role-mid)) 48%, transparent), transparent 72%); content: ""; filter: blur(7px); opacity: 0.88; pointer-events: none; }
.field-player-marker-portrait { position: relative; z-index: 1; display: grid; width: 50px; height: 50px; overflow: hidden; place-items: center; border: 1px solid color-mix(in srgb, var(--field-player-role-color, var(--role-mid)) 72%, rgba(244, 241, 233, 0.3)); border-radius: 50%; background: radial-gradient(circle at 38% 24%, color-mix(in srgb, var(--field-player-role-color, var(--role-mid)) 52%, #65776a) 0%, color-mix(in srgb, var(--field-player-role-color, var(--role-mid)) 40%, #243a31) 44%, color-mix(in srgb, var(--field-player-role-color, var(--role-mid)) 28%, var(--deep)) 100%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--field-player-role-color, var(--role-mid)) 18%, transparent), 0 5px 12px rgba(0, 0, 0, 0.32); transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease; }
.field-player-marker-condition { position: absolute; z-index: 2; inset: 0; border-radius: 50%; background: conic-gradient(from 180deg, var(--field-condition-color) 0deg var(--field-condition-angle), rgba(218, 229, 220, 0.34) var(--field-condition-angle) 180deg, transparent 180deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); opacity: 0.92; pointer-events: none; }
.field-player-marker-condition-value { position: absolute; z-index: 3; top: -11px; left: 50%; transform: translateX(-50%); color: var(--field-condition-color); font: 700 10px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); pointer-events: none; }
.field-player-marker-condition.field-condition-fresh, .field-player-marker-condition-value.field-condition-fresh { --field-condition-color: var(--condition-fresh); }
.field-player-marker-condition.field-condition-tired, .field-player-marker-condition-value.field-condition-tired { --field-condition-color: var(--condition-tired); }
.field-player-marker-condition.field-condition-low, .field-player-marker-condition-value.field-condition-low { --field-condition-color: var(--condition-low); }
.field-player-marker-condition.field-condition-empty, .field-player-marker-condition-value.field-condition-empty { --field-condition-color: var(--condition-empty); }
.lineup-field-card .field-player-hit-portrait[data-field-role="GK"], .tactics-field-card .field-player-hit-portrait[data-field-role="GK"] { --field-player-role-color: var(--role-gk); }
.lineup-field-card .field-player-hit-portrait[data-field-role="DEF"], .tactics-field-card .field-player-hit-portrait[data-field-role="DEF"] { --field-player-role-color: var(--role-def); }
.lineup-field-card .field-player-hit-portrait[data-field-role="MID"], .tactics-field-card .field-player-hit-portrait[data-field-role="MID"] { --field-player-role-color: var(--role-mid); }
.lineup-field-card .field-player-hit-portrait[data-field-role="FWD"], .tactics-field-card .field-player-hit-portrait[data-field-role="FWD"] { --field-player-role-color: var(--role-fwd); }
.lineup-field-card .field-player-hit-portrait:is(:hover, :focus-visible, .is-hovered) .field-player-marker-portrait, .tactics-field-card .field-player-hit-portrait:is(:hover, :focus-visible) .field-player-marker-portrait { border-color: var(--field-player-role-color, var(--lime)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-player-role-color, var(--lime)) 48%, transparent), 0 5px 12px rgba(0, 0, 0, 0.32); }
.lineup-field-card .field-player-hit-portrait.is-active .field-player-marker-portrait, .tactics-field-card .field-player-hit-portrait.is-selected .field-player-marker-portrait { border-color: var(--lime) !important; box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.22), 0 0 18px rgba(195, 230, 106, 0.34) !important; }
.field-player-marker-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.field-player-marker-strength { position: absolute; z-index: 3; right: -2px; bottom: 3px; display: inline-flex; align-items: center; font-size: var(--fm-font-label); pointer-events: none; }
.field-player-marker-strength .overall-mark-current { color: inherit; }
.field-player-marker-fallback, .field-player-detail-portrait-fallback { color: var(--ink); font-size: calc(1rem - 3px); font-weight: 950; line-height: 1; }
.field-player-marker.is-level-up::after { position: absolute; z-index: 4; top: -2px; right: -4px; color: var(--lime); content: "+1"; font-size: 12px; font-weight: 950; line-height: 1; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 9px rgba(195, 230, 106, 0.92); animation: field-player-level-up-pop 1.45s ease-out both; }
.field-player-marker.is-level-up .field-player-marker-portrait { animation: field-player-level-up-flash 1.45s ease-out both; }
@keyframes field-player-level-up-pop { 0% { opacity: 0; transform: translateY(5px) scale(0.72); } 18%, 62% { opacity: 1; transform: translateY(0) scale(1.08); } 100% { opacity: 0; transform: translateY(-7px) scale(0.92); } }
@keyframes field-player-level-up-flash { 0%, 100% { filter: brightness(1); transform: scale(1); } 24% { filter: brightness(1.45); transform: scale(1.07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--field-player-role-color, var(--lime)) 56%, transparent), 0 0 18px color-mix(in srgb, var(--field-player-role-color, var(--lime)) 65%, transparent); } 60% { filter: brightness(1.12); transform: scale(1.015); } }
.lineup-field-card .field-player-hit-portrait.is-swap-target .field-player-marker-portrait { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.28), 0 0 18px rgba(195, 230, 106, 0.44); }
@media (prefers-reduced-motion: reduce) {
  .field-player-marker.is-level-up::after, .field-player-marker.is-level-up .field-player-marker-portrait { animation: none; }
}
.lineup-field-card .field-player-detail, .tactics-canvas-wrap .field-player-detail { position: absolute; z-index: 6; top: 0; left: 0; display: grid; width: min(360px, calc(100% - 16px)); min-height: 58px; padding: 0; border: 0; border-radius: 10px 16px 10px 16px; background: transparent; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28); pointer-events: none; }
.field-player-detail[hidden] { display: none; }
.field-player-detail-card { width: 100%; min-width: 0; min-height: 58px; padding: 2px 8px; pointer-events: none; }
.field-player-detail .roster-primary-identity { align-items: center; }
.field-player-detail .roster-portrait { align-self: center; }
.field-player-detail .roster-line-primary { align-items: center; }
.field-player-detail .roster-meter-group { justify-items: stretch; }
.field-player-detail .roster-card:hover, .field-player-detail .roster-card:focus-visible { transform: none; box-shadow: 0 4px 0 rgba(7, 17, 14, 0.72), 0 10px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.field-player-detail .field-player-detail-portrait { width: 38px; height: 38px; }
.field-player-detail .roster-line-primary > strong { font-size: var(--fm-font-data); }

.field-player-detail .roster-meter-track { height: 17px; }

@media (pointer: coarse) {
  .lineup-field-card .field-player-hit-portrait, .tactics-field-card .field-player-hit-portrait { width: 64px; height: 64px; }
  .field-player-marker { width: 64px; height: 64px; }
  .field-player-marker-portrait { width: 56px; height: 56px; }
}

@media (max-width: 520px) {
  .lineup-field-card .field-player-detail, .tactics-canvas-wrap .field-player-detail { top: 0; left: 0; width: calc(100% - 16px); min-height: 58px; }
  .field-player-detail .roster-line-primary > strong { font-size: var(--fm-font-data); }
}

.movement-zone-layer { position: absolute; z-index: 4; inset: 6px; pointer-events: none; }
.movement-zone-layer[hidden] { display: none; }
.tactics-movement-heading { display: flex; align-items: center; min-width: 0; padding: 12px 14px 6px; }
.tactics-movement-heading-copy { display: grid; min-width: 0; gap: 3px; }
.tactics-movement-heading h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.tactics-movement-heading strong { min-width: 0; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.movement-zone-toolbar { position: static; z-index: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px 14px; min-height: 72px; margin: 0; padding: 6px 14px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 11px; }
.movement-zone-toolbar.is-empty { background: transparent; }
.movement-zone-key { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: start; min-width: 0; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.04em; }
.movement-zone-key-copy { display: grid; align-content: start; min-width: 0; gap: 2px; white-space: nowrap; }
.movement-zone-key-heading { display: flex; align-items: center; min-width: 0; gap: 5px; }
.movement-zone-key-copy strong { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.04em; white-space: nowrap; }
.movement-zone-key-copy b { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.movement-zone-control { display: inline-flex; align-items: center; min-width: 0; gap: 6px; }
.movement-zone-control small { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.movement-zone-key i { display: inline-block; width: 15px; height: 7px; border: 2px solid var(--cyan); border-radius: 99px; }
.movement-zone-key-ball i { border-color: var(--lime); border-style: dashed; }
.movement-direction-control { display: inline-flex; align-items: center; justify-self: start; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0; }
.movement-direction-control input { width: 52px; height: 16px; margin: 0; accent-color: var(--lime); cursor: pointer; }
.movement-direction-control input:disabled { cursor: not-allowed; opacity: 0.42; }
.movement-zone-toolbar.is-empty .movement-zone-key { opacity: 0.64; }
.movement-zone-key-free .movement-direction-control input { accent-color: var(--cyan); }
.movement-direction-control input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 520px) {
}
@media (min-width: 521px) {
  .tactics-field-card { display: grid; grid-template-columns: minmax(120px, 0.3fr) minmax(0, 0.7fr); align-items: center; }
  .tactics-field-card > .tactics-movement-heading { grid-column: 1; padding: 12px 14px; }
  .tactics-field-card > .movement-zone-toolbar { grid-column: 2; min-height: 0; padding: 12px 14px; gap: 6px 10px; }
  .tactics-field-card > .tactics-canvas-wrap { grid-column: 1 / -1; }
}
.movement-radius-handle { position: absolute; display: inline-flex; align-items: center; width: auto; max-width: 112px; min-width: 0; min-height: 31px; padding: 3px 5px; gap: 2px; border: 2px solid var(--cyan); border-radius: 7px 11px 7px 11px; background: rgba(17, 28, 25, 0.96); color: var(--ink); cursor: grab; pointer-events: auto; text-align: left; touch-action: none; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); white-space: nowrap; }
.movement-radius-grip { position: relative; display: grid; place-items: center; flex: 0 0 19px; width: 19px; height: 23px; margin-block: -4px; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: -0.18em; line-height: 1; }
.movement-radius-grip::after { position: absolute; inset: -6px; content: ""; }
.movement-radius-label { color: var(--cyan); font-size: 10px; font-weight: 950; letter-spacing: 0.05em; line-height: 1; }
.movement-radius-handle-ball { border-color: var(--lime); border-style: dashed; }
.movement-radius-handle-ball .movement-radius-grip, .movement-radius-handle-ball .movement-radius-label { color: var(--lime); }
.movement-radius-handle:hover, .movement-radius-handle:focus-visible { background: rgba(195, 230, 106, 0.18); box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.16), 0 7px 16px rgba(0, 0, 0, 0.3); outline: none; }
.movement-radius-handle:active, .movement-radius-handle.is-dragging { cursor: grabbing; }
.movement-radius-handle.is-dragging { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242, 247, 235, 0.16), 0 7px 16px rgba(0, 0, 0, 0.3); }
@media (pointer: coarse) {
  :root { --fm-icon-control-size: 40px; }
  .movement-radius-handle { min-height: 40px; padding-inline: 7px; }
  .movement-radius-grip { flex-basis: 25px; width: 25px; height: 30px; }
  .stadium-price-stepper-button { width: 38px; height: 38px; }
}
.player-pool-card { align-self: start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(26, 42, 37, 0.78); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12); }
.squad-roster-card.is-field-drop-target { border-color: var(--lime); background: rgba(195, 230, 106, 0.11); box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.13), 0 12px 34px rgba(0, 0, 0, 0.18); }
.bench-drop-slot { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border: 1px dashed rgba(195, 230, 106, 0.58); border-radius: 10px; background: rgba(195, 230, 106, 0.035); color: var(--muted); transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease; }
.bench-drop-slot-icon { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px dashed currentColor; border-radius: 7px 10px 7px 10px; color: var(--lime); font-size: calc(1.05rem - 3px); font-weight: 700; line-height: 1; }
.bench-drop-slot-copy { display: grid; gap: 2px; min-width: 0; }
.bench-drop-slot-copy strong { color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.04em; text-transform: uppercase; }
.bench-drop-slot-copy small { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bench-drop-slot.is-drop-target { border-color: var(--lime); background: rgba(195, 230, 106, 0.18); color: var(--ink); box-shadow: 0 0 0 3px rgba(195, 230, 106, 0.16), 0 0 20px rgba(195, 230, 106, 0.24); }
.bench-drop-slot.is-drop-target .bench-drop-slot-icon { background: rgba(195, 230, 106, 0.18); box-shadow: 0 0 12px rgba(195, 230, 106, 0.24); }
.player-pool-card .card-title-row { align-items: flex-start; }
.player-pool-card .card-title-row h2 { margin: 0; font-size: var(--fm-heading-card-size); }
.player-pool-card .eyebrow { margin-bottom: 5px; }
.player-pool-card > .muted-copy { margin-bottom: 8px; font-size: var(--fm-font-label); }
.team-rating-formation { display: block; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid rgba(244, 241, 233, 0.12); }
.overall-mark { display: inline-flex; align-items: baseline; gap: 3px; color: var(--stat-overall); font-weight: 950; letter-spacing: 0.035em; white-space: nowrap; }
.overall-mark.overall-mark-normal, .overall-mark.overall-mark-reduced { align-items: center; min-height: 19px; padding: 2px 7px; border: 1px solid rgba(220, 210, 180, 0.55); border-radius: 6px 9px 6px 9px; background: #101b17; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); color: #f1ead9; }
.overall-mark-current { color: #f1ead9; }
.overall-mark-reduced .overall-mark-current, .overall-mark-position-malus .overall-mark-current, .overall-mark-position-malus .overall-mark-direction { color: var(--stat-overall-malus-position-ink); font-weight: 1000; }
.overall-mark-condition-malus .overall-mark-current, .overall-mark-condition-malus .overall-mark-direction { color: var(--stat-overall-malus-condition-ink); font-weight: 1000; }
.overall-mark-direction { display: inline-block; color: var(--stat-overall-malus-position-ink); font-size: calc(0.78em - 3px); font-weight: 1000; line-height: 1; }
.overall-mark-base { color: var(--stat-overall-base-ink); font-size: calc(0.84em - 3px); font-weight: 900; letter-spacing: 0; }
.overall-mark > b { color: #f1ead9; font-weight: 950; }
.team-rating-summary-heading { margin: 0 0 8px; }
.team-rating-summary-heading .eyebrow { margin: 0; color: var(--lime); font-size: var(--fm-font-label); }
.team-rating-grid { display: grid; gap: 6px; }
.team-rating-stat-card { --role-color: var(--cyan); min-width: 0; }
.team-rating-stat-card[data-role="OVERALL"] { --role-color: var(--stat-overall); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.team-rating-stat-card[data-role="DEF"] { --role-color: var(--role-def); }
.team-rating-stat-card[data-role="MID"] { --role-color: var(--cyan); }
.team-rating-stat-card[data-role="FWD"] { --role-color: var(--gold); }
.team-rating-stat-bar { --team-rating-fill: 64%; position: relative; height: 32px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--role-color) 52%, var(--line)); border-radius: 8px 12px 8px 12px; background: rgba(8, 18, 15, 0.84); }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-stat-bar:not(.stadium-rating-row) { height: 32px; border-color: color-mix(in srgb, var(--stat-overall) 54%, var(--line)); background: rgba(8, 18, 15, 0.84); }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-stat-bar:not(.stadium-rating-row) > span:first-child { background: var(--role-color); box-shadow: 0 0 10px color-mix(in srgb, var(--role-color) 28%, transparent); }
.team-rating-stat-bar:not(.stadium-rating-row) > span:first-child { display: block; height: 100%; border-radius: inherit; background: var(--role-color); box-shadow: 0 0 10px color-mix(in srgb, var(--role-color) 28%, transparent); transition: width 0.24s ease; }
.team-rating-bar-copy { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 0 9px; color: var(--ink); pointer-events: none; text-shadow: none; }
.team-rating-bar-copy-fill { color: #17221b; clip-path: inset(0 calc(100% - var(--team-rating-fill)) 0 0); }
.team-rating-bar-copy-rest { color: var(--ink); clip-path: inset(0 0 0 var(--team-rating-fill)); }
.team-rating-bar-copy-fill .team-rating-bar-label { background: color-mix(in srgb, var(--role-color) 74%, var(--stat-overall-ink)); color: var(--stat-overall-ink); }
.team-rating-stat-code { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 29px; padding: 3px 5px; border: 1px solid var(--role-color); border-radius: 5px 8px 5px 8px; background: rgba(8, 18, 15, 0.88); color: var(--role-color); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.03em; line-height: 1.05; }
.team-rating-grid .team-rating-stat-code { box-sizing: border-box; width: 42px; min-width: 42px; padding-inline: 0; }
.team-rating-grid .team-rating-stat-card:not([data-role="OVERALL"]) .team-rating-bar-label { box-sizing: border-box; width: 142px; flex: 0 0 142px; text-align: center; }
.team-rating-stat-code.role-mid { --role-color: var(--cyan); }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-stat-code-overall { border-color: rgba(220, 210, 180, 0.55); background: #101b17; color: #f1ead9; }
.player-strength-bar .team-rating-stat-code-overall { border-color: rgba(220, 210, 180, 0.55); background: #101b17; color: #f1ead9; }
.team-rating-bar-label { overflow: hidden; padding: 3px 6px; border: 1px solid rgba(8, 18, 15, 0.28); border-radius: 5px 8px 5px 8px; background: rgba(8, 18, 15, 0.88); color: inherit; font-size: var(--fm-font-label); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-bar-copy-fill .team-rating-bar-label, .team-rating-stat-card[data-role="OVERALL"] .team-rating-bar-copy-rest .team-rating-bar-label { border-color: rgba(23, 34, 27, 0.2); background: var(--stat-overall-bright); color: var(--stat-overall-ink); }
.profile-rating-bar-overall .team-rating-bar-copy-fill .team-rating-bar-label { border-color: rgba(220, 210, 180, 0.55); background: #101b17; color: #aeb4aa; }
.team-rating-bar-copy > b { margin-left: auto; color: var(--ink); font-size: calc(0.9rem - 3px); font-variant-numeric: tabular-nums; line-height: 1; }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-bar-copy > b { font-size: calc(1.04rem - 3px); }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-bar-copy-fill > b { color: var(--stat-overall-ink); }
.team-rating-stat-card[data-role="OVERALL"] .team-rating-bar-copy-rest > b { color: var(--stat-overall-bright); }
.match-live-panel { margin-top: 18px; }
.match-live-panel[hidden] { display: none; }
.match-live-grid { display: grid; gap: 14px; }
.match-live-grid.ticker-only { grid-template-columns: 1fr; }
.match-live-grid.ticker-only .match-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.live-field-column { display: grid; gap: 14px; }
.live-field-column > .scoreboard { margin-bottom: 0; }
.live-field-column > .match-controls { min-height: 62px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(26, 42, 37, 0.78); }
.match-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; }
.match-controls:not(.is-finished) > .simulation-switch { flex: 1 1 100%; }
.match-controls:not(.is-finished) > :is(.kickoff-button, .skip-match-button) { flex: 1 1 110px; }
.control-button, .speed-button { min-height: var(--fm-control-height); padding: 0 var(--fm-space-3); border: 1px solid var(--fm-color-border); border-radius: var(--fm-radius-sm); background: rgba(255, 255, 255, 0.05); color: var(--fm-color-text); cursor: pointer; font-size: var(--fm-font-control); font-weight: 800; }
.control-button:hover, .speed-button:hover { border-color: rgba(195, 230, 106, 0.5); }
.control-button:disabled { cursor: not-allowed; opacity: 0.36; }
.control-primary { border-color: var(--lime); background: var(--lime); color: #182118; }
.simulation-switch { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; min-width: 150px; min-height: 42px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.035); }
.simulation-switch-track { width: 38px; height: 21px; flex-basis: 38px; }
.simulation-switch-track span { top: 2px; left: 2px; width: 15px; height: 15px; }
.simulation-switch input:checked + .simulation-switch-track span { transform: translateX(17px); }
.speed-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.speed-controls #match-pause { margin-right: 6px; min-width: 64px; }
.speed-controls > span { margin-right: 3px; color: var(--muted); font-size: var(--fm-font-label); }
.speed-button { min-width: 34px; padding: 0 7px; }
.speed-button.selected { border-color: var(--gold); color: var(--gold); }

.match-side { display: grid; gap: 14px; }
.match-history-card { min-width: 0; }
.side-card { padding: 15px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-title-row h2, .card-title-row h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.match-stats-teams { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; color: var(--ink); font-size: var(--fm-font-label); font-weight: 800; line-height: 1.35; }
.match-stats-teams > span { overflow-wrap: anywhere; }
.match-stats-teams > span:last-child { text-align: right; }
.match-stats-teams > span::before { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 1px solid #fff8ea; border-radius: 50%; background: var(--stats-home-color); content: ""; }
.match-stats-teams > span:last-child::before { background: var(--stats-away-color); }
.match-stats-card .metric-home { background: var(--stats-home-color); color: var(--stats-home-ink); }
.match-stats-card .metric-away { background: var(--stats-away-color); color: var(--stats-away-ink); }
.match-stats-card .comparison-bar { outline: 1px solid #ffffff40; }
.match-stats-card .metric-away { border-left: 1px solid #fff8ea; }
.match-stats-card .card-metric-row span:last-child { color: inherit; }
.metric-stack { display: grid; gap: 10px; }
.metric-block { display: grid; gap: 5px; }
.metric-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); font-size: var(--fm-font-label); font-weight: 800; }
.metric-block-head small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 650; }
.metric-bar { display: flex; height: 24px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.metric-segment { display: flex; min-width: 14%; align-items: center; justify-content: center; overflow: hidden; padding: 0 6px; color: #20182a; transition: width 0.25s ease; }
#home-possession, #away-possession { font-weight: 600; }
.metric-segment b { overflow: hidden; font-size: var(--fm-font-label); font-weight: 900; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.metric-home { background: var(--gold); }
.metric-away { background: var(--cyan); }
.card-metric-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: var(--muted); font-size: var(--fm-font-label); }
.card-metric-row span:last-child { color: var(--cyan); }

.squad-planning { margin-top: 4px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 10px 0 8px; }
.panel-heading h1 { margin: 0; color: var(--ink); font-family: inherit; font-size: var(--fm-heading-page-size); font-weight: 950; line-height: 1.08; letter-spacing: -0.035em; }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; }
.compact-heading { padding-bottom: 12px; }
.dashboard-panel { display: grid; gap: 12px; }
.dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, auto)); align-items: stretch; }
.dashboard-team-slide { grid-template-rows: auto; }
.dashboard-team-action-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-items: start; gap: 12px; min-width: 0; align-content: start; }
.dashboard-team-context { position: relative; z-index: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; justify-items: start; gap: 18px; min-width: 0; min-height: 112px; padding: 0; border: 1px solid transparent; border-radius: 12px 18px 12px 18px; background: transparent; text-align: left; }
.dashboard-team-context:hover, .dashboard-team-context:focus-visible { border-color: transparent; background: transparent; outline: none; transform: none; }
.dashboard-team-context:focus-visible { outline: 2px solid color-mix(in srgb, var(--lime) 82%, transparent); outline-offset: 4px; }
.dashboard-team-context:hover .manager-team-context-copy strong { color: var(--lime); }
.dashboard-team-context .manager-team-context-crest { flex: 0 0 auto; width: 112px; height: 112px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: calc(1.05rem - 3px); }
.dashboard-team-context .manager-team-context-crest img { padding: 0; background: transparent; object-fit: contain; }
.dashboard-team-context .manager-team-context-copy { justify-items: center; gap: 3px; width: 100%; text-align: center; }
.dashboard-team-context .manager-team-context-copy strong { display: -webkit-box; width: 100%; max-width: 100%; overflow: hidden; font-size: calc(clamp(0.95rem, 1.6vw, 1.14rem) - 3px); line-height: 1.15; text-align: center; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dashboard-team-context .manager-team-context-status { justify-content: center; font-size: var(--fm-font-label); }
.dashboard-team-action-row .dashboard-primary-action { display: grid; width: 100%; min-width: 0; height: auto; min-height: 50px; place-items: center; padding: 8px 16px; border-radius: 9px 16px 9px 16px; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.dashboard-card { position: relative; display: grid; align-content: start; gap: 9px; min-width: 0; min-height: 0; height: auto; box-sizing: border-box; overflow: hidden; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; background: linear-gradient(145deg, rgba(31, 52, 45, 0.92), rgba(22, 36, 32, 0.92)); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.025); }
.dashboard-match-overview-card { align-content: center; }
.dashboard-card::after { position: absolute; right: -38px; bottom: -70px; width: 145px; height: 145px; border: 13px solid rgba(105, 196, 176, 0.06); border-radius: 50%; content: ""; pointer-events: none; }
.dashboard-card-content { position: relative; z-index: 1; display: grid; align-content: start; gap: 8px; min-width: 0; }
.dashboard-empty { margin: 0; color: var(--muted); font-size: var(--fm-font-label); font-weight: 650; }
.dashboard-empty { color: var(--ink); font-weight: 850; }
.dashboard-match-overview { grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; min-height: 0; }
.dashboard-match-block { position: relative; z-index: 1; display: grid; align-content: start; gap: 7px; min-width: 0; min-height: 0; }
.dashboard-match-block-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.dashboard-match-block-heading-copy { display: grid; gap: 3px; min-width: 0; }
.dashboard-match-block-kicker { display: block; color: var(--fm-color-text-muted); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.16em; line-height: 1; text-transform: uppercase; }
.dashboard-match-block-upcoming .dashboard-match-block-kicker { color: var(--fm-color-accent); }
.dashboard-match-block-heading h3 { min-width: 0; margin: 0; color: var(--ink); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; }
.dashboard-match-block-content { display: grid; align-content: start; gap: 5px; min-width: 0; }
.dashboard-match-block-content .dashboard-fixture-pairing { grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); gap: 7px; }
.dashboard-match-block-result .dashboard-fixture-score { display: grid; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 2px; min-width: 0; }
.dashboard-match-block-content .dashboard-fixture-team strong { font-size: var(--fm-font-data); }
.dashboard-match-block-content .dashboard-fixture-score strong { font-size: calc(1.16rem - 3px); }
.dashboard-match-block-content .dashboard-empty { font-size: var(--fm-font-label); }
.dashboard-match-divider { position: relative; z-index: 1; height: 1px; background: rgba(105, 196, 176, 0.2); }
.dashboard-chart-content { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 5px; min-width: 0; min-height: 0; }
.dashboard-chart-summary { display: flex; align-items: end; justify-content: space-between; gap: 10px; min-width: 0; }
.dashboard-chart-summary > span:first-child { display: grid; min-width: 0; gap: 2px; }
.dashboard-chart-summary small { color: var(--cyan); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.1em; }
.dashboard-chart-summary strong { overflow: hidden; color: var(--ink); font-family: "Arial Black", "Trebuchet MS", system-ui, sans-serif; font-size: calc(clamp(1rem, 2vw, 1.35rem) - 3px); font-weight: 950; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-chart-period { max-width: 48%; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-chart-figure { display: grid; grid-template-rows: minmax(96px, auto) auto; gap: 2px; min-width: 0; min-height: 0; margin: 0; container-type: inline-size; }
.dashboard-chart-svg { display: block; width: 100%; height: 100%; min-height: 96px; overflow: visible; }
.dashboard-chart-guide { stroke: rgba(137, 164, 153, 0.22); stroke-width: 1; stroke-dasharray: 3 5; }
.dashboard-chart-axis-label { fill: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.dashboard-chart-axis-title { color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; line-height: 1.1; }
.dashboard-chart-start-label { fill: var(--cyan); font-size: var(--fm-font-label); font-weight: 850; }
.dashboard-chart-start-stem { stroke: var(--cyan); stroke-width: 1; opacity: 0.8; }
.dashboard-chart-footer { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 10px; min-width: 0; min-height: 15px; }
.dashboard-chart-detail { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-chart-detail.is-active { color: var(--cyan); }
@container (max-width: 320px) { .dashboard-chart-footer { grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: 2px; } }
.dashboard-chart-line { fill: none; stroke: var(--lime); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.dashboard-chart-point { fill: rgba(22, 36, 32, 0.96); stroke: var(--cyan); stroke-width: 1.5; }
.dashboard-chart-point.is-current { fill: var(--lime); stroke: var(--ink); stroke-width: 2; }
.finance-panel, .finance-overview-panel, .stadium-panel { display: grid; gap: 12px; }
.training-panel { display: grid; gap: 12px; }
.training-card { --training-card-inline-inset: 18px; min-width: 0; padding: 0 18px 18px; }
.training-card > .training-panel-heading { justify-content: flex-end; align-items: center; flex-direction: row; margin: 0 calc(0px - var(--training-card-inline-inset)) 12px; padding: 0; }
.training-methods { display: grid; flex: 1; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.training-method { display: flex; min-width: 0; align-items: center; gap: 12px; }
.training-method img { width: 112px; height: 112px; flex: 0 0 auto; object-fit: contain; }
.training-method h3 { margin: 0 0 6px; font-size: calc(0.95rem - 3px); line-height: 1.2; }
.training-method p { margin: 3px 0; font-size: var(--fm-font-label); font-weight: 800; white-space: nowrap; }
.training-method-condition { color: var(--cyan); }
.training-method--base .training-method-condition, .training-method--focus .training-method-condition { color: var(--gold); }
.training-method-experience { color: var(--stat-experience); }
@media (max-width: 900px) { .training-method img { width: 80px; height: 80px; } .training-method { gap: 8px; } .training-methods { gap: 8px; } }
@media (max-width: 640px) { .training-methods { grid-template-columns: minmax(0, 1fr); } .training-method img { width: 76px; height: 76px; } }
.training-panel-heading h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; }
.training-youth-container { margin: 10px 0; }
.training-youth { padding: 10px; border: 1px solid rgba(195, 230, 106, 0.35); border-radius: 12px; background: rgba(7, 22, 18, 0.66); }
.training-youth-toggle { width: 100%; min-height: 44px; text-align: left; }
.training-youth [id="training-youth-options"] > p { color: var(--muted); font-size: calc(0.88rem - 3px); }
.training-youth-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.training-youth-card { min-width: 0; padding: 12px; border: 1px solid rgba(122, 194, 174, 0.3); border-radius: 10px; background: rgba(28, 51, 43, 0.74); }
.training-youth-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.training-youth-card-heading strong { color: var(--ink); font-size: calc(0.95rem - 3px); }
.training-youth-card-heading span, .training-youth-card p { color: var(--muted); font-size: var(--fm-font-label); }
.training-youth-card p { margin: 7px 0; }
.training-youth-card button { width: 100%; min-height: 44px; }
.training-table-wrap { width: calc(100% + var(--training-card-inline-inset) + var(--training-card-inline-inset)); min-width: 0; max-width: none; margin-top: 10px; margin-inline: calc(0px - var(--training-card-inline-inset)); border: 1px solid rgba(122, 194, 174, 0.22); border-radius: 12px 17px 12px 17px; background: rgba(7, 22, 18, 0.58); }

.training-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: inherit; scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.06); -webkit-overflow-scrolling: touch; container-type: inline-size; }
.training-assignment-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: var(--ink); font-size: var(--fm-font-data); }
.training-assignment-table th, .training-assignment-table td { height: 37px; padding: 1px 4px; border-bottom: 1px solid rgba(244, 241, 233, 0.1); text-align: center; vertical-align: middle; white-space: nowrap; }
.training-assignment-table th { position: sticky; z-index: 2; top: 0; height: 54px; padding: 4px 3px; background: #1b2d25; color: var(--muted); font-size: calc(var(--fm-font-data) - 1px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.1; }
.training-table-sort { display: inline-flex; max-width: 100%; min-height: 26px; align-items: center; justify-content: center; gap: 3px; padding: 2px 1px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; white-space: nowrap; cursor: pointer; }
.training-assignment-table th[aria-sort="ascending"] .training-table-sort, .training-assignment-table th[aria-sort="descending"] .training-table-sort { color: var(--lime); }
.training-table-sort:hover { color: var(--lime); }
.training-table-sort:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.training-assignment-table th:nth-child(1), .training-assignment-table td:nth-child(1) { width: 5%; }
.training-assignment-table th:nth-child(2), .training-assignment-table td:nth-child(2) { width: 15%; }
.training-assignment-table th:nth-child(3), .training-assignment-table td:nth-child(3) { width: 6%; }
.training-assignment-table th:nth-child(4), .training-assignment-table td:nth-child(4) { width: 5%; }
.training-assignment-table th:nth-child(5), .training-assignment-table td:nth-child(5) { width: 6%; }
.training-assignment-table th:nth-child(5), .training-assignment-table td:nth-child(5) { width: 5%; }
.training-assignment-table th:nth-child(6), .training-assignment-table td:nth-child(6) { width: 6%; }
.training-assignment-table th:nth-child(7), .training-assignment-table td:nth-child(7) { width: 12%; }
.training-assignment-table th:nth-child(8), .training-assignment-table td:nth-child(8) { width: 10%; }
.training-assignment-table th:nth-child(9), .training-assignment-table td:nth-child(9), .training-assignment-table th:nth-child(10), .training-assignment-table td:nth-child(10), .training-assignment-table th:nth-child(11), .training-assignment-table td:nth-child(11) { width: 10%; }
.training-assignment-table th:first-child, .training-assignment-table td:first-child { position: sticky; z-index: 4; left: 0; background: #1b2d25; }
.training-assignment-table th:nth-child(2), .training-assignment-table td:nth-child(2) { position: sticky; z-index: 4; left: 5%; background: #1b2d25; box-shadow: 5px 0 8px -7px rgba(0, 0, 0, 0.9); }
.training-assignment-table tbody tr { background: rgba(14, 29, 24, 0.86); transition: background 140ms ease; }
.training-assignment-table tbody tr:nth-child(even) { background: rgba(21, 38, 32, 0.9); }
.training-assignment-table tbody tr:hover { background: rgba(195, 230, 106, 0.08); }
.training-assignment-table tbody tr:last-child td { border-bottom: 0; }
.training-assignment-table .training-table-player { overflow: hidden; text-align: left; text-overflow: ellipsis; }
.training-table-player-link { display: block; width: 100%; min-height: 28px; overflow: hidden; padding: 2px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.training-table-player-link strong { font-weight: 850; }
.training-table-player-link:hover { color: var(--lime); }
.training-table-player-link:focus-visible { border-radius: 5px; outline: 2px solid var(--lime); outline-offset: -1px; }
.training-assignment-table .training-table-strength { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 900; }
.training-assignment-table .training-table-strength > .overall-mark.overall-mark-normal { min-height: 0; padding: 0 0 3px; border: 0; border-radius: 0; background: linear-gradient(var(--lime), var(--lime)) right bottom / 18px 2px no-repeat; box-shadow: none; color: var(--stat-overall-bright); }
.training-assignment-table .training-table-strength .overall-mark-current { color: var(--stat-overall-bright); }
.training-assignment-table .training-table-age, .training-assignment-table .training-table-level { color: var(--fm-color-neutral-data); font-variant-numeric: tabular-nums; font-weight: 800; }
.training-assignment-table .training-table-talent .talent-star { margin: 0 auto; }
.training-table-number { color: var(--fm-color-neutral-data); font-variant-numeric: tabular-nums; font-weight: 850; }
.training-assignment-table th[data-training-sort-header="experience"] .training-table-sort, .training-assignment-table .training-table-experience .training-table-number { color: var(--stat-experience); }
.training-assignment-table th[data-training-sort-header="experience"] .training-table-sort:hover, .training-assignment-table th[data-training-sort-header="experience"] .training-table-sort:focus-visible, .training-assignment-table th[data-training-sort-header="experience"][aria-sort="ascending"] .training-table-sort, .training-assignment-table th[data-training-sort-header="experience"][aria-sort="descending"] .training-table-sort { color: var(--lime); }
.training-assignment-table .training-table-condition .roster-meter { width: min(100%, 120px); max-width: 120px; margin-inline: auto; }
.training-assignment-table .training-table-condition .roster-meter-track { height: 18px; }
.training-assignment-table .training-table-condition .roster-meter-label { padding-inline: 3px; font-size: calc(var(--fm-font-data) - 1px); font-weight: 850; letter-spacing: 0; }
.training-usage-tag { display: inline-flex; box-sizing: border-box; width: 72px; height: 25px; min-height: 25px; align-items: center; justify-content: center; padding: 0 3px; border: 1px solid rgba(122, 194, 174, 0.26); border-radius: 6px 9px 6px 9px; background: rgba(122, 194, 174, 0.08); color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.training-usage-tag.is-starting { border-color: rgba(195, 230, 106, 0.34); color: var(--lime); }
.training-table-choice { position: relative; display: grid; width: 32px; height: 32px; place-items: center; margin: 0 auto; cursor: pointer; }
.training-table-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.training-table-choice-mark { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgba(201, 216, 208, 0.4); border-radius: 5px 7px 5px 7px; background: rgba(7, 22, 18, 0.62); color: var(--deep); font-size: var(--fm-font-data); font-weight: 950; transition: background 120ms ease, border-color 120ms ease, transform 120ms ease; }
.training-assignment-cell--recovery .training-table-choice input:checked + .training-table-choice-mark { border-color: var(--cyan); background: var(--cyan); }
.training-assignment-cell--base .training-table-choice input:checked + .training-table-choice-mark { border-color: var(--lime); background: var(--lime); }
.training-assignment-cell--focus .training-table-choice input:checked + .training-table-choice-mark { border-color: var(--gold); background: var(--gold); }
.training-table-choice input:checked + .training-table-choice-mark::after { content: "✓"; }
.training-table-choice input:focus-visible + .training-table-choice-mark { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(195, 230, 106, 0.42); }
.training-table-choice input:disabled + .training-table-choice-mark { opacity: 0.58; }
.training-table-choice:has(input:disabled) { cursor: not-allowed; }
@container (max-width: 800px) {
  .training-assignment-table { min-width: 800px; }
}
@media (max-width: 860px) {
  .training-card { --training-card-inline-inset: 14px; padding: 0 14px 14px; }
}
@media (max-width: 520px) {
  .training-table-wrap { border-radius: 9px 13px 9px 13px; }
  .training-assignment-table { font-size: var(--fm-font-data); }
  .training-assignment-table th { height: 54px; padding: 3px 2px; }
  .training-assignment-table td { height: 37px; padding: 1px 4px; }
  .training-table-choice { width: 32px; height: 32px; }
  .training-youth-cards { grid-template-columns: minmax(0, 1fr); }
}.finance-panel-heading { align-items: center; margin: 0; padding: 4px 2px 2px; }
.finance-panel-heading .eyebrow { margin-bottom: 5px; }
.finance-panel-heading h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; }
.finance-amount-positive { color: var(--lime); }
.finance-amount-negative { color: var(--red); }
.stadium-summary-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stadium-summary-card { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 88px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px 15px 10px 15px; background: linear-gradient(145deg, rgba(31, 52, 45, 0.9), rgba(21, 35, 31, 0.92)); }
.stadium-summary-card.is-capacity { border-color: rgba(195, 230, 106, 0.42); background: linear-gradient(145deg, rgba(52, 77, 48, 0.8), rgba(21, 35, 31, 0.92)); }
.stadium-summary-action { justify-self: start; min-width: 190px; min-height: 44px; font-weight: 900; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.stadium-summary-card.is-capacity > .stadium-summary-action { justify-self: stretch; width: 100%; min-width: 0; box-sizing: border-box; }
.stadium-summary-action:hover { border-color: var(--lime); transform: translateY(-1px); }
.stadium-summary-action:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.25); outline-offset: 2px; }
.stadium-summary-label { display: flex; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.stadium-summary-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stadium-summary-card strong { overflow: hidden; color: var(--ink); font-family: "Arial Black", "Trebuchet MS", system-ui, sans-serif; font-size: calc(clamp(1rem, 2vw, 1.28rem) - 3px); font-weight: 900; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.stadium-summary-card.is-capacity strong { color: var(--lime); }
.stadium-summary-card strong small { color: var(--muted); font-family: inherit; font-size: var(--fm-font-label); font-weight: 800; }
.stadium-summary-capacity-mix { display: flex; height: 8px; overflow: hidden; border: 1px solid rgba(4, 12, 10, 0.52); border-radius: 99px; background: rgba(4, 12, 10, 0.64); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.stadium-summary-capacity-mix-segment { display: block; min-width: 0; height: 100%; transition: width 180ms ease; }
.stadium-summary-capacity-mix-segment.is-seating { background: linear-gradient(90deg, #69c4b0, #80d4c0); }
.stadium-summary-capacity-mix-segment.is-standing { background: linear-gradient(90deg, #d69a35, #f3b648); }
.stadium-summary-capacity-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.stadium-summary-capacity-legend > span { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; }
.stadium-summary-capacity-legend > span:last-child { justify-content: flex-end; text-align: right; }
.stadium-summary-capacity-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 5px rgba(255, 255, 255, 0.14); }
.stadium-summary-capacity-dot.is-seating { background: var(--cyan); }
.stadium-summary-capacity-dot.is-standing { background: var(--gold); }
.stadium-info-column { display: grid; align-content: start; gap: 10px; min-width: 0; }
.stadium-info-heading { display: grid; gap: 3px; padding: 3px 2px 0; }
.stadium-info-heading .eyebrow { margin: 0; }
.stadium-info-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; }
.stadium-plan-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 900px) {
  .stadium-plan-layout { grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr); gap: 16px; }
}
.stadium-map-card, .stadium-details-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px 18px 12px 18px; background: rgba(26, 42, 37, 0.78); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); }
.stadium-map-card { position: relative; display: grid; gap: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.stadium-info-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stadium-info-heading-row > div { min-width: 0; }
.stadium-info-heading-row .stadium-info-button { flex: 0 0 22px; margin-top: 0; }
.stadium-ticket-prices { display: grid; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.stadium-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stadium-price-control { display: grid; gap: 6px; min-width: 0; padding: 8px 9px 9px; border: 1px solid rgba(137, 164, 153, 0.32); border-radius: 8px 12px 8px 12px; background: rgba(4, 16, 12, 0.58); }
.stadium-price-control:focus-within { border-color: rgba(195, 230, 106, 0.76); box-shadow: 0 0 0 2px rgba(195, 230, 106, 0.1); }
.stadium-price-control-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stadium-price-type { display: grid; gap: 1px; min-width: 0; color: var(--muted); cursor: pointer; font-size: var(--fm-font-label); font-weight: 800; }
.stadium-price-type strong { color: var(--ink); font-size: calc(1.12rem - 3px); font-weight: 950; line-height: 1; }
.stadium-price-stepper { display: inline-flex; gap: 4px; }
.stadium-price-stepper-button { display: grid; width: 29px; height: 29px; place-items: center; padding: 0; border: 1px solid rgba(105, 196, 176, 0.44); border-radius: 7px 10px 7px 10px; background: rgba(105, 196, 176, 0.08); color: var(--cyan); cursor: pointer; font-size: calc(1rem - 3px); font-weight: 900; line-height: 1; }
.stadium-price-stepper-button:hover, .stadium-price-stepper-button:focus-visible { border-color: var(--lime); background: rgba(195, 230, 106, 0.12); color: var(--lime); outline: none; }
.stadium-price-stepper-button:disabled { cursor: not-allowed; opacity: 0.3; }
.stadium-price-range { width: 100%; height: 20px; margin: 0; accent-color: var(--lime); cursor: pointer; }
.stadium-price-range:focus-visible { outline: 2px solid rgba(195, 230, 106, 0.62); outline-offset: 2px; }
.stadium-price-scale { display: flex; justify-content: space-between; margin-top: -3px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.stadium-grid { position: relative; width: 100%; min-height: 200px; margin: 0; }
.stadium-view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.stadium-viewer-frame { min-width: 0; border: 1px solid #72877766; border-radius: 12px; background: #10231deb; box-shadow: 0 8px 20px #06110d33; }
.stadium-viewer-frame > .stadium-view-controls { padding: 8px; border-bottom: 1px solid #72877744; }
.stadium-viewer-frame .stadium-shared-scene { border-radius: 0 0 12px 12px; box-shadow: none; }
body .stadium-viewer-frame .stadium-view-controls button { box-sizing: border-box; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; display: inline-grid; place-items: center; }
@media (pointer: coarse), (max-width: 600px) {
  body .stadium-viewer-frame .stadium-view-controls button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
}
.stadium-grid.is-blender-view { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border-radius: 12px; background: none; box-shadow: none; }
.stadium-shared-scene { position: relative; width: 100%; height: 100%; min-height: 200px; isolation: isolate; touch-action: none; overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse at 50% 54%, #34382b 20%, #252d25 67%, #19221d 100%); box-shadow: inset 0 0 0 1px #72877766, 0 8px 20px #06110d33; }
.stadium-shared-canvas { display: block; width: 100%; height: 100%; touch-action: none; border-radius: 12px; }
.stadium-shared-canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.stadium-shared-labels { position: absolute; inset: 0; pointer-events: none; }
.stadium-shared-block { position: absolute; display: grid; place-items: center; visibility: hidden; pointer-events: auto; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.stadium-shared-block span { font-size: 11px; font-weight: 900; text-shadow: -1px -1px 0 #071710, 0 -1px 0 #071710, 1px -1px 0 #071710, -1px 0 0 #071710, 1px 0 0 #071710, -1px 1px 0 #071710, 0 1px 0 #071710, 1px 1px 0 #071710; }
.stadium-shared-block:is(:focus-visible,.is-selected,.is-previewed) { outline: none; background: rgba(195,230,106,.22); }
.stadium-shared-block:is(:focus-visible,.is-selected,.is-previewed) span { background: var(--lime); color: #142b22; text-shadow: none; }
.stadium-shared-controls { position: absolute; top: 8px; right: 8px; display: flex; gap: 3px; z-index: 30; }
.stadium-shared-controls.is-toolbar { position: static; margin-left: auto; }
.stadium-shared-controls[hidden] { display: none; }
.stadium-shared-controls button { min-width: 36px; min-height: 36px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: rgba(12,32,24,.92); color: var(--lime); font-size: 18px; cursor: pointer; }
.stadium-shared-controls button:focus-visible { outline: 2px solid var(--lime); }
.stadium-shared-status { position: absolute; left: 8px; bottom: 5px; margin: 0; color: var(--muted); font-size: 10px; pointer-events: none; }
@media (max-width: 600px) { .stadium-shared-controls button { min-width: 44px; min-height: 44px; } }
@media (max-width: 420px) {
  .stadium-shared-controls.is-toolbar { margin-left: 0; }
}

.stadium-plan-status { min-height: 1.1em; margin: 0; color: var(--lime); font-size: var(--fm-font-label); font-weight: 800; line-height: 1.35; }
.stadium-plan-status:empty { display: none; }
.stadium-details-card { display: grid; width: min(100%, 560px); justify-self: center; align-content: start; gap: 11px; }
.stadium-info-overview { display: grid; align-content: start; gap: 10px; min-width: 0; }
@media (min-width: 900px) {
  .stadium-plan-layout > .stadium-info-column { padding-top: 28px; }
}
.stadium-info-overview[hidden], .stadium-block-slide[hidden] { display: none; }
.stadium-block-slide { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 13px; border: 1px solid rgba(195, 230, 106, 0.4); border-radius: 12px 18px 12px 18px; background: radial-gradient(circle at 92% 0%, rgba(105, 196, 176, 0.12), transparent 35%), linear-gradient(145deg, rgba(36, 58, 49, 0.92), rgba(17, 28, 25, 0.96)); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }
.stadium-block-slide-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stadium-block-slide-heading .eyebrow { margin: 0; color: var(--lime); }
.stadium-block-slide-close { flex: 0 0 40px; width: 40px; height: 40px; }
.stadium-block-navigation { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; align-items: center; padding: 7px; border: 1px solid rgba(105, 196, 176, 0.28); border-radius: 10px 14px 10px 14px; background: rgba(8, 18, 15, 0.45); }
.stadium-block-navigation-button { width: 38px; height: 38px; border-color: rgba(105, 196, 176, 0.46); color: var(--cyan); }
.stadium-block-navigation-current { min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-weight: 950; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.stadium-block-slide > .stadium-details-card { width: 100%; justify-self: stretch; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.stadium-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(137, 164, 153, 0.24); }
.stadium-details-heading .eyebrow { margin: 0 0 3px; }
.stadium-details-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; }
.stadium-detail-values { display: grid; gap: 6px; margin: 0; }
.stadium-detail-values > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 7px 10px 7px 10px; background: rgba(255, 255, 255, 0.035); }
.stadium-detail-values span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.stadium-detail-values strong { color: var(--ink); font-size: var(--fm-font-label); font-weight: 900; text-align: right; }
.stadium-detail-actions { display: grid; gap: 7px; margin-top: 2px; }
.stadium-action-stack { display: grid; gap: 7px; }
.stadium-action-button { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding-inline: 11px; font-size: var(--fm-font-control); }
.stadium-action-button span { color: inherit; font-size: var(--fm-font-control); font-weight: 900; }
.stadium-action-button:disabled { cursor: not-allowed; opacity: 0.42; }
.stadium-capacity-panel { display: grid; gap: 12px; padding: 13px; border: 1px solid rgba(105, 196, 176, 0.3); border-radius: 12px 17px 12px 17px; background: linear-gradient(145deg, rgba(29, 61, 53, 0.64), rgba(8, 18, 15, 0.34)); }
.stadium-capacity-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stadium-capacity-heading > .stadium-capacity-kicker { min-width: 0; }
.stadium-capacity-heading > strong { flex: 0 0 auto; color: var(--ink); font-family: "Arial Black", "Trebuchet MS", system-ui, sans-serif; font-size: calc(1.2rem - 3px); font-weight: 950; text-align: right; }
.stadium-capacity-heading > strong small { color: var(--muted); font-family: inherit; font-size: var(--fm-font-label); font-weight: 800; }
.stadium-capacity-kicker { display: block; color: var(--lime); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.stadium-capacity-bars { display: grid; gap: 10px; }
.stadium-capacity-bar-row { display: grid; gap: 4px; }
.stadium-capacity-bar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stadium-capacity-bar-heading span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.stadium-capacity-bar-heading strong { color: var(--ink); font-size: var(--fm-font-label); font-weight: 950; }
.stadium-capacity-bar { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(4, 12, 10, 0.58); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.stadium-capacity-bar > span { display: block; height: 100%; min-width: 4px; border-radius: inherit; box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
.stadium-capacity-bar > span.is-seating { background: linear-gradient(90deg, #69c4b0, #bfe879); }
.stadium-capacity-bar > span.is-standing { background: linear-gradient(90deg, #d99c32, #f3b648); }
.stadium-capacity-bar-row small { color: var(--muted); font-size: var(--fm-font-label); }
.stadium-capacity-panel > .stadium-action-button { margin-top: 2px; min-height: 42px; border-radius: 9px 13px 9px 13px; font-size: var(--fm-font-control); }
.stadium-matchday-overlay { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(6, 13, 11, 0.78); backdrop-filter: blur(6px); }
.stadium-matchday-overlay[hidden] { display: none; }
.stadium-matchday-dialog { width: min(100%, 760px); max-height: min(680px, calc(100vh - 32px)); overflow: auto; padding: 16px; border: 1px solid rgba(195, 230, 106, 0.45); border-radius: 18px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.99), rgba(17, 28, 25, 0.99)); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48); }
.stadium-matchday-heading { align-items: flex-start; margin-bottom: 14px; }
.stadium-matchday-heading h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; }
.stadium-matchday-content { display: grid; gap: 10px; }
.stadium-matchday-list { display: grid; gap: 7px; }
.stadium-matchday-table-wrap { overflow-x: auto; border: 1px solid rgba(137, 164, 153, 0.2); border-radius: 9px 12px 9px 12px; background: rgba(255, 255, 255, 0.035); }
.stadium-matchday-table { width: 100%; min-width: 650px; border-collapse: separate; border-spacing: 0; table-layout: fixed; color: var(--ink); font-size: var(--fm-font-data); }
.stadium-matchday-table th, .stadium-matchday-table td { height: 37px; padding: 1px 7px; border-bottom: 1px solid rgba(244, 241, 233, 0.1); text-align: center; vertical-align: middle; font-variant-numeric: tabular-nums; }
.stadium-matchday-table thead th { height: 40px; background: #1b2d25; color: var(--muted); font-size: calc(var(--fm-font-data) - 2px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.1; }
.stadium-matchday-table thead th:nth-child(1) { width: 8%; }
.stadium-matchday-table thead th:nth-child(2) { width: 28%; }
.stadium-matchday-table thead th:nth-child(3) { width: 12%; }
.stadium-matchday-table thead th:nth-child(4), .stadium-matchday-table thead th:nth-child(5) { width: 12%; }
.stadium-matchday-table thead th:nth-child(6) { width: 14%; }
.stadium-matchday-table thead th:nth-child(7) { width: 14%; }
.stadium-matchday-table td:nth-child(2) { text-align: left; overflow-wrap: anywhere; }
.stadium-matchday-table tbody tr { background: rgba(14, 29, 24, 0.86); }
.stadium-matchday-table tbody tr:nth-child(even) { background: rgba(21, 38, 32, 0.9); }
.stadium-matchday-table tbody tr:hover { background: rgba(195, 230, 106, 0.08); }
.stadium-matchday-table tbody tr:last-child th, .stadium-matchday-table tbody tr:last-child td { border-bottom: 0; }
.stadium-matchday-row.is-played { background: rgba(105, 196, 176, 0.06); }
.stadium-matchday-row > th { color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.stadium-matchday-row > td { overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); text-overflow: ellipsis; white-space: nowrap; }
.stadium-matchday-row > td:nth-child(2) strong { display: block; overflow: hidden; font-size: var(--fm-font-label); font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.stadium-matchday-row > td:nth-child(4) { color: var(--muted); }
.stadium-matchday-row > td.is-occupancy { color: var(--lime); }
.stadium-matchday-occupancy-value { display: block; color: var(--lime); font-weight: 950; }
.stadium-matchday-occupancy-note { display: block; color: var(--muted); font-size: 9px; line-height: 1.1; }
.stadium-matchday-row > td.is-money { color: var(--gold); font-weight: 900; }
.stadium-matchday-status { color: var(--cyan); font-size: var(--fm-font-label); font-weight: 900; text-transform: uppercase; }
.stadium-matchday-row.is-played .stadium-matchday-status { color: var(--lime); }
.stadium-matchday-empty { margin: 0; padding: 10px; color: var(--muted); font-size: var(--fm-font-label); text-align: left; }
.transfer-market-panel { display: grid; gap: 12px; }
.transfer-market-card { display: grid; gap: 12px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.transfer-market-toolbar { display: grid; grid-template-columns: 1fr; align-items: start; gap: 12px; min-width: 0; }
.transfer-market-filter-tools { display: grid; grid-template-columns: max-content minmax(0, 300px); align-items: start; width: 100%; justify-self: stretch; gap: 8px; min-width: 0; }
.transfer-market-position-filter { display: flex; grid-column: 1; grid-row: 1; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 5px; min-width: 0; }
.transfer-market-position-button { display: inline-flex; flex: 0 0 42px; width: 42px; min-width: 42px; height: 42px; aspect-ratio: 1; align-items: center; justify-content: center; padding: 5px; border: 1px solid var(--line); border-radius: 8px 11px 8px 11px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font: inherit; }
.transfer-market-position-button:hover, .transfer-market-position-button.is-active { border-color: var(--lime); background: rgba(195, 230, 106, 0.12); color: var(--lime); }
.transfer-market-position-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.transfer-market-position-button .role-badge { pointer-events: none; border: 0; background: transparent; box-shadow: none; }
.transfer-market-controls { display: grid; grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; min-width: 0; }
.transfer-market-range-switcher { display: flex; grid-column: 1; grid-row: 1; flex-wrap: wrap; align-items: center; gap: 6px; width: min(100%, 300px); min-width: 0; }
.transfer-market-range-button { display: grid; flex: 0 0 96px; width: 96px; min-width: 96px; min-height: 36px; place-items: center; gap: 2px; padding: 6px 9px; border: 1px solid rgba(137, 164, 153, 0.28); border-radius: 8px 12px 8px 12px; background: rgba(8, 18, 15, 0.3); color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 850; text-align: center; }
.transfer-market-range-button:hover, .transfer-market-range-button.is-active { border-color: var(--lime); background: rgba(195, 230, 106, 0.12); color: var(--lime); }
.transfer-market-range-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.transfer-market-range-button.is-invalid { border-color: var(--red); }
.transfer-market-range-button > span { min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.transfer-market-range-panels { grid-column: 1; grid-row: 2; width: min(100%, 300px); justify-self: start; min-width: 0; }
.transfer-market-range-filter { display: grid; gap: 5px; min-width: 0; margin: 0; padding: 8px; border: 1px solid rgba(137, 164, 153, 0.22); border-radius: 8px 12px 8px 12px; background: rgba(8, 18, 15, 0.3); }
.transfer-market-range-filter[hidden] { display: none; }
.transfer-market-range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.transfer-market-range-fields label { display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.transfer-market-range-fields input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 34px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(10, 20, 17, 0.78); color: var(--ink); font: inherit; font-size: var(--fm-font-control); font-weight: 800; }
.transfer-market-range-input { -moz-appearance: textfield; appearance: textfield; }
.transfer-market-range-input::-webkit-inner-spin-button, .transfer-market-range-input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; }
.transfer-market-range-fields input::placeholder { color: rgba(244, 241, 233, 0.46); }
.transfer-market-range-fields input:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.2); outline-offset: 1px; }
.transfer-market-range-fields input[aria-invalid="true"] { border-color: var(--red); }
.transfer-market-filter-error { min-height: 0.8em; margin: 0; color: var(--red); font-size: var(--fm-font-label); font-weight: 800; line-height: 1.2; }
.transfer-offer-result { padding: 9px 11px; border: 1px solid rgba(195, 230, 106, 0.4); border-radius: 8px 12px 8px 12px; background: rgba(195, 230, 106, 0.08); color: var(--ink); font-size: var(--fm-font-label); font-weight: 800; }
.transfer-market-overview-table { width: 100%; min-width: 0; table-layout: auto; }
.transfer-market-overview-table th:nth-child(1), .transfer-market-overview-table td:nth-child(1) { width: 5%; }
.transfer-market-overview-table th:nth-child(2), .transfer-market-overview-table td:nth-child(2) { width: max-content; overflow: hidden; }
.transfer-market-overview-table th:nth-child(3), .transfer-market-overview-table td:nth-child(3) { width: 7%; }
.transfer-market-overview-table th:nth-child(4), .transfer-market-overview-table td:nth-child(4) { width: 5%; }
.transfer-market-overview-table th:nth-child(5), .transfer-market-overview-table td:nth-child(5) { width: 8%; }
.transfer-market-overview-table th:nth-child(6), .transfer-market-overview-table td:nth-child(6) { width: 10%; }
.transfer-market-overview-table th:nth-child(7), .transfer-market-overview-table td:nth-child(7) { width: 10%; }
.transfer-market-overview-table th:nth-child(8), .transfer-market-overview-table td:nth-child(8) { width: 9%; }
.transfer-market-overview-table th:nth-child(9), .transfer-market-overview-table td:nth-child(9) { width: 8%; }
.transfer-market-overview-table th:nth-child(10), .transfer-market-overview-table td:nth-child(10) { width: 8%; }
.transfer-market-overview-table th:nth-child(11), .transfer-market-overview-table td:nth-child(11) { width: 8%; }
.transfer-market-player { width: 100%; }
.transfer-offer-result { display: grid; gap: 3px; }
.transfer-offer-result span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 650; }
.transfer-offer-result.is-counter { border-color: rgba(243, 182, 72, 0.5); background: rgba(243, 182, 72, 0.08); }
.transfer-offer-result.is-rejected, .transfer-offer-result.is-rejected-final, .transfer-offer-result.is-not-affordable, .transfer-offer-result.is-roster-full { border-color: rgba(239, 141, 123, 0.48); background: rgba(239, 141, 123, 0.08); }
.transfer-offer-result.is-accepted strong { color: var(--lime); }
.transfer-offer-result.is-counter strong { color: var(--gold); }
.transfer-offer-result.is-rejected strong, .transfer-offer-result.is-rejected-final strong, .transfer-offer-result.is-not-affordable strong, .transfer-offer-result.is-roster-full strong { color: var(--red); }
.dashboard-fixture-pairing { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(72px, auto) minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.dashboard-fixture-team { display: flex; align-items: center; min-width: 0; gap: 8px; }
.dashboard-fixture-team-away { flex-direction: row-reverse; justify-content: end; text-align: right; }
.dashboard-fixture-team-crest { flex: 0 0 30px; width: 30px; height: 30px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.dashboard-fixture-team-crest img { background: transparent; }
.dashboard-fixture-team strong { min-width: 0; overflow-wrap: break-word; color: var(--fm-color-team-name); font-size: var(--fm-font-data); font-weight: 900; line-height: 1.15; }
.dashboard-fixture-team .fixture-team-copy { flex: 1 1 auto; }
.dashboard-fixture-team .fixture-team-meta { gap: 6px; font-size: var(--fm-font-label); }
.dashboard-fixture-team-away .fixture-team-meta { justify-content: flex-end; }
.dashboard-fixture-score { display: grid; justify-items: center; text-align: center; }
.dashboard-fixture-score strong { color: var(--ink); font-family: "Arial Black", "Trebuchet MS", system-ui, sans-serif; font-size: calc(1.55rem - 3px); font-weight: 950; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.dashboard-primary-action { position: relative; flex: 1 1 auto; width: 100%; min-height: 50px; padding: 10px 24px; border-radius: 9px 16px 9px 16px; box-shadow: 0 6px 0 rgba(17, 28, 25, 0.48), 0 12px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34); font-size: 15px; font-weight: 950; letter-spacing: 0.01em; transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease; }
.dashboard-primary-action:hover, .dashboard-primary-action:focus-visible { border-color: #e3f79b; box-shadow: 0 8px 0 rgba(17, 28, 25, 0.48), 0 16px 28px rgba(0, 0, 0, 0.2), 0 0 22px rgba(195, 230, 106, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.42); filter: brightness(1.04); outline-offset: 3px; transform: translateY(-2px); }
.dashboard-primary-action:active { box-shadow: 0 2px 0 rgba(17, 28, 25, 0.48), 0 7px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.26); transform: translateY(3px); }
.dashboard-primary-action.onboarding-locked, .dashboard-primary-action.onboarding-locked:hover, .dashboard-primary-action.onboarding-locked:focus-visible { cursor: not-allowed; opacity: 0.42; filter: saturate(0.45); transform: none; box-shadow: 0 4px 0 rgba(17, 28, 25, 0.28); }
.tactics-layout { display: grid; align-items: start; gap: 14px; }
.tactics-field-card { position: relative; z-index: 2; min-width: 0; overflow: visible; }
.tactics-canvas-wrap { min-width: 0; border-radius: 0 0 17px 17px; }
#tactics-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1.54 / 1; border-radius: 0 0 11px 11px; pointer-events: none; }
.tactics-field-player-layer { pointer-events: none; }
.tactics-controls { display: grid; align-content: start; gap: 14px; min-width: 0; }
.roster-list { display: grid; grid-template-columns: 1fr; align-content: start; gap: 5px; margin: 0; padding: 0; list-style: none; }
.formation-toolbar { width: 100%; overflow: visible; }
.formation-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; width: 100%; min-width: 0; padding: 3px; }
.formation-button { display: grid; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: var(--fm-font-control); font-weight: 850; line-height: 1; transition: color 0.16s ease, transform 0.16s ease; }
.formation-button:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.formation-button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.formation-button.selected { border: 0; background: transparent; color: var(--lime); box-shadow: none; }
.formation-button-pitch { display: block; width: 100%; min-width: 0; aspect-ratio: 200 / 128; overflow: hidden; border-radius: 0; background: transparent; }
.formation-pitch-svg { display: block; width: 100%; height: 100%; }
.formation-pitch-grass { fill: #1a6048; stroke: rgba(205, 231, 201, 0.62); stroke-width: 1.5; }
.formation-pitch-stripes { fill: rgba(202, 235, 212, 0.075); }
.formation-pitch-lines, .formation-pitch-center { fill: none; stroke: rgba(233, 243, 225, 0.64); stroke-width: 1.15; }
.formation-pitch-center-mark { fill: rgba(233, 243, 225, 0.72); }
.formation-player-halo { opacity: 0.2; }
.formation-player-halo[data-role="GK"] { fill: var(--role-gk); }
.formation-player-halo[data-role="DEF"] { fill: var(--role-def); }
.formation-player-halo[data-role="MID"] { fill: var(--role-mid); }
.formation-player-halo[data-role="FWD"] { fill: var(--role-fwd); }
.formation-player-dot { fill: var(--role-mid); stroke: rgba(8, 20, 15, 0.9); stroke-width: 2.2; paint-order: stroke; }
.formation-player-dot[data-role="GK"] { fill: var(--role-gk); }
.formation-player-dot[data-role="DEF"] { fill: var(--role-def); }
.formation-player-dot[data-role="MID"] { fill: var(--role-mid); }
.formation-player-dot[data-role="FWD"] { fill: var(--role-fwd); }
.formation-button.selected .formation-player-halo { opacity: 0.38; }
.formation-pitch-label { fill: var(--ink); stroke: rgba(5, 13, 11, 0.94); stroke-width: 5px; paint-order: stroke; font-family: inherit; font-size: 24px; font-weight: 950; text-anchor: middle; dominant-baseline: middle; }
.formation-button.selected .formation-pitch-label { fill: var(--lime); }
@media (max-width: 520px) {
  .formation-options { gap: 3px; }
  .formation-pitch-label { font-size: 32px; }
}
.role-badge { width: 32px; min-width: 32px; height: 18px; flex: 0 0 32px; padding: 0 3px; font-size: var(--fm-role-tag-font-size); line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--role-color); border-radius: 5px 8px 5px 8px; background: rgba(255, 255, 255, 0.045); color: var(--role-color); font-weight: 950; letter-spacing: 0.03em; white-space: nowrap; }
.role-gk { --role-color: var(--role-gk); }
.role-def { --role-color: var(--role-def); }
.role-mid { --role-color: var(--role-mid); }
.role-fwd { --role-color: var(--role-fwd); }
.roster-card { --roster-role-color: var(--line); --roster-card-row-height: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(78px, 108px); grid-template-rows: repeat(2, var(--roster-card-row-height)); align-items: stretch; column-gap: 7px; min-height: calc((2 * var(--roster-card-row-height)) + 6px); padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--roster-role-color) 36%, var(--line)); border-left: 3px solid var(--roster-role-color); border-radius: 10px; background: radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--roster-role-color) 18%, transparent) 0%, transparent 46%), linear-gradient(145deg, rgba(35, 58, 49, 0.98), rgba(20, 35, 30, 0.98)); box-shadow: 0 4px 0 rgba(7, 17, 14, 0.72), 0 10px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 color-mix(in srgb, var(--roster-role-color) 22%, rgba(255, 255, 255, 0.1)); transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease; }
.roster-card-role-gk { --roster-role-color: var(--role-gk); }
.roster-card-role-def { --roster-role-color: var(--role-def); }
.roster-card-role-mid { --roster-role-color: var(--role-mid); }
.roster-card-role-fwd { --roster-role-color: var(--role-fwd); }
.roster-card[draggable="true"] { cursor: grab; touch-action: none; }
.roster-card[draggable="true"]:active { cursor: grabbing; }
.roster-card:hover { border-color: color-mix(in srgb, var(--roster-role-color) 68%, var(--line)); background: radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--roster-role-color) 30%, transparent) 0%, transparent 52%), linear-gradient(145deg, rgba(45, 72, 60, 0.99), rgba(24, 42, 35, 0.98)); box-shadow: 0 6px 0 rgba(7, 17, 14, 0.72), 0 14px 22px rgba(0, 0, 0, 0.26), inset 0 1px 0 color-mix(in srgb, var(--roster-role-color) 34%, rgba(255, 255, 255, 0.14)); opacity: 1; transform: translateY(-2px); }
.roster-card:focus-visible { border-color: color-mix(in srgb, var(--roster-role-color) 68%, var(--line)); outline: 2px solid color-mix(in srgb, var(--roster-role-color) 78%, white); outline-offset: 2px; background: radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--roster-role-color) 30%, transparent) 0%, transparent 52%), linear-gradient(145deg, rgba(45, 72, 60, 0.99), rgba(24, 42, 35, 0.98)); box-shadow: 0 6px 0 rgba(7, 17, 14, 0.72), 0 14px 22px rgba(0, 0, 0, 0.26), inset 0 1px 0 color-mix(in srgb, var(--roster-role-color) 34%, rgba(255, 255, 255, 0.14)); opacity: 1; transform: translateY(-2px); }
.roster-card:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(7, 17, 14, 0.72), 0 5px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.roster-card.selected-player { border-color: rgba(105, 196, 176, 0.78); border-left-color: var(--roster-role-color); background: radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--roster-role-color) 34%, transparent) 0%, transparent 54%), rgba(105, 196, 176, 0.12); }
.roster-card.selected-for-placement { border-color: var(--lime); border-left-color: var(--roster-role-color); background: radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--roster-role-color) 28%, transparent) 0%, transparent 50%), linear-gradient(145deg, rgba(195, 230, 106, 0.17), rgba(34, 57, 43, 0.98)); box-shadow: 0 4px 0 rgba(7, 17, 14, 0.72), 0 10px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 color-mix(in srgb, var(--roster-role-color) 26%, rgba(255, 255, 255, 0.12)); }
.roster-card.is-drag-source { opacity: 0.78; }
.roster-card.is-swap-target { border-color: var(--lime); border-left-color: var(--roster-role-color); background: linear-gradient(145deg, rgba(195, 230, 106, 0.2), rgba(34, 57, 43, 0.98)); box-shadow: 0 6px 0 rgba(7, 17, 14, 0.72), 0 14px 22px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14); opacity: 1; }
.roster-card.is-unavailable { border-color: rgba(239, 141, 123, 0.42); border-left-color: var(--roster-role-color); opacity: 0.68; }
.roster-card.is-unavailable:hover, .roster-card.is-unavailable:focus-visible { border-color: rgba(239, 141, 123, 0.68); background: linear-gradient(145deg, rgba(88, 52, 46, 0.78), rgba(35, 29, 27, 0.94)); box-shadow: 0 6px 0 rgba(7, 17, 14, 0.62), 0 12px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.roster-portrait { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--roster-role-color) 62%, var(--line)); border-radius: 10px 14px 10px 14px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--roster-role-color) 24%, transparent) 0%, transparent 68%), rgba(11, 23, 19, 0.72); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--roster-role-color) 26%, rgba(255, 255, 255, 0.12)); }
.roster-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.roster-column-primary { grid-column: 1; grid-row: 1 / -1; min-width: 0; min-height: 0; }
.roster-primary-identity { display: flex; align-items: stretch; min-width: 0; height: 100%; gap: 6px; }
.roster-primary-copy { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); align-content: stretch; min-width: 0; min-height: 100%; flex: 1 1 auto; gap: 0; }
.roster-line-primary, .roster-strength-line { align-self: stretch; }
.roster-line-primary { grid-row: 1; }
.roster-strength-line { grid-row: 2; align-items: center; }
.roster-column-meta { display: grid; grid-column: 2; grid-row: 1 / -1; grid-template-rows: repeat(2, minmax(0, 1fr)); align-content: stretch; align-items: center; justify-items: center; gap: 0; min-width: 0; padding-inline: 4px; border-left: 1px solid rgba(244, 241, 233, 0.18); }
.roster-age-slot, .roster-talent-slot { display: inline-flex; min-width: 0; align-items: center; }
.roster-age-slot { grid-row: 1; }
.roster-talent-slot { grid-row: 2; }
.roster-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.roster-line-primary { justify-content: flex-start; min-height: 15px; gap: 7px; }
.roster-line-primary > strong { min-width: 0; overflow: hidden; flex: 0 1 auto; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-data); }
.roster-age-tag { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 2px; padding: 0; border: 0; background: transparent; color: var(--muted); line-height: 1; white-space: nowrap; }
.roster-age-tag strong { color: var(--ink); font-size: var(--fm-font-data); font-variant-numeric: tabular-nums; font-weight: 950; }
.roster-age-tag small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.roster-position { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 3px; font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.03em; }
.roster-position { order: -1; }

.roster-strength-line { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; min-width: 0; }
.roster-availability-status { overflow: hidden; color: var(--red); font-size: var(--fm-font-label); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.player-overall { color: var(--stat-overall); font-weight: 950; }
.roster-overall-line { width: 100%; }
.roster-overall-progress { display: block; flex: 1 1 auto; width: 100%; max-width: 170px; height: 16px; align-self: center; }
.roster-overall-progress .team-rating-stat-code { padding-block: 1px; }
.roster-overall-progress .team-rating-bar-copy { padding-inline: 5px; }
.roster-overall-progress .team-rating-bar-copy-fill > b { color: var(--stat-overall-ink); }
.roster-overall-progress .team-rating-bar-copy-rest > b { color: var(--stat-overall-bright); }
.roster-overall-progress .team-rating-bar-copy > b { font-size: var(--fm-font-label); }
.roster-meter-group { display: grid; grid-column: 3; grid-row: 1 / -1; grid-template-rows: repeat(2, minmax(0, 1fr)); align-items: center; gap: 0; min-width: 0; padding-left: 7px; border-left: 1px solid rgba(244, 241, 233, 0.18); }
.talent-star { display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: var(--talent-gold); line-height: 1; vertical-align: middle; }
.talent-star svg { display: block; width: 100%; height: 100%; overflow: visible; }
.talent-star.talent-bronze { color: var(--talent-bronze); }
.talent-star.talent-silver { color: var(--talent-silver); }
.talent-star.talent-gold { color: var(--talent-gold); }
.roster-meter { --roster-meter-fill-ink: var(--stat-overall-ink); --roster-meter-rest-ink: var(--ink); display: block; width: min(100%, 108px); min-width: 0; max-width: 108px; align-self: center; box-sizing: border-box; color: var(--muted); font-size: var(--fm-font-label); line-height: 1; }
.roster-meter-track { position: relative; display: block; height: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 5px 8px 5px 8px; background: var(--deep); }
.roster-meter-track > span { position: absolute; inset: 0 auto 0 0; display: block; min-width: 2px; border-radius: inherit; background: var(--cyan); transition: width 0.2s ease, background 0.2s ease; }
.roster-meter-label { position: absolute; z-index: 1; inset: 0; display: flex; width: 100%; align-items: center; overflow: hidden; padding: 0 7px; color: var(--roster-meter-rest-ink); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.02em; line-height: 1; text-shadow: none; white-space: nowrap; pointer-events: none; background: linear-gradient(90deg, var(--roster-meter-fill-ink) 0 var(--roster-meter-fill), var(--roster-meter-rest-ink) var(--roster-meter-fill) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.roster-meter-experience .roster-meter-track > span { background: var(--stat-experience); }
.roster-meter-fresh .roster-meter-track > span { background: var(--condition-fresh); }
.roster-meter-tired .roster-meter-track > span { background: var(--condition-tired); }
.roster-meter-low .roster-meter-track > span { background: var(--condition-low); }
.roster-meter-empty .roster-meter-track > span { background: var(--condition-empty); }

.player-profile-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 13, 11, 0.78); backdrop-filter: blur(8px); }
.player-profile-overlay[hidden] { display: none; }
.player-profile-dialog { width: min(900px, 100%); max-height: min(900px, calc(100vh - 32px)); overflow-y: auto; padding: 16px; border: 1px solid rgba(195, 230, 106, 0.35); border-radius: 18px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.98), rgba(17, 28, 25, 0.98)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48); }
.player-profile-dialog:not(.leave-game-dialog):not(.contract-release-dialog):not(.contract-action-notice-dialog):not(.contract-offer-confirmation-dialog):not(.transfer-offer-acceptance-dialog):not(.contract-renewal-dialog) { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); height: min(900px, calc(100vh - 32px)); height: min(900px, calc(100dvh - 32px)); max-height: none; overflow: hidden; }
.player-profile-dialog:not(.leave-game-dialog):not(.contract-release-dialog):not(.contract-action-notice-dialog):not(.contract-offer-confirmation-dialog):not(.transfer-offer-acceptance-dialog):not(.contract-renewal-dialog) > .profile-main-panel,
.player-profile-dialog:not(.leave-game-dialog):not(.contract-release-dialog):not(.contract-action-notice-dialog):not(.contract-offer-confirmation-dialog):not(.transfer-offer-acceptance-dialog):not(.contract-renewal-dialog) > .profile-statistics-section,
.player-profile-dialog:not(.leave-game-dialog):not(.contract-release-dialog):not(.contract-action-notice-dialog):not(.contract-offer-confirmation-dialog):not(.transfer-offer-acceptance-dialog):not(.contract-renewal-dialog) > .profile-contract-tab-panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.leave-game-overlay { z-index: 70; }
.leave-game-dialog { width: min(480px, 100%); padding: 22px; }
.leave-game-dialog h2 { max-width: 390px; margin-bottom: 10px; font-size: var(--fm-heading-panel-size); }
.leave-game-copy { margin-bottom: 18px; color: var(--muted); font-size: var(--fm-font-label); }
.leave-game-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.leave-game-actions :is(#leave-game-cancel, #leave-game-confirm) { box-sizing: border-box; width: 121.21px; max-width: 100%; flex: 0 0 auto; }
.contract-release-overlay { z-index: 80; }
.contract-release-dialog { width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow-y: auto; padding: 24px; }
.contract-release-dialog h2 { max-width: none; margin: 0 0 10px; font-size: clamp(22px, 4vw, 28px); line-height: 1.15; overflow-wrap: anywhere; }
.contract-release-copy { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.contract-release-summary { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 22, 18, 0.38); color: var(--ink); font-size: 14px; }
.contract-release-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.contract-release-facts > div { min-width: 0; }
.contract-release-facts > div:last-child { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.contract-release-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.contract-release-facts dd { margin: 0; line-height: 1.4; }
.contract-release-summary strong { color: var(--ink); font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; }
.contract-release-warning { margin: 16px 0 0; padding-left: 10px; border-left: 2px solid var(--red); color: var(--muted); font-size: 13px; line-height: 1.5; }
.contract-release-error { margin: 0 0 12px; color: var(--red); font-size: var(--fm-font-label); font-weight: 800; }
.contract-release-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.contract-release-actions .control-button { min-width: 0; min-height: 44px; white-space: normal; }
@media (max-width: 420px) {
  .contract-release-dialog { padding: 18px; }
  .contract-release-actions { grid-template-columns: minmax(0, 1fr); }
}
.contract-action-notice-overlay { z-index: 85; }
.contract-action-notice-dialog { width: min(460px, 100%); padding: 22px; }
.contract-action-notice-dialog h2 { max-width: 390px; margin-bottom: 10px; font-size: var(--fm-heading-panel-size); }
.contract-action-notice-copy { margin-bottom: 18px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.5; }
.contract-action-notice-actions { display: flex; justify-content: flex-end; gap: 8px; }
.contract-action-notice-dialog.is-ponzelar { width: min(540px, 100%); display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.contract-action-notice-ponzelar { grid-column: 1; grid-row: 1 / span 4; display: block; width: 112px; height: 150px; object-fit: contain; object-position: center bottom; align-self: end; }
.contract-action-notice-ponzelar[hidden] { display: none; }
.contract-action-notice-dialog.is-ponzelar > :not(.contract-action-notice-ponzelar) { grid-column: 2; }
.contract-action-notice-dialog.is-ponzelar .contract-action-notice-actions { flex-wrap: wrap; }
@media (max-width: 440px) {
  .contract-action-notice-dialog.is-ponzelar { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 10px; padding: 16px; }
  .contract-action-notice-ponzelar { width: 72px; height: 112px; }
  .contract-action-notice-dialog.is-ponzelar .contract-action-notice-actions { grid-column: 1 / -1; }
}
.contract-offer-confirmation-overlay { z-index: 86; }
.contract-offer-confirmation-dialog { width: min(500px, 100%); padding: 22px; }
.contract-offer-confirmation-dialog h2 { max-width: 410px; margin-bottom: 9px; font-size: var(--fm-heading-panel-size); }
.contract-offer-confirmation-copy { margin: 0 0 14px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.contract-offer-confirmation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; padding: 12px; border: 1px solid rgba(195, 230, 106, 0.35); border-radius: 9px 12px 9px 12px; background: rgba(195, 230, 106, 0.08); }
.contract-offer-confirmation-summary > span { display: grid; gap: 3px; min-width: 0; }
.contract-offer-confirmation-summary small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.contract-offer-confirmation-summary strong { color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; }
.contract-offer-confirmation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.contract-renewal-overlay { z-index: 85; }
.contract-renewal-dialog { width: min(620px, 100%); padding: 22px; }
.contract-renewal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.contract-renewal-heading h2 { max-width: 450px; margin: 0 0 8px; font-size: var(--fm-heading-panel-size); }
.contract-renewal-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.contract-renewal-value-card { min-width: 0; padding: 10px; border: 1px solid rgba(244, 241, 233, 0.14); border-radius: 10px 13px 10px 13px; background: rgba(17, 28, 25, 0.48); }
.contract-renewal-value-card.is-offer { border-color: rgba(195, 230, 106, 0.36); background: rgba(195, 230, 106, 0.07); }
.contract-renewal-value-card h3, .contract-renewal-controls h3 { margin: 0 0 8px; color: var(--ink); font-size: var(--fm-font-label); }
.contract-renewal-value-card.is-offer h3 { color: var(--lime); }
.contract-renewal-value-card .profile-contract-values { display: grid; gap: 5px; }
.contract-renewal-value-card .profile-contract-value-row { min-height: 25px; padding: 4px 6px; border: 0; border-radius: 5px 7px 5px 7px; background: rgba(255, 255, 255, 0.035); }
.contract-renewal-value-card .profile-contract-value { font-size: var(--fm-font-label); }
.contract-renewal-controls { padding-top: 14px; border-top: 1px solid rgba(244, 241, 233, 0.12); }
.contract-renewal-controls .profile-contract-offer-term { margin: 0; }
.contract-renewal-controls .profile-contract-offer-review-actions { margin-top: 12px; }
.contract-renewal-controls .profile-contract-offer-note { margin-bottom: 0; }
.transfer-offer-acceptance-overlay { z-index: 87; }
.transfer-offer-acceptance-dialog { width: min(560px, 100%); padding: 22px; }
.transfer-offer-acceptance-dialog h2 { max-width: 420px; margin-bottom: 9px; font-size: var(--fm-heading-panel-size); }
.transfer-offer-acceptance-copy { margin: 0 0 14px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.transfer-offer-acceptance-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; margin-bottom: 18px; padding: 12px; border: 1px solid rgba(195, 230, 106, 0.35); border-radius: 9px 12px 9px 12px; background: rgba(195, 230, 106, 0.08); }
.transfer-offer-acceptance-summary strong { color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; }
.transfer-offer-acceptance-summary span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.transfer-offer-acceptance-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.control-button.control-danger { border-color: rgba(239, 141, 123, 0.5); background: rgba(239, 141, 123, 0.14); color: var(--red); }
.control-button.control-danger:hover, .control-button.control-danger:focus-visible { border-color: var(--red); background: rgba(239, 141, 123, 0.22); color: var(--ink); outline: none; }
.player-profile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-profile-toolbar-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.player-profile-toolbar-heading .eyebrow { margin: 0; line-height: 1; }
.player-profile-listing-status { display: inline-flex; min-height: 22px; box-sizing: border-box; align-items: center; max-width: min(100%, 220px); padding: 3px 6px; overflow: hidden; border: 1px solid rgba(243, 182, 72, 0.58); border-radius: 6px 9px 6px 9px; background: rgba(243, 182, 72, 0.11); color: var(--gold); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.03em; line-height: 1.1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.player-profile-listing-status::before { content: "✓"; margin-right: 4px; color: var(--gold); font-size: var(--fm-font-label); line-height: 1; }
.player-profile-listing-status[hidden] { display: none; }
.player-profile-toolbar-actions { display: flex; align-items: center; gap: 6px; }
.fm-icon-control, .icon-button, .profile-navigation-button, .profile-close { display: inline-grid; width: var(--fm-icon-control-size); height: var(--fm-icon-control-size); place-items: center; padding: 0; border: 1px solid var(--fm-color-border); border-radius: var(--fm-icon-control-radius); background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)); color: var(--fm-color-text); cursor: pointer; font: inherit; font-size: calc(1.08rem - 3px); font-weight: 900; line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 rgba(6, 13, 11, 0.24); transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease; }
.fm-icon-control:hover, .icon-button:hover, .profile-navigation-button:hover, .profile-close:hover { border-color: var(--fm-color-accent); background: linear-gradient(145deg, rgba(195, 230, 106, 0.18), rgba(105, 196, 176, 0.08)); color: var(--fm-color-accent); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 0 rgba(6, 13, 11, 0.24); }
.fm-icon-control:focus-visible, .icon-button:focus-visible, .profile-navigation-button:focus-visible, .profile-close:focus-visible { outline: 2px solid var(--fm-color-accent); outline-offset: 2px; }
.fm-icon-control:not(:disabled):active, .icon-button:not(:disabled):active, .profile-navigation-button:not(:disabled):active, .profile-close:not(:disabled):active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(6, 13, 11, 0.22), 0 1px 0 rgba(6, 13, 11, 0.24); }
.profile-navigation-button:disabled { border-color: rgba(137, 164, 153, 0.2); background: rgba(17, 28, 25, 0.34); color: var(--muted); cursor: not-allowed; opacity: 0.42; box-shadow: none; transform: none; }
.player-profile-heading { display: grid; grid-template-columns: 120px auto minmax(260px, 330px) minmax(130px, 1fr); align-items: stretch; gap: 12px; margin-top: 2px; }
.player-profile-avatar-column { display: flex; min-width: 0; align-items: stretch; }
.profile-avatar { position: relative; display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; border: 1px solid rgba(105, 196, 176, 0.28); border-radius: 18px; background: rgba(11, 23, 19, 0.84); color: var(--ink); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); }
.profile-avatar span { font-size: calc(1.2rem - 3px); font-weight: 900; letter-spacing: -0.08em; }
.profile-avatar img { display: block; width: 90%; height: 90%; object-fit: cover; }
.player-profile-heading .profile-avatar { width: 120px; min-height: 120px; height: auto; align-self: stretch; border-radius: 16px 20px 16px 20px; }
.player-profile-heading .profile-avatar > img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }
.player-profile-heading .profile-avatar span { font-size: calc(1.1rem - 3px); }
.player-profile-identity { grid-column: 4; display: flex; min-width: 0; align-items: center; }
.player-profile-identity .player-profile-team-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; }
.player-profile-heading-divider { grid-column: 2; align-self: stretch; width: 1px; min-height: 120px; background: linear-gradient(180deg, transparent, rgba(244, 241, 233, 0.26) 18%, rgba(244, 241, 233, 0.26) 82%, transparent); }
.player-profile-header-summary { grid-column: 3; display: grid; grid-template-columns: minmax(0, 1fr) max-content; grid-template-rows: auto; column-gap: 8px; align-self: stretch; justify-self: stretch; width: 100%; min-width: 0; min-height: 120px; gap: 6px 8px; padding: 7px 9px; border: 1px solid rgba(195, 230, 106, 0.24); border-radius: 10px 14px 10px 14px; background: linear-gradient(135deg, rgba(195, 230, 106, 0.08), rgba(17, 28, 25, 0.42)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025); }
.player-profile-header-metrics { display: grid; grid-column: 1; grid-row: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 5px; }
.player-profile-header-stat { display: grid; min-width: 0; align-content: center; justify-items: center; gap: 2px; padding: 1px 5px; border-left: 1px solid rgba(244, 241, 233, 0.12); text-align: center; }
.player-profile-header-stat:first-child { border-left: 0; }
.player-profile-header-stat-heading { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.07em; line-height: 1; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.player-profile-header-stat-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 13px; color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; line-height: 1; }
.player-profile-talent-value { display: inline-flex; align-items: center; gap: 4px; }
.player-profile-talent-value .talent-star { flex: 0 0 18px; width: 18px; height: 18px; }
.player-profile-header-stat-value { display: block; min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.player-profile-header-age-stat .player-profile-header-stat-value.profile-age-warning { color: var(--gold); }
.player-profile-header-age-stat .player-profile-header-stat-value.profile-age-critical { color: var(--red); }
.player-profile-team-link { display: inline-flex; align-items: center; min-width: 0; width: fit-content; max-width: 100%; min-height: 44px; gap: 6px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--fm-color-team-name); cursor: pointer; font: inherit; text-align: left; }
.player-profile-team-row { min-width: 0; }
.player-profile-team-crest { flex-basis: 52px; width: 52px; height: 52px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.player-profile-team-crest img { background: transparent; }
.player-profile-team-crest[hidden] { display: none; }
.player-profile-team-link:hover { background: transparent; color: var(--lime); }
.player-profile-team-link:focus-visible { background: transparent; outline: 2px solid var(--lime); outline-offset: 3px; }
.player-profile-team-copy { display: block; min-width: 0; flex: 1 1 auto; }
.player-profile-team-copy strong { display: block; padding: 1px 1px 2px; color: inherit; font-size: var(--fm-font-data); line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .player-profile-identity .player-profile-team-row { grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; }
  .player-profile-team-crest { flex-basis: 44px; width: 44px; height: 44px; }
}
.player-profile-team-link.is-unassigned, .player-profile-team-link.is-unassigned:disabled { background: transparent; color: var(--muted); cursor: default; }
.player-profile-team-link.is-unassigned .player-profile-team-copy strong { color: var(--muted); }

.profile-current-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr); grid-template-rows: auto auto; gap: 8px; align-items: stretch; }
.profile-current-column { display: contents; }
.profile-current-column-main .profile-stats-section { grid-column: 1; grid-row: 1 / span 2; }
.profile-current-column-side .profile-condition-section { grid-column: 2; grid-row: 1; }
.profile-current-column-side .profile-development-section { grid-column: 2; grid-row: 2; }
.profile-summary-grid { display: grid; gap: 8px; }
.profile-status-meters { display: grid; grid-template-columns: 1fr; gap: 6px; }
.profile-status-meter { --item-accent: var(--cyan); display: grid; align-content: start; gap: 4px; min-width: 0; min-height: 58px; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--item-accent) 28%, var(--line)); border-radius: 10px 12px 10px 12px; background: rgba(255, 255, 255, 0.045); }
.profile-status-meter-strength { --item-accent: var(--stat-overall); background: color-mix(in srgb, var(--stat-overall) 7%, rgba(17, 28, 25, 0.74)); }
.profile-status-meter-strength.is-reduced { --item-accent: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.profile-status-meter-strength.is-condition-malus { --item-accent: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.profile-status-meter-strength.is-position-malus { --item-accent: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.profile-status-meter-condition { --item-accent: var(--condition-fresh); }
.profile-status-meter-condition.is-tired { --item-accent: var(--condition-tired); }
.profile-status-meter-condition.is-exhausted { --item-accent: var(--condition-low); }
.profile-status-meter-condition.is-empty { --item-accent: var(--condition-empty); }
.profile-status-meter-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.profile-status-meter-value { display: flex; align-items: baseline; justify-content: flex-end; min-width: 0; gap: 4px; color: var(--ink); font-size: var(--fm-font-label); font-weight: 850; }
.profile-status-meter-value > strong { color: var(--item-accent); font-size: calc(0.98rem - 3px); font-weight: 950; }
.profile-status-meter-value > span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.profile-status-meter-value .overall-mark { font-size: var(--fm-font-label); }
.profile-status-meter-value .overall-mark.overall-mark-normal, .profile-status-meter-value .overall-mark.overall-mark-reduced { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-status-meter-value .overall-mark-normal .overall-mark-current { color: var(--stat-overall-bright); }
.profile-status-meter-compact { min-height: 0; padding: 4px; border: 0; background: transparent; }
.profile-status-meter-compact .profile-status-meter-heading { display: none; }
.profile-status-meter-notes { display: grid; align-content: start; gap: 3px; height: 23px; min-height: 23px; overflow: hidden; }
.profile-status-meter-notes:empty { visibility: hidden; }
.profile-status-meter-compact .profile-status-meter-notes { margin-top: 3px; }
.profile-rating-bar { --profile-bar-color: var(--cyan); --role-color: var(--profile-bar-color); height: 32px; border-color: color-mix(in srgb, var(--profile-bar-color) 52%, var(--line)); }
.profile-rating-bar > span:first-child { background: var(--profile-bar-color); box-shadow: 0 0 10px color-mix(in srgb, var(--profile-bar-color) 28%, transparent); }
.profile-rating-bar .profile-rating-value { display: flex; min-width: 0; align-items: center; justify-content: flex-end; margin-left: auto; color: inherit; font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1; white-space: nowrap; }
.profile-rating-bar .profile-rating-value > b { color: inherit; font-size: inherit; font-weight: 950; }
.profile-rating-bar-overall { --profile-bar-color: var(--stat-overall); height: 40px; border-color: color-mix(in srgb, var(--stat-overall) 54%, var(--line)); background: rgba(8, 18, 15, 0.92); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-overall) 10%, transparent); }
.profile-rating-bar-overall > span:first-child { background: linear-gradient(135deg, var(--stat-overall-bright), var(--stat-overall)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(23, 34, 27, 0.12); }
.profile-rating-bar-overall .profile-rating-value { font-size: var(--fm-font-label); }
.profile-rating-bar-overall .overall-mark { min-height: 0; padding: 1px 4px; border: 1px solid rgba(220, 210, 180, 0.55); border-radius: 4px 6px 4px 6px; background: #101b17; box-shadow: none; color: #f1ead9; font-size: var(--fm-font-label); }
.profile-rating-bar-condition { --profile-bar-color: var(--condition-fresh); }
.profile-rating-bar-condition.is-tired { --profile-bar-color: var(--condition-tired); }
.profile-rating-bar-condition.is-exhausted { --profile-bar-color: var(--condition-low); }
.profile-rating-bar-condition.is-empty { --profile-bar-color: var(--condition-empty); }
.profile-rating-bar-experience { --profile-bar-color: var(--stat-experience); }
.profile-rating-bar-speed { --profile-bar-color: var(--stat-speed); }
.profile-rating-bar-duels { --profile-bar-color: var(--stat-duels); }
.profile-rating-bar-shot { --profile-bar-color: var(--stat-shot); }
.profile-rating-bar-passing { --profile-bar-color: var(--stat-passing); }
.profile-rating-bar-ballControl { --profile-bar-color: var(--stat-ball-control); }
.profile-rating-bar-locked { --profile-bar-color: #7f8a84; border-color: rgba(137, 164, 153, 0.34); background: rgba(8, 18, 15, 0.68); box-shadow: none; }
.profile-rating-bar-locked > span:first-child { background: #7f8a84; box-shadow: none; opacity: 0.28; }
.profile-rating-bar-locked .team-rating-stat-code, .profile-rating-bar-locked .team-rating-bar-label { color: var(--muted); }
.profile-rating-bar-locked .team-rating-stat-code { border-color: rgba(137, 164, 153, 0.34); background: rgba(137, 164, 153, 0.11); }
.profile-rating-bar-locked .team-rating-bar-copy-fill .team-rating-bar-label { background: rgba(137, 164, 153, 0.2); color: #d1d9d4; }
.profile-rating-bar .team-rating-bar-copy-fill .team-rating-bar-label { background: color-mix(in srgb, var(--profile-bar-color) 74%, var(--stat-overall-ink)); }
.profile-rating-bar .team-rating-bar-copy-fill .profile-rating-value { color: var(--stat-overall-ink); }
.profile-rating-bar .team-rating-bar-copy-rest .profile-rating-value { color: var(--ink); }
.profile-rating-bar-locked .team-rating-bar-copy-fill .profile-rating-value, .profile-rating-bar-locked .team-rating-bar-copy-rest .profile-rating-value { color: var(--muted) !important; }
.profile-rating-bar .team-rating-stat-code { min-width: 34px; }
.profile-rating-bar-overall .team-rating-bar-copy-fill .team-rating-bar-label, .profile-rating-bar-overall .team-rating-bar-copy-rest .team-rating-bar-label { border-color: rgba(220, 210, 180, 0.55); background: #101b17; color: #aeb4aa; }
.profile-rating-bar-overall .team-rating-bar-copy-rest .overall-mark-position-malus .overall-mark-current, .profile-rating-bar-overall .team-rating-bar-copy-rest .overall-mark-position-malus .overall-mark-direction { color: var(--gold); }
.profile-rating-bar-overall .team-rating-bar-copy-rest .overall-mark-condition-malus .overall-mark-current, .profile-rating-bar-overall .team-rating-bar-copy-rest .overall-mark-condition-malus .overall-mark-direction { color: var(--red); }
.profile-rating-bar-overall .team-rating-bar-copy-rest .overall-mark-base { color: var(--muted); }
.profile-rating-bar-overall .team-rating-bar-label { max-width: 42%; }
.profile-rating-bar-stat .team-rating-bar-label { max-width: 54%; }
.profile-rating-bar-effective-strength { height: 32px; }
.profile-rating-bar-effective-strength .team-rating-stat-code { border-color: rgba(220, 210, 180, 0.55); background: #101b17; color: var(--stat-overall-bright); }
.profile-rating-bar-effective-strength .team-rating-bar-label, .profile-rating-bar-effective-strength .team-rating-bar-copy-fill .team-rating-bar-label, .profile-rating-bar-effective-strength .team-rating-bar-copy-rest .team-rating-bar-label { border-color: rgba(23, 34, 27, 0.2); background: var(--stat-overall-bright); color: var(--stat-overall-ink); }
.profile-rating-bar-effective-strength .overall-mark, .profile-rating-bar-effective-strength .overall-mark.overall-mark-normal, .profile-rating-bar-effective-strength .overall-mark.overall-mark-reduced { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-rating-bar-effective-strength .team-rating-bar-copy-fill .overall-mark-normal .overall-mark-current { color: var(--stat-overall-ink); }
.profile-summary-item-note { display: block; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary-item-note.profile-strength-effect, .profile-condition-effect { color: var(--red); }
.profile-age-effect { color: var(--gold); }
.profile-status-meter-locked { --item-accent: var(--muted); border-color: rgba(137, 164, 153, 0.3); background: rgba(137, 164, 153, 0.045); }
.profile-development-strip { min-width: 0; padding: 0 4px; }
.profile-development-title-row { align-items: center; }
.profile-development-heading-meta { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; margin-left: auto; }
.profile-development-line { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.profile-development-main { display: grid; gap: 4px; min-width: 0; }
.profile-development-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 4px 6px; border: 1px solid color-mix(in srgb, var(--talent-gold) 48%, var(--line)); border-radius: 7px 9px 7px 9px; background: color-mix(in srgb, var(--talent-gold) 10%, transparent); color: var(--talent-gold); font-size: var(--fm-font-label); font-weight: 900; white-space: nowrap; }
.profile-development-meta.talent-bronze { border-color: color-mix(in srgb, var(--talent-bronze) 62%, var(--line)); background: color-mix(in srgb, var(--talent-bronze) 13%, transparent); color: #d08a5b; }
.profile-development-meta.talent-silver { border-color: color-mix(in srgb, var(--talent-silver) 58%, var(--line)); background: color-mix(in srgb, var(--talent-silver) 12%, transparent); color: var(--talent-silver); }
.profile-development-meta.talent-gold { border-color: color-mix(in srgb, var(--talent-gold) 48%, var(--line)); background: color-mix(in srgb, var(--talent-gold) 10%, transparent); color: var(--talent-gold); }
.profile-development-meta strong { color: inherit; font-size: inherit; }
.profile-development-meta .talent-star { flex: 0 0 auto; width: 18px; height: 18px; }
.profile-stats-section { margin-top: 0; }
.profile-section { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17, 28, 25, 0.34); }
.profile-public-current .profile-condition-section, .profile-public-current .profile-stats-section, .profile-public-current .profile-development-section { border-color: rgba(137, 164, 153, 0.3); background: rgba(137, 164, 153, 0.045); }
.profile-public-current .profile-condition-section h3, .profile-public-current .profile-stats-section h3, .profile-public-current .profile-development-section h3 { color: var(--muted); }
.profile-section .card-title-row { margin-bottom: 8px; }
.profile-section h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; }
.profile-stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.profile-stat { min-width: 0; }
.profile-main-tabs { display: flex; gap: 4px; margin-top: 12px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.profile-main-tab { flex: 1 1 0; min-width: 0; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: var(--fm-font-label); font-weight: 900; }
.profile-main-tab:hover, .profile-main-tab:focus-visible { color: var(--ink); }
.profile-main-tab.active { border-color: rgba(195, 230, 106, 0.55); background: rgba(195, 230, 106, 0.12); color: var(--lime); }
.profile-main-panel[hidden], .profile-statistics-section[hidden], .profile-contract-tab-panel[hidden] { display: none; }
.profile-main-panel { display: grid; align-content: start; gap: 8px; margin-top: 8px; }
.profile-statistics-section { margin-top: 4px; padding: 6px 8px; }
.profile-career-history { width: min(100%, 760px); margin-top: 12px; }
.profile-career-history-title { margin: 0 0 6px; color: var(--ink); font-size: var(--fm-font-label); font-weight: 900; }
.profile-career-history-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: rgba(17, 28, 25, 0.28); }
.profile-career-history-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.profile-career-history-table th, .profile-career-history-table td { padding: 6px 8px; border-bottom: 1px solid rgba(244, 241, 233, 0.08); font-size: var(--fm-font-data); line-height: 1.2; text-align: left; overflow-wrap: anywhere; }
.profile-career-history-table th { color: var(--muted); font-size: calc(var(--fm-font-data) - 2px); font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-career-history-table th:first-child, .profile-career-history-table td:first-child { width: 25%; }
.profile-career-history-table th:last-child, .profile-career-history-table td:last-child { width: 25%; text-align: right; }
.profile-career-history-table tbody tr:last-child td { border-bottom: 0; }
.profile-career-history-empty { margin: 0; padding: 8px 10px; border-left: 2px solid var(--lime); border-radius: 0 7px 7px 0; background: rgba(255, 255, 255, 0.035); color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.player-statistics-method-note { margin: 0.75rem 0 0; color: var(--muted); font-size: var(--fm-font-small); line-height: 1.5; }
.profile-statistics-title-row { margin-bottom: 0.75rem; }
.profile-statistics-comparison-wrap { width: min(100%, 520px); margin-inline: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px 12px 10px 12px; background: rgba(17, 28, 25, 0.28); }
.profile-statistics-comparison { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.profile-statistics-comparison th, .profile-statistics-comparison td { padding: 4px 6px; border-bottom: 1px solid rgba(244, 241, 233, 0.08); font-size: var(--fm-font-label); line-height: 1.1; vertical-align: middle; }
.profile-statistics-comparison thead th { color: var(--muted); font-size: calc(var(--fm-font-label) - 2px); font-weight: 850; letter-spacing: 0.06em; text-align: right; text-transform: uppercase; }
.profile-statistics-comparison thead th:first-child { width: 50%; text-align: left; }
.profile-statistics-comparison thead th:not(:first-child), .profile-statistics-comparison tbody .profile-statistics-comparison-value { text-align: left; }
.profile-statistics-comparison tbody tr:last-child th, .profile-statistics-comparison tbody tr:last-child td { border-bottom: 0; }
.profile-statistics-comparison tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.profile-statistics-comparison tbody th { color: var(--ink); font-weight: 800; text-align: left; }
.profile-statistics-comparison-label { display: flex; align-items: center; min-width: 0; gap: 4px; }
.profile-statistics-comparison-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-statistics-comparison-icon { display: grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; color: var(--stat-accent); font-size: var(--fm-font-label); line-height: 1; }
.profile-statistics-comparison-value { --stat-accent: var(--cyan); color: var(--stat-accent); text-align: right; }
.profile-statistics-comparison-value strong {
  display: inline-flex; min-width: 30px; min-height: 24px; align-items: center; justify-content: center;
  padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--stat-accent) 38%, transparent); border-radius: 7px;
  background: color-mix(in srgb, var(--stat-accent) 13%, transparent); color: var(--stat-accent);
  font-size: max(13px, var(--fm-font-label)); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1;
}
.profile-public-locked .profile-statistics-comparison-value, .profile-public-locked .profile-statistics-comparison-value strong, .profile-public-locked-value { color: var(--muted) !important; }
.profile-public-locked .profile-statistics-comparison-value strong { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.profile-statistics-comparison-label-cell.stat-matches, .profile-statistics-comparison-value.stat-matches { --stat-accent: var(--cyan); }
.profile-statistics-comparison-label-cell.stat-goals, .profile-statistics-comparison-value.stat-goals { --stat-accent: var(--stat-shot); }
.profile-statistics-comparison-label-cell.stat-assists, .profile-statistics-comparison-value.stat-assists { --stat-accent: var(--stat-passing); }
.profile-statistics-comparison-label-cell.stat-duels, .profile-statistics-comparison-value.stat-duels { --stat-accent: var(--stat-duels); }
.profile-statistics-comparison-value.stat-duels strong { font-size: max(13px, var(--fm-font-label)); }
.profile-statistics-comparison-label-cell.stat-yellow-cards, .profile-statistics-comparison-value.stat-yellow-cards { --stat-accent: var(--gold); }
.profile-statistics-comparison-label-cell.stat-red-cards, .profile-statistics-comparison-value.stat-red-cards, .profile-statistics-comparison-label-cell.stat-injury-matches, .profile-statistics-comparison-value.stat-injury-matches { --stat-accent: var(--red); }
.player-statistics-leaderboard { width: min(100%, 860px); margin-inline: auto; }
#league-player-stat-table .player-statistics-leaderboard { width: 100%; margin: 0; }
.player-statistics-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.player-statistics-entry { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(104px, auto); align-items: center; gap: 9px; min-width: 0; min-height: 55px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.035); transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.player-statistics-entry:hover { border-color: rgba(195, 230, 106, 0.45); background: rgba(195, 230, 106, 0.055); transform: translateY(-1px); }
.player-statistics-entry.is-own-player { border-color: rgba(195, 230, 106, 0.55); background: rgba(195, 230, 106, 0.08); }
.player-statistics-entry.is-top-1 { border-color: rgba(243, 182, 72, 0.68); background: linear-gradient(90deg, rgba(243, 182, 72, 0.14), rgba(255, 255, 255, 0.035)); }
.player-statistics-entry.is-top-2 { border-color: rgba(201, 211, 208, 0.56); background: linear-gradient(90deg, rgba(201, 211, 208, 0.1), rgba(255, 255, 255, 0.035)); }
.player-statistics-entry.is-top-3 { border-color: rgba(184, 125, 88, 0.6); background: linear-gradient(90deg, rgba(184, 125, 88, 0.11), rgba(255, 255, 255, 0.035)); }
.player-statistics-rank { display: grid; width: 29px; height: 29px; place-items: center; color: var(--muted); font-size: calc(var(--fm-font-data) + 4px); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1; }
.player-statistics-entry.is-top-1 .player-statistics-rank { color: var(--gold); }
.player-statistics-entry.is-top-2 .player-statistics-rank { color: #c9d3d0; }
.player-statistics-entry.is-top-3 .player-statistics-rank { color: #d29a73; }
.player-statistics-player { display: block; min-width: 0; padding: 2px 3px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.player-statistics-player:hover { background: rgba(195, 230, 106, 0.1); color: var(--lime); }
.player-statistics-player:focus-visible { background: rgba(195, 230, 106, 0.1); color: var(--lime); outline: 2px solid var(--cyan); outline-offset: 2px; }
.player-statistics-player-heading { display: flex; align-items: center; min-width: 0; gap: 8px; }
.player-statistics-portrait { display: block; flex: 0 0 36px; width: 36px; height: 36px; object-fit: cover; object-position: center top; border-radius: 8px; }
.player-statistics-portrait-fallback { display: grid; place-items: center; background: var(--deep); color: var(--muted); }
.standings-crest img { background: transparent; }
.player-statistics-player-copy { display: grid; min-width: 0; gap: 2px; }
.player-statistics-name-line { display: flex; align-items: center; min-width: 0; gap: 6px; }
.player-statistics-role-badge { flex: 0 0 auto; }
.player-statistics-player strong { overflow: hidden; font-size: var(--fm-font-data); text-decoration: underline; text-decoration-color: rgba(105, 196, 176, 0.52); text-decoration-thickness: 1px; text-underline-offset: 2px; text-overflow: ellipsis; white-space: nowrap; }
.player-statistics-player:hover strong, .player-statistics-player:focus-visible strong { text-decoration-color: currentColor; }
.player-statistics-player small { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.player-statistics-value { --stat-accent: var(--cyan); color: var(--stat-accent); }
.player-statistics-value { display: grid; grid-template-columns: auto auto auto; align-items: baseline; justify-content: end; gap: 2px 5px; min-width: 0; text-align: right; }
.player-statistics-value-icon { color: currentColor; font-size: var(--fm-font-label); line-height: 1; }
.player-statistics-value strong { min-width: 25px; font-size: calc(1.06rem - 3px); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1; }
.player-statistics-value small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.player-statistics-progress { grid-column: 1 / -1; display: block; width: 86px; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.player-statistics-progress span { display: block; width: var(--stat-progress); height: 100%; border-radius: inherit; background: currentColor; opacity: 0.78; }
.player-statistics-value.stat-matches { --stat-accent: var(--cyan); }
.player-statistics-value.stat-goals { --stat-accent: var(--stat-shot); }
.player-statistics-value.stat-assists { --stat-accent: var(--stat-passing); }
.player-statistics-value.stat-duels { --stat-accent: var(--stat-duels); grid-template-columns: 1fr; justify-items: end; gap: 3px; }
.player-statistics-value.stat-duels strong { white-space: nowrap; }
.player-statistics-value.stat-duels small { grid-column: 1; max-width: none; color: var(--muted); font-size: var(--fm-font-label); line-height: 1; text-align: right; white-space: nowrap; }
.player-statistics-value.stat-yellow-cards { --stat-accent: var(--gold); }
.player-statistics-value.stat-red-cards, .player-statistics-value.stat-injury-matches { --stat-accent: var(--red); }
.player-statistics-empty { margin: 8px 0 2px; }
.tactic-block h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.tactic-heading-copy { display: grid; min-width: 0; gap: 2px; }
.tactic-range-selection { color: var(--tactic-accent); font-size: var(--fm-font-control); font-weight: 950; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.muted-copy { color: var(--muted); font-size: var(--fm-font-label); }
.tactic-block { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17, 28, 25, 0.34); }
.tactic-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tactic-info-button { position: static; width: 22px; height: 22px; min-height: 22px; flex: 0 0 22px; padding: 0; cursor: help; }
.tactic-range-control { --tactic-accent: var(--gold); --tactic-progress: 50%; --tactic-range-side-padding: 10px; --tactic-thumb-size: 22px; display: grid; gap: 7px; min-width: 0; }
.intensity-control[data-intensity="0"] { --tactic-accent: var(--cyan); }
.intensity-control[data-intensity="1"] { --tactic-accent: var(--lime); }
.intensity-control[data-intensity="2"] { --tactic-accent: var(--gold); }
.intensity-control[data-intensity="3"] { --tactic-accent: var(--tactic-press); }
.intensity-control[data-intensity="4"] { --tactic-accent: var(--tactic-extreme); }
.orientation-control[data-orientation="lock"] { --tactic-accent: var(--cyan); }
.orientation-control[data-orientation="counter"] { --tactic-accent: var(--lime); }
.orientation-control[data-orientation="balanced"] { --tactic-accent: var(--gold); }
.orientation-control[data-orientation="press"] { --tactic-accent: var(--tactic-press); }
.orientation-control[data-orientation="all-in"] { --tactic-accent: var(--tactic-extreme); }
.tactic-range-shell { position: relative; min-width: 0; padding: 0 var(--tactic-range-side-padding) 8px; border: 0; border-radius: 0; background: transparent; }
.tactic-range { position: relative; z-index: 2; display: block; width: 100%; height: 38px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: grab; touch-action: pan-y; }
.tactic-range:active { cursor: grabbing; }
.tactic-range:disabled { cursor: not-allowed; opacity: 0.6; }
.tactic-range:focus-visible { outline: 2px solid rgba(195, 230, 106, 0.28); outline-offset: 3px; }
.tactic-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--tactic-accent) 0 var(--tactic-progress), rgba(137, 164, 153, 0.28) var(--tactic-progress) 100%); box-shadow: 0 0 12px color-mix(in srgb, var(--tactic-accent) 18%, transparent); }
.tactic-range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--tactic-accent) 0 var(--tactic-progress), rgba(137, 164, 153, 0.28) var(--tactic-progress) 100%); box-shadow: 0 0 12px color-mix(in srgb, var(--tactic-accent) 18%, transparent); }
.tactic-range::-webkit-slider-thumb { width: var(--tactic-thumb-size); height: var(--tactic-thumb-size); margin-top: -8px; appearance: none; -webkit-appearance: none; border: 2px solid var(--tactic-accent); border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tactic-accent) 16%, transparent), 0 0 12px color-mix(in srgb, var(--tactic-accent) 45%, transparent); }
.tactic-range::-moz-range-thumb { width: var(--tactic-thumb-size); height: var(--tactic-thumb-size); border: 2px solid var(--tactic-accent); border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tactic-accent) 16%, transparent), 0 0 12px color-mix(in srgb, var(--tactic-accent) 45%, transparent); }
.tactic-range-stops { position: absolute; z-index: 3; top: 14px; right: calc(var(--tactic-range-side-padding) + (var(--tactic-thumb-size) / 2)); left: calc(var(--tactic-range-side-padding) + (var(--tactic-thumb-size) / 2)); pointer-events: none; }
.tactic-range-stop { position: absolute; top: 0; display: block; width: 10px; height: 10px; min-width: 0; color: var(--muted); transform: translateX(-50%); }
.tactic-range-stop-dot { display: block; width: 10px; height: 10px; border: 2px solid color-mix(in srgb, var(--tactic-accent) 65%, var(--muted)); border-radius: 50%; background: var(--deep); }
.tactic-range-stop.is-current { color: var(--ink); }
.tactic-range-stop.is-current .tactic-range-stop-dot { border-color: var(--tactic-accent); background: var(--tactic-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tactic-accent) 18%, transparent), 0 0 10px color-mix(in srgb, var(--tactic-accent) 48%, transparent); }
.tactic-range-stop:first-child { transform: translateX(0); }
.tactic-range-stop:last-child { transform: translateX(-100%); }
.tactic-range-labels { display: none; }
.tactic-status { min-width: 0; }
.tactic-status-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 0 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--tactic-accent) 38%, transparent); border-radius: 0; background: transparent; box-shadow: none; }
.tactic-status-icon { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--tactic-accent) 16%, transparent); font-size: var(--fm-font-label); }
.tactic-status-copy { display: flex; align-items: baseline; flex-wrap: wrap; min-width: 0; gap: 2px 8px; }
.tactic-status-copy strong { color: var(--tactic-accent); font-size: var(--fm-font-label); white-space: normal; }

.league-browser-controls { display: grid; width: 100%; max-width: 760px; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr); gap: 9px; margin-bottom: 12px; }
.league-level-buttons { grid-column: 1 / -1; }
.league-browser-controls label { display: grid; gap: 4px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.league-group-control { width: min(100%, 470px); justify-self: start; }
.league-matchday-control { width: min(100%, 280px); justify-self: end; }
.league-browser-controls select { width: 100%; min-height: 36px; padding: 7px 28px 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10, 20, 17, 0.72); color: var(--ink); font: inherit; font-size: var(--fm-font-control); font-weight: 750; }
.league-browser-controls select:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.2); }
.league-level-buttons { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; min-width: 0; }
.league-level-button { display: inline-flex; flex: 1 1 132px; align-items: center; justify-content: center; min-width: 0; min-height: 36px; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)); color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 850; white-space: nowrap; }
.league-level-button:hover { border-color: rgba(195, 230, 106, 0.62); color: var(--ink); transform: translateY(-1px); }
.league-level-button:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.24); outline-offset: 2px; }
.league-level-button[aria-pressed="true"] { border-color: var(--lime); background: linear-gradient(135deg, rgba(195, 230, 106, 0.19), rgba(195, 230, 106, 0.07)); color: var(--lime); box-shadow: inset 0 -2px 0 rgba(195, 230, 106, 0.24); }
#league-level-buttons { gap: 7px; }
#league-level-buttons .league-level-button { flex: 1 1 0; min-height: 44px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
#league-level-buttons .league-level-button[aria-pressed="true"] { border-color: var(--lime); background: rgba(195, 230, 106, 0.08); color: var(--lime); box-shadow: none; }
.league-level-icon { display: inline-grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(105, 196, 176, 0.34); border-radius: 50% 45% 50% 45%; background: linear-gradient(145deg, rgba(105, 196, 176, 0.17), rgba(10, 20, 17, 0.56)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 8px rgba(0, 0, 0, 0.18); font-size: var(--fm-font-label); line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease; }
.league-level-button:hover .league-level-icon, .league-level-button:focus-visible .league-level-icon { border-color: rgba(195, 230, 106, 0.68); background: linear-gradient(145deg, rgba(195, 230, 106, 0.2), rgba(105, 196, 176, 0.1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 4px 10px rgba(0, 0, 0, 0.22); transform: translateY(-1px) rotate(-3deg); }
.league-level-button[aria-pressed="true"] .league-level-icon { border-color: rgba(195, 230, 106, 0.78); background: linear-gradient(145deg, rgba(195, 230, 106, 0.24), rgba(105, 196, 176, 0.13)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 3px rgba(195, 230, 106, 0.08), 0 4px 10px rgba(0, 0, 0, 0.2); }
.league-matchday-control { min-width: 0; }
.league-matchday-control[hidden], .league-player-statistics-controls[hidden], .league-browser-controls[hidden] { display: none; }
.league-player-statistics-card { display: grid; gap: 8px; }
.league-player-statistics-controls { display: grid; width: 100%; max-width: none; gap: 9px; margin: 0 0 12px; padding: 0; border: 0; background: transparent; }
.league-stat-filter-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 4px; min-width: 0; }
.league-stat-filter-label { color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.league-stat-filter-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.league-stat-level-list .league-level-button { flex: 1 1 0; width: auto; min-width: 0; }
.league-level-button.league-banner-button, #league-level-buttons .league-banner-button { position: relative; min-height: 76px; padding: 8px; overflow: hidden; isolation: isolate; background: #10231c; color: var(--ink); border-radius: 10px; }
.league-banner-button img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.league-banner-button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 20%, rgba(7, 22, 16, .22) 45%, rgba(7, 22, 16, .65)); }
.league-banner-label { display: block; width: 66%; margin-left: auto; font-size: 13px; font-weight: 950; white-space: normal; line-height: 1.25; text-align: center; text-shadow: 0 2px 3px #06140d; }
.league-level-button.league-banner-button[aria-pressed="true"], #league-level-buttons .league-banner-button[aria-pressed="true"] { border: 2px solid var(--lime); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(195,230,106,.3); background: #10231c; }
@media (max-width: 600px) {
  .league-level-buttons, .league-stat-level-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .league-stat-level-list .league-banner-button { width: auto; min-width: 0; }
  .league-level-button.league-banner-button, #league-level-buttons .league-banner-button { min-height: 70px; }
}
.league-stat-filter-select { width: 100%; max-width: none; min-height: 36px; padding: 7px 28px 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10, 20, 17, 0.72); color: var(--ink); font: inherit; font-size: var(--fm-font-control); font-weight: 750; }
.league-stat-filter-select:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.2); }
.league-stat-filter-button { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px 10px 8px 10px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 850; line-height: 1.1; }
.league-stat-filter-button:hover { border-color: rgba(195, 230, 106, 0.58); color: var(--ink); }
.league-stat-filter-button:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.22); outline-offset: 2px; }
.league-stat-filter-button[aria-pressed="true"] { border-color: var(--lime); background: rgba(195, 230, 106, 0.14); color: var(--lime); }
.league-stat-period-button { display: grid; flex: 0 0 144px; width: 144px; min-width: 144px; justify-items: center; gap: 2px; text-align: center; }
.league-stat-metric-button { flex: 1 1 calc((100% - 30px) / 7); width: auto; min-width: 0; padding-inline: 5px; font-size: 9px; font-weight: 500; white-space: nowrap; }
.league-stat-period-button strong { color: inherit; font-size: var(--fm-font-control); }
.league-stat-period-button small { color: var(--muted); font-size: var(--fm-font-control); font-weight: 700; }
.league-stat-period-button[aria-pressed="true"] small { color: rgba(195, 230, 106, 0.78); }
.league-subview[hidden] { display: none; }
.cup-card { display: grid; gap: 10px; }
.cup-round-picker { display: block; width: min(100%, 280px); margin: 0 0 12px; }
.cup-round-select { box-sizing: border-box; width: 100%; min-height: 36px; padding: 7px 28px 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10, 20, 17, .72); color: var(--ink); cursor: pointer; font-family: var(--fm-font-body-family); font-size: var(--fm-font-control); font-weight: 750; }
@media (pointer: coarse) { .cup-round-select { min-height: 44px; } }
.cup-round-select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-color: var(--lime); }
.cup-round-select option:disabled { color: var(--muted); }
.cup-fixture-list { width: min(100%, 920px); }
.cup-fixture-card { min-width: 0; }
.cup-fixture-card .fixture-card { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(112px, max-content) minmax(0, 1fr) 34px; }
.cup-fixture-card .fixture-score { min-width: 112px; white-space: nowrap; }
.cup-fixture-card.is-bye .fixture-card { grid-template-columns: minmax(0, 1fr) minmax(132px, max-content); }
.cup-fixture-card.is-bye .cup-bye-copy { grid-column: 2; grid-row: 2; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.cup-fixture-card .fixture-team-link.is-cup-winner .fixture-team-name { color: var(--lime); }
.cup-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: var(--fm-font-label); text-align: center; }
.league-table-section { min-width: 0; }
.league-table-section table { width: 100%; min-width: 0; table-layout: fixed; }
.league-table-section th, .league-table-section td { padding: 8px 9px; font-size: calc(var(--fm-font-data) + 1px); vertical-align: middle; }
#league-subview-table .league-table-section tbody tr:nth-child(odd):not(.highlight-row) { background: rgba(255, 255, 255, 0.045); }
#league-subview-table .league-table-section tbody tr:nth-child(even):not(.highlight-row) { background: rgba(5, 16, 13, 0.16); }
#league-subview-table .league-table-section tbody td { padding-block: 4px; }
.league-table-section th:first-child, .league-table-section td:first-child { width: 28px; }
.league-table-section th:nth-child(2) { width: 28%; }
.league-table-section th:nth-child(3) { width: 42px; }
.league-table-section th:nth-child(4) { width: 64px; }
.league-table-section th:nth-child(5) { width: 52px; }
.league-table-section th:nth-child(6) { width: 46px; }
.league-table-section th:nth-child(7) { width: 98px; }
.league-table-section th:nth-child(8) { width: 40px; }
.standings-team-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.standings-team-link:hover { color: var(--ink); }
.standings-team-link:focus-visible { border-radius: 7px; outline: 2px solid var(--lime); outline-offset: 3px; }
.standings-team-link:hover .standings-crest, .standings-team-link:focus-visible .standings-crest { transform: translateY(-1px); }
.standings-crest { flex-basis: 27px; width: 27px; height: 27px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: transform 140ms ease; }
.standings-team-copy { display: grid; min-width: 0; gap: 1px; }
.standings-team-copy b { overflow: hidden; color: var(--fm-color-team-name); font-size: calc(var(--fm-font-label) + 2px); text-overflow: ellipsis; white-space: nowrap; }
#league-subview-table .standings-team-copy b { font-size: calc(var(--fm-font-label) + 3px); }
.team-form { display: inline-flex; align-items: center; gap: 2px; min-height: 21px; }
.team-form-empty { color: var(--muted); font-size: var(--fm-font-label); }
.form-dot { display: inline-grid; width: 19px; height: 19px; place-items: center; border: 1px solid transparent; border-radius: 50%; font-size: var(--fm-font-label); font-weight: 950; line-height: 1; }
.form-w { border-color: rgba(195, 230, 106, 0.52); background: rgba(195, 230, 106, 0.2); color: var(--lime); }
.form-d { border-color: rgba(170, 181, 176, 0.48); background: rgba(170, 181, 176, 0.2); color: var(--ink); }
.form-l { border-color: rgba(239, 141, 123, 0.52); background: rgba(239, 141, 123, 0.2); color: var(--red); }
.matchday-card { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(26, 42, 37, 0.78); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12); }
#league-subview-report > .matchday-card[aria-label="Paarungen"] { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#league-subview-player-stats > .league-player-statistics-card { padding: 14px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#league-subview-cup > .matchday-card.cup-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#league-subview-report > .matchday-card[aria-label="Paarungen"] > .fixture-list { width: min(100%, 760px); margin-inline: 0; }
.matchday-card .card-title-row { align-items: center; }
.fixture-list { display: grid; width: min(100%, 850px); gap: 6px; margin: 0 auto; padding: 0; list-style: none; }
.fixture-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 34px; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
#league-subview-cup > .matchday-card.cup-card > .cup-fixture-list { width: calc(75% - var(--fm-space-2) * .25); max-width: none; margin-inline: 0; gap: 6px; }
@media (max-width: 760px) {
  #league-subview-cup > .matchday-card.cup-card > .cup-fixture-list { width: 100%; }
}
.fixture-card.own-fixture, .cup-fixture-card.own-fixture > .fixture-card { border-color: rgba(195, 230, 106, 0.5); background: rgba(195, 230, 106, 0.08); }
.fixture-team-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.fixture-team-link.away { justify-content: flex-end; text-align: right; }
.fixture-team-link:hover { color: var(--ink); }
.fixture-team-link:focus-visible { border-radius: 7px; outline: 2px solid var(--lime); outline-offset: 3px; }
.fixture-team-link:hover .fixture-crest { transform: translateY(-1px); }
.fixture-crest { flex-basis: 30px; width: 30px; height: 30px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: transform 140ms ease; }
.fixture-crest img { background: transparent; }
.fixture-team-copy { display: grid; min-width: 0; gap: 2px; }
.fixture-team-name-row { display: flex; align-items: baseline; justify-content: flex-start; min-width: 0; gap: 7px; }
.fixture-team-link.away .fixture-team-name-row { justify-content: flex-end; }
.fixture-team-name { min-width: 0; color: var(--fm-color-team-name); font-size: var(--fm-font-label); font-weight: 800; line-height: 1.1; overflow-wrap: break-word; white-space: normal; }
.fixture-team-name-row .fixture-team-name { flex: 1 1 auto; }
.fixture-team-meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; min-width: 0; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; line-height: 1.05; white-space: nowrap; }
.fixture-team-link.away .fixture-team-meta { justify-content: flex-end; }
.fixture-team-rank { color: var(--ink); }
.fixture-team-overall { color: var(--stat-overall); }
.fixture-team-name-row .fixture-team-overall { flex: 0 0 auto; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; white-space: nowrap; }
.fixture-team-competition { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fixture-score { min-width: 48px; color: var(--lime); font-family: Georgia, serif; font-size: calc(1.05rem - 3px); font-weight: 800; text-align: center; }
.fixture-score.pending { color: var(--muted); font-family: inherit; font-size: var(--fm-font-label); }
.fixture-actions { display: flex; align-items: center; justify-content: flex-end; min-width: 30px; }
.fixture-actions:empty { display: none; }
.fixture-report-button { display: inline-grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; line-height: 1; }
.fixture-report-button svg { width: 21px; height: 21px; }
.fixture-report-button:hover { color: var(--lime); }
.fixture-report-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.fixture-report-button.is-pending { color: var(--muted); cursor: not-allowed; opacity: .4; }
.fixture-report-button.is-pending:hover { color: var(--muted); }
@media (pointer: coarse) { .fixture-report-button { width: 44px; height: 44px; flex-basis: 44px; } }
.fixture-report-drawer { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(7, 15, 12, 0.76); backdrop-filter: blur(4px); }
.fixture-report-drawer[hidden] { display: none; }
.fixture-report-card { width: min(100%, 520px); max-height: min(680px, calc(100vh - 32px)); overflow: auto; padding: 16px; border: 1px solid rgba(195, 230, 106, 0.45); border-radius: 18px; background: #17251f; box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42); }
.team-dashboard-overlay { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(7, 15, 12, 0.76); backdrop-filter: blur(4px); }
.team-dashboard-overlay[hidden] { display: none; }
.cup-results-open { overflow: hidden; }
.ponzelar-event-item--cup-income .ponzelar-event-item-summary, .cup-income-copy { display: block; overflow: visible; -webkit-line-clamp: unset; white-space: pre-line; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ponzelar-event-item--cup-income .ponzelar-event-item-title { overflow: visible; white-space: normal; text-overflow: clip; }
.cup-results-overlay > .cup-results-pane { width: min(100%, 960px); height: auto; max-height: calc(100dvh - 32px); }
.cup-results-pane > .card-title-row { min-width: 0; margin: 0; }
.cup-results-pane h2 { margin: 0; overflow-wrap: anywhere; }
.cup-results-pane > .cup-fixture-list { width: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; }
@media (max-width: 540px) {
  .cup-fixture-card:not(.is-bye) .fixture-card { grid-template-columns: minmax(0, 1fr) minmax(96px, max-content) minmax(30px, 44px); grid-template-areas: "home score actions" "away score actions"; gap: 4px; padding-inline: 7px; }
  .cup-fixture-card:not(.is-bye) .fixture-team-link:not(.away) { grid-area: home; }
  .cup-fixture-card:not(.is-bye) .fixture-score { grid-area: score; min-width: 96px; }
  .cup-fixture-card:not(.is-bye) .fixture-team-link.away { grid-area: away; }
  .cup-fixture-card:not(.is-bye) .fixture-actions { grid-area: actions; min-width: 30px; }
  .cup-fixture-card.is-bye .fixture-card { grid-template-columns: minmax(0, 1fr) minmax(120px, max-content); gap: 5px; padding-inline: 7px; }
}
@media (max-width: 760px) {
  .cup-results-overlay { padding: 8px; }
  .cup-results-overlay > .cup-results-pane { height: auto; max-height: calc(100dvh - 16px); padding: 12px; }
}
.team-dashboard-dialog { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; width: min(100%, 780px); height: min(820px, 80vh); height: min(820px, 80dvh); max-height: calc(100dvh - 32px); min-height: 0; overflow: hidden; padding: 18px; border: 1px solid rgba(195, 230, 106, 0.45); border-radius: 20px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.99), rgba(17, 28, 25, 0.99)); box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42); }
.team-dashboard-content { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; gap: 8px; }
.team-dashboard-identity { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px 16px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(115deg, #213b30, #142820); }
.team-dashboard-identity > :not(.team-dashboard-watermark) { position: relative; z-index: 1; }
.team-dashboard-watermark { position: absolute; right: -20px; top: -24px; opacity: var(--team-watermark-opacity); pointer-events: none; }
.team-dashboard-watermark .team-crest { display: block; width: 200px; height: 200px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.team-dashboard-watermark .team-crest img { width: 100%; height: 100%; object-fit: contain; }
.team-crest.team-dashboard-crest { flex-basis: 76px; width: 76px; height: 84px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.team-dashboard-identity-copy { min-width: 0; }
.team-dashboard-identity-copy h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.team-dashboard-identity-strength { width: min(100%, 340px); margin-top: 8px; }
.team-dashboard-section { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.035); }
#team-dashboard-panel-overview > .team-dashboard-section { padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
.team-dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-dashboard-section-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; }
.team-dashboard-matchday { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.team-dashboard-summary-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-dashboard-summary-metrics > span { display: grid; gap: 4px; min-width: 0; padding: 0 10px 0 0; }
.team-dashboard-summary-metrics > span + span { border-left: 1px solid var(--line); padding-left: 12px; }
.team-dashboard-summary-metrics small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.team-dashboard-summary-metrics strong { color: var(--lime); font-size: var(--fm-font-data); overflow-wrap: anywhere; }
.team-dashboard-history { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.team-dashboard-history li { padding: 8px 10px; border-left: 2px solid var(--gold); border-radius: 8px; background: rgba(243, 182, 72, 0.08); color: var(--muted); font-size: var(--fm-font-label); }
.team-dashboard-transfer-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.team-dashboard-transfer-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; min-width: 0; padding: 8px 10px; border-left: 2px solid var(--cyan); border-radius: 8px 11px 8px 11px; background: rgba(105, 196, 176, 0.08); }
.team-dashboard-transfer-copy { display: grid; gap: 3px; min-width: 0; }
.team-dashboard-transfer-copy > strong { overflow: hidden; color: var(--ink); font-size: var(--fm-font-data); text-overflow: ellipsis; white-space: nowrap; }
.team-dashboard-transfer-copy small { color: var(--muted); font-size: var(--fm-font-label); line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.team-dashboard-transfer-direction { color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; text-transform: uppercase; }
.team-dashboard-transfer-fee { color: var(--lime); font-size: var(--fm-font-label); font-weight: 900; text-align: right; white-space: nowrap; }
.team-dashboard-empty { margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.team-dashboard-tabs { display: flex; gap: 6px; margin: 0; padding: 0; border-bottom: 1px solid var(--line); background: transparent; }
.team-dashboard-tab { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 7px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.03em; white-space: nowrap; }
.team-dashboard-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.team-dashboard-tab.active { border-bottom-color: var(--lime); background: rgba(195, 230, 106, 0.06); color: var(--lime); }
.team-dashboard-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.team-dashboard-panel[hidden] { display: none; }
.team-dashboard-panel { grid-area: 3 / 1; display: grid; align-content: start; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; gap: 10px; margin-top: 0; padding-top: 10px; }
.team-dashboard-panel-note { margin: 3px 0 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.team-dashboard-player-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.team-dashboard-squad-section { padding: 0; border: 0; border-radius: 0; background: transparent; }
.team-dashboard-player-link { grid-template-columns: minmax(0, 1fr) 44px minmax(78px, 108px); grid-template-rows: repeat(2, var(--roster-card-row-height)); align-items: stretch; row-gap: 0; width: 100%; min-width: 0; min-height: 54px; padding: 2px 8px; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.team-dashboard-player-link .roster-column-primary { grid-column: 1; grid-row: 1 / -1; }
.team-dashboard-player-link .roster-meter-group { grid-column: 3; grid-row: 1 / -1; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0; padding-top: 0; padding-left: 7px; border-top: 0; border-left: 1px solid rgba(244, 241, 233, 0.18); }
.team-dashboard-player-link .roster-meter { width: 100%; max-width: none; }
.team-dashboard-player-meta { display: grid; grid-column: 2; grid-row: 1 / -1; grid-template-rows: repeat(2, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 0; min-width: 34px; height: 100%; padding-left: 9px; border-left: 1px solid rgba(244, 241, 233, 0.18); }
.team-dashboard-player-meta .roster-age-tag { grid-row: 1; }
.team-dashboard-player-meta .talent-star { grid-row: 2; width: 16px; height: 16px; flex-basis: 16px; }
.team-dashboard-player-meta.is-single .roster-age-tag, .team-dashboard-player-meta.is-single .talent-star { grid-row: 1 / -1; }
.team-dashboard-player-link .roster-primary-identity { align-items: center; gap: 8px; }
.team-dashboard-player-link .roster-primary-copy { display: grid; align-content: center; gap: 3px; min-height: 0; }
.team-dashboard-player-link .roster-line-primary { min-height: 0; gap: 7px; }
.team-dashboard-player-link .roster-portrait { flex: 0 0 38px; }
.team-dashboard-player-link .team-dashboard-player-portrait-fallback { color: var(--ink); font-size: var(--fm-font-label); font-weight: 950; line-height: 1; }
.team-dashboard-player-name { overflow-wrap: anywhere; }
.team-dashboard-league-section h4 { margin: 0; color: var(--ink); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; }
.team-dashboard-league-stack { display: grid; gap: 10px; }
.team-dashboard-league-section { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
#team-dashboard-panel-league .team-dashboard-league-section { padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
.team-dashboard-table-card { overflow-x: auto; border: 0; border-radius: 0; background: transparent; }
.team-dashboard-table-card table { min-width: 600px; table-layout: fixed; }
.team-dashboard-table-card th, .team-dashboard-table-card td { padding: 6px 7px; font-size: var(--fm-font-data); }
.team-dashboard-table-card tbody tr:nth-child(odd):not(.highlight-row) { background: rgba(255, 255, 255, 0.045); }
.team-dashboard-table-card tbody tr:nth-child(even):not(.highlight-row) { background: rgba(5, 16, 13, 0.16); }
.team-dashboard-table-card th { font-size: calc(var(--fm-font-data) - 2px); }
.team-dashboard-table-card th:first-child, .team-dashboard-table-card td:first-child { width: 26px; }
.team-dashboard-table-card th:nth-child(2) { width: 28%; }
.team-dashboard-table-card th:nth-child(3) { width: 38px; }
.team-dashboard-table-card th:nth-child(4) { width: 58px; }
.team-dashboard-table-card th:nth-child(5) { width: 50px; }
.team-dashboard-table-card th:nth-child(6) { width: 42px; }
.team-dashboard-table-card th:nth-child(7) { width: 82px; }
.team-dashboard-table-card th:nth-child(8) { width: 38px; }
.team-dashboard-table-card .standings-crest { width: 23px; height: 23px; flex-basis: 23px; }
.team-dashboard-table-card .standings-team-copy b { font-size: var(--fm-font-data); }
.team-dashboard-table-card .form-dot { width: 17px; height: 17px; font-size: var(--fm-font-data); }
.team-dashboard-fixtures { gap: 5px; }
.team-dashboard-fixtures .fixture-card { padding: 6px 8px; }
.fixture-report-content { display: grid; gap: 14px; }
.fixture-report-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.04); }
.fixture-report-score span { display: grid; gap: 4px; min-width: 0; }
.fixture-report-score span.away { text-align: right; }
.fixture-report-score small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.08em; }
.fixture-report-score b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-label); }
.fixture-report-score strong { color: var(--lime); font-family: Georgia, serif; font-size: calc(1.6rem - 3px); white-space: nowrap; }
.fixture-report-section { display: grid; gap: 7px; }
.fixture-report-section .eyebrow { margin: 0; }
.fixture-report-highlights { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.fixture-report-highlight { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-left: 2px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.045); font-size: var(--fm-font-label); }
.fixture-report-highlight.highlight-goal { border-left-color: var(--lime); }
.fixture-report-highlight.highlight-yellow { border-left-color: var(--gold); }
.fixture-report-highlight.highlight-red { border-left-color: var(--red); }
.fixture-report-highlight small { color: var(--muted); font-size: var(--fm-font-label); text-align: right; }
.fixture-report-empty, .fixture-report-note { margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.fixture-report-note { padding-top: 2px; }
.fixture-report-actions { display: flex; justify-content: flex-end; }
body.fixture-report-open, body.team-dashboard-open { overflow: hidden; }
.empty-state { margin: 0; padding: 18px 10px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); font-size: var(--fm-font-label); text-align: center; }
.table-card { overflow-x: auto; }
table { width: 100%; min-width: 440px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fm-font-label); }
th { color: var(--muted); font-size: var(--fm-font-label); letter-spacing: 0.08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.highlight-row { background: rgba(195, 230, 106, 0.08); }
.progress-review-footer .control-button { min-height: 44px; }
.progress-review-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
#league-subview-table .league-table-section tbody tr.own-team-row, #team-dashboard .team-dashboard-table-card tbody tr.own-team-row { background: rgba(195, 230, 106, 0.14); box-shadow: inset 3px 0 0 rgba(195, 230, 106, 0.72); }
.promotion-place { color: var(--lime); box-shadow: inset 3px 0 var(--lime); font-weight: 900; }
.table-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.table-footnote { color: var(--muted); font-size: var(--fm-font-data); }

.squad-card, .contracts-overview-card { display: block; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.squad-table-wrap, .contracts-overview-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid rgba(244, 241, 233, 0.1); border-radius: 12px; background: rgba(8, 18, 15, 0.42); scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.06); }
.squad-table, .contracts-overview-table { width: max-content; min-width: 0; table-layout: auto; }
.squad-table th, .squad-table td, .contracts-overview-table th, .contracts-overview-table td { padding: 5px 4px; border-bottom-color: rgba(244, 241, 233, 0.1); font-family: inherit; font-size: var(--fm-font-data); line-height: 1.15; white-space: nowrap; }
.squad-table th, .contracts-overview-table th { padding: 0; background: rgba(255, 255, 255, 0.035); color: var(--muted); font-size: calc(var(--fm-font-data) - 2px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.1; white-space: normal; hyphens: auto; word-break: normal; overflow-wrap: normal; }
.squad-table td, .contracts-overview-table td { font-variant-numeric: tabular-nums; }
.squad-sort-button, .contract-sort-button { display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: center; gap: 3px; padding: 6px 3px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: inherit; text-transform: inherit; }
.squad-sort-label { display: -webkit-box; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; text-align: center; text-wrap: balance; white-space: normal; hyphens: auto; word-break: normal; overflow-wrap: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.squad-sort-label--nowrap { white-space: nowrap; }
.contracts-overview-table .contract-sort-label { display: -webkit-box; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; text-align: center; text-wrap: balance; white-space: normal; hyphens: auto; word-break: normal; overflow-wrap: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.contracts-overview-table .contract-sort-label--nowrap { white-space: nowrap; }
.squad-table th:nth-child(5) { min-width: 44px; }
.squad-table th:nth-child(6) { min-width: 62px; }
.squad-table th:nth-child(7) { min-width: 70px; }
.squad-table th:nth-child(8) { min-width: 66px; }
.squad-table th:nth-child(9) { min-width: 55px; }
.squad-table th:nth-child(10) { min-width: 64px; }
.squad-table th:nth-child(11) { min-width: 80px; }
.squad-sort-button:hover, .contract-sort-button:hover { background: rgba(195, 230, 106, 0.08); color: var(--ink); }
.squad-sort-button:focus-visible, .contract-sort-button:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--lime); outline-offset: -2px; }
.squad-sort-button.is-sorted, .squad-table th.is-sorted, .contract-sort-button.is-sorted, .contracts-overview-table th.is-sorted { color: var(--ink); }
.squad-table tbody tr, .contracts-overview-table tbody tr { background: rgba(14, 29, 24, 0.86); transition: background 0.14s ease; }
.squad-table tbody tr:nth-child(even), .contracts-overview-table tbody tr:nth-child(even) { background: rgba(21, 38, 32, 0.9); }
.squad-table tbody tr.is-bench { background-image: linear-gradient(rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.018)); }
.squad-table tbody tr, .contracts-overview-table tbody tr { height: var(--roster-data-row-height); }
.squad-table tbody td, .contracts-overview-table tbody td { padding-block: 1px; vertical-align: middle; }
.squad-table tbody tr:hover, .contracts-overview-table tbody tr:hover { background: rgba(195, 230, 106, 0.08); }
.squad-table tbody tr.is-bench:hover { background: rgba(105, 196, 176, 0.08); }
.squad-table tbody tr:last-child td, .contracts-overview-table tbody tr:last-child td { border-bottom: 0; }
.squad-table th:nth-child(1), .squad-table td:nth-child(1) { width: 6%; }
.squad-table th:nth-child(2), .squad-table td:nth-child(2) { width: max-content; overflow: hidden; }
.squad-table th:nth-child(3), .squad-table td:nth-child(3) { width: 8%; }
.squad-table th:nth-child(4), .squad-table td:nth-child(4) { width: 6%; }
.squad-table th:nth-child(5), .squad-table td:nth-child(5) { width: 6%; }
.squad-table th:nth-child(5), .squad-table td:nth-child(5) { width: 6%; }
.squad-table th:nth-child(6), .squad-table td:nth-child(6) { width: 8%; }
.squad-table th:nth-child(7), .squad-table td:nth-child(7) { width: 10%; }
.squad-table th:nth-child(8), .squad-table td:nth-child(8) { width: 8%; }
.squad-table th:nth-child(9), .squad-table td:nth-child(9) { width: 10%; }
.squad-table th:nth-child(10), .squad-table td:nth-child(10) { width: 7%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(1), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(1) { width: 5%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(2), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(2) { width: max-content; overflow: hidden; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(3), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(3) { width: 7%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(4), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(4) { width: 5%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(5), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(5) { width: 5%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(5), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(5) { width: 7%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(6), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(6) { width: 8%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(7), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(7) { width: 12%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(8), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(8) { width: 10%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(9), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(9) { width: 9%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(10), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(10) { width: 10%; }
.contracts-overview-table:not(.transfer-market-overview-table) th:not(:nth-child(2)), .contracts-overview-table:not(.transfer-market-overview-table) td:not(:nth-child(2)) { text-align: center; }
.transfer-market-overview-table th:nth-child(1), .transfer-market-overview-table td:nth-child(1) { width: 5%; }
.transfer-market-overview-table th:nth-child(2), .transfer-market-overview-table td:nth-child(2) { width: max-content; overflow: hidden; }
.transfer-market-overview-table th:nth-child(3), .transfer-market-overview-table td:nth-child(3) { width: 7%; }
.transfer-market-overview-table th:nth-child(4), .transfer-market-overview-table td:nth-child(4) { width: 5%; }
.transfer-market-overview-table th:nth-child(5), .transfer-market-overview-table td:nth-child(5) { width: 5%; }
.transfer-market-overview-table th:nth-child(6), .transfer-market-overview-table td:nth-child(6) { width: 7%; }
.transfer-market-overview-table th:nth-child(7), .transfer-market-overview-table td:nth-child(7) { width: 8%; }
.transfer-market-overview-table th:nth-child(8), .transfer-market-overview-table td:nth-child(8) { width: 12%; }
.transfer-market-overview-table th:nth-child(9), .transfer-market-overview-table td:nth-child(9) { width: 10%; }
.transfer-market-overview-table th:nth-child(10), .transfer-market-overview-table td:nth-child(10) { width: 9%; }
.transfer-market-overview-table th:nth-child(11), .transfer-market-overview-table td:nth-child(11) { width: 8%; }
.transfer-market-overview-table th:not(:nth-child(2)), .transfer-market-overview-table td:not(:nth-child(2)) { text-align: center; }
.transfer-market-overview-table { table-layout: auto; }
.transfer-market-overview-table th, .transfer-market-overview-table td { min-width: 0; }
.transfer-market-overview-table th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.transfer-market-overview-table td { overflow: hidden; text-overflow: ellipsis; }
.transfer-market-overview-table .contract-player-link { min-width: 0; overflow: hidden; padding-inline: 3px; }
.transfer-market-overview-table .contract-player-link strong, .transfer-market-overview-table .contract-player-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-market-overview-table .contract-overall-cell { min-width: 0; }
.transfer-market-overview-table .contract-action-button { max-width: 100%; box-sizing: border-box; }
.transfer-market-overview-table th:nth-child(1), .transfer-market-overview-table td:nth-child(1) { width: 4.5%; }
.transfer-market-overview-table th:nth-child(2), .transfer-market-overview-table td:nth-child(2) { width: max-content; overflow: hidden; }
.transfer-market-overview-table th:nth-child(3), .transfer-market-overview-table td:nth-child(3) { width: 7%; }
.transfer-market-overview-table th:nth-child(4), .transfer-market-overview-table td:nth-child(4) { width: 5%; }
.transfer-market-overview-table th:nth-child(5), .transfer-market-overview-table td:nth-child(5) { width: 8%; }
.transfer-market-overview-table th:nth-child(6), .transfer-market-overview-table td:nth-child(6) { width: 9%; }
.transfer-market-overview-table th:nth-child(7), .transfer-market-overview-table td:nth-child(7) { width: 8%; }
.transfer-market-overview-table th:nth-child(8), .transfer-market-overview-table td:nth-child(8) { width: 11%; }
.transfer-market-overview-table th:nth-child(9), .transfer-market-overview-table td:nth-child(9) { width: 10%; }
.transfer-market-overview-table th:nth-child(10), .transfer-market-overview-table td:nth-child(10) { width: 8%; }
.transfer-market-overview-table th:nth-child(11), .transfer-market-overview-table td:nth-child(11) { width: 7.5%; }
.transfer-market-overview-table th:nth-child(5) .contract-sort-button { white-space: nowrap; }
.squad-position-cell, .contract-position-cell, .squad-talent-cell, .contract-talent-cell { text-align: center; }

.squad-age, .squad-level { color: var(--fm-color-neutral-data); font-variant-numeric: tabular-nums; text-align: center; }
.squad-level { font-weight: 900; }
.squad-player-cell, .contract-player-cell { position: relative; padding-block: 0 !important; }
.player-name-column-measure { display: block; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; line-height: 0; font-size: var(--fm-font-label); font-weight: 900; }
.squad-player-link { display: grid; width: 100%; min-width: 0; min-height: 34px; box-sizing: border-box; gap: 2px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px 10px 7px 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.squad-player-link:hover, .squad-player-link:focus-visible { border-color: rgba(195, 230, 106, 0.35); background: rgba(195, 230, 106, 0.08); }
.squad-player-link:focus-visible { outline: 2px solid rgba(195, 230, 106, 0.3); outline-offset: 1px; }
.squad-player-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-data); }
.squad-player-link, .contract-player-link { align-content: center; min-height: calc(34px + 0.54rem * 1.15 + 2px); justify-items: center; text-align: center; }
.player-team-row-spacer { position: absolute; right: 0; bottom: 0; left: 0; display: block; height: calc(0.54rem * 1.15 + 2px); pointer-events: none; visibility: hidden; }
.contract-player-status { color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.squad-overall-cell { min-width: 72px; text-align: center; }
.squad-overall > b { font-size: var(--fm-font-label); }
.squad-stat-cell { text-align: center; font-variant-numeric: tabular-nums; }
.squad-stat-value { display: inline-block; min-width: 25px; color: var(--stat-ball-control); font-weight: 900; }
.squad-stat-value.stat-speed { color: var(--stat-speed); }
.squad-stat-value.stat-duels { color: var(--stat-duels); }
.squad-stat-value.stat-shot { color: var(--stat-shot); }
.squad-stat-value.stat-passing { color: var(--stat-passing); }
.squad-stat-value.stat-ball-control { color: var(--stat-ball-control); }
.squad-stat-role-label { margin-right: 2px; color: inherit; font-size: var(--fm-font-label); letter-spacing: 0.04em; opacity: 0.86; }
.squad-stat-cell-unavailable { color: var(--muted); font-weight: 800; }
.contract-overview-row.is-contract-expiring { background: rgba(243, 182, 72, 0.09); }
.contract-overview-row.is-contract-expiring:hover { background: rgba(243, 182, 72, 0.15); }
.contract-overview-row.is-contract-expired { background: rgba(239, 141, 123, 0.1); }
.contract-overview-row.is-contract-expired:hover { background: rgba(239, 141, 123, 0.16); }
.contract-player-link { display: grid; width: 100%; min-width: 0; min-height: 34px; box-sizing: border-box; gap: 1px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px 10px 7px 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-align: center; }
.contract-player-link:hover { border-color: rgba(195, 230, 106, 0.35); background: rgba(195, 230, 106, 0.08); }
.contract-player-link:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.3); outline-offset: 1px; }
.contract-player-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-data); }
.squad-player-link, .contract-player-link { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; align-content: center; }
.player-team-row-spacer { position: static; height: calc(var(--roster-data-row-height) - 8px); }
.contract-overall-cell { min-width: 70px; }
.contract-age { color: var(--fm-color-neutral-data); font-variant-numeric: tabular-nums; }
.contract-value { font-variant-numeric: tabular-nums; font-weight: 900; }
.contract-term { color: var(--fm-color-neutral-data); }
.contract-money-cell { color: var(--ink); }
.contract-action-button { min-height: 25px; padding: 3px 7px; border: 1px solid rgba(195, 230, 106, 0.44); border-radius: 6px 9px 6px 9px; background: rgba(195, 230, 106, 0.1); color: var(--lime); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 900; white-space: nowrap; }
.contract-action-button:hover, .contract-action-button:focus-visible { background: rgba(195, 230, 106, 0.2); color: var(--ink); outline: 2px solid rgba(195, 230, 106, 0.3); outline-offset: 1px; }
.contract-action-button:disabled { border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: not-allowed; opacity: 0.75; }
.profile-contract-tab-panel { margin-top: 0; padding-top: 6px; }
.profile-contract-tab-content { display: grid; gap: 12px; min-width: 0; }
.profile-contract-offer-controls { display: grid; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(195, 230, 106, 0.24); border-radius: 10px 14px 10px 14px; background: linear-gradient(135deg, rgba(195, 230, 106, 0.08), rgba(17, 28, 25, 0.28)); }
.profile-contract-offer-controls-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; min-width: 0; min-height: 42px; }
.profile-contract-offer-controls-heading h4 { min-width: 0; min-height: 42px; align-items: center; letter-spacing: 0.01em; }
.profile-contract-offer-heading-action { display: flex; min-width: 0; align-items: center; justify-content: flex-end; }
.profile-contract-offer-heading-action .profile-contract-offer-term.club-transfer-offer-term { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.profile-contract-offer-heading-action .club-offer-fee-summary { min-height: var(--fm-control-height); }
.profile-contract-offer-heading-action .profile-contract-offer-actions { margin-top: 0; }
.profile-contract-offer-term { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; min-width: 0; }
.profile-contract-offer-term.club-transfer-offer-term { grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 8px; }
.club-transfer-offer-term .profile-contract-offer-actions { margin-top: 0; }
.transfer-offer-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.transfer-offer-inputs label { display: grid; gap: 3px; min-width: 0; }
.transfer-offer-inputs label span { color: var(--muted); font-size: var(--fm-font-control); font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.transfer-offer-inputs input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 32px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px 10px 7px 10px; background: rgba(8, 18, 15, 0.62); color: var(--ink); font: inherit; font-size: var(--fm-font-control); font-weight: 850; text-align: right; }
.transfer-offer-inputs input:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.2); outline-offset: 1px; }
.club-offer-fee-summary { display: flex; min-width: 0; min-height: var(--fm-control-height); box-sizing: border-box; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(244, 241, 233, 0.22); border-radius: 8px 12px 8px 12px; background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.club-offer-fee-summary .profile-contract-offer-label { color: var(--ink); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.club-offer-fee-summary > strong { color: var(--ink); font-size: calc(0.9rem - 3px); font-variant-numeric: tabular-nums; font-weight: 950; white-space: nowrap; }
.club-offer-pending { margin: 2px 0 8px; padding: 8px 10px; border: 1px solid rgba(243, 190, 94, 0.45); border-radius: 8px; background: rgba(243, 190, 94, 0.09); color: var(--ink); font-size: var(--fm-font-label); line-height: 1.4; }
.club-offer-pending strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.club-offer-validation-error { display: block; margin-top: 2px; color: var(--red); font-size: var(--fm-font-label); font-weight: 800; line-height: 1.3; }
.profile-contract-line, .profile-contract-values { min-width: 0; }
.profile-contract-comparison { display: grid; width: min(100%, 720px); margin-inline: auto; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px 12px 10px 12px; background: rgba(17, 28, 25, 0.28); }
.profile-contract-comparison-head, .profile-contract-comparison-grid { display: grid; grid-template-columns: minmax(145px, 0.75fr) minmax(0, 1fr) minmax(0, 1fr); min-width: 0; }
.profile-contract-comparison-head { border-bottom: 1px solid rgba(244, 241, 233, 0.14); background: rgba(255, 255, 255, 0.035); }
.profile-contract-comparison-head > span { min-width: 0; padding: 9px 10px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; hyphens: auto; word-break: normal; overflow-wrap: normal; }
.profile-contract-header-label { display: flex; align-items: center; min-width: 0; gap: 7px; }
.profile-contract-header-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-contract-header-label .profile-statistics-comparison-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--muted); }
.profile-contract-comparison-head > span:not(:first-child) { color: var(--ink); font-size: var(--fm-font-label); letter-spacing: 0; text-align: right; text-transform: none; }
.profile-contract-comparison-head > span:last-child { color: var(--lime); }
.profile-contract-comparison.is-renewal-overview .profile-contract-comparison-head,
.profile-contract-comparison.is-renewal-overview .profile-contract-comparison-grid { grid-template-columns: minmax(145px, 0.75fr) minmax(0, 1fr); }
.profile-contract-comparison.is-renewal-overview .profile-contract-comparison-head > span:nth-child(3),
.profile-contract-comparison.is-renewal-overview .profile-contract-offer { display: none; }
.profile-contract-comparison.is-renewal-overview .profile-contract-comparison-head > span:nth-child(2) { color: var(--ink); }
.profile-contract-labels, .profile-contract-column { display: grid; align-content: stretch; min-width: 0; padding: 0; }
.profile-contract-labels > span, .profile-contract-value-row { display: flex; min-width: 0; min-height: 42px; align-items: center; padding: 7px 10px; border-top: 1px solid rgba(244, 241, 233, 0.1); }
.profile-contract-labels > span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.profile-contract-metric-label { display: flex; align-items: center; min-width: 0; gap: 7px; }
.profile-contract-metric-label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-contract-metric-icon { --stat-accent: var(--muted); }
.profile-contract-labels > span:nth-child(1) .profile-contract-metric-icon { --stat-accent: var(--cyan); }
.profile-contract-labels > span:nth-child(2) .profile-contract-metric-icon { --stat-accent: var(--gold); }
.profile-contract-labels > span:nth-child(3) .profile-contract-metric-icon { --stat-accent: var(--lime); }
.profile-contract-labels > span:nth-child(4) .profile-contract-metric-icon { --stat-accent: var(--stat-shot); }
.profile-contract-column { background: transparent; }
.profile-contract-current, .profile-contract-offer { border-left: 0; }
.profile-contract-offer { background: transparent; }
.profile-contract-labels > span:nth-child(even), .profile-contract-current .profile-contract-value-row:nth-child(even), .profile-contract-offer .profile-contract-value-row:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.profile-contract-values { display: grid; gap: 0; margin: 0; }
.profile-contract-value-row:first-child { border-top: 0; }
.profile-contract-value-row.profile-contract-value-only { justify-content: flex-end; }
.profile-contract-value { color: var(--ink); font-size: var(--fm-font-label); font-weight: 950; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.profile-contract-current .profile-contract-value { color: var(--fm-color-neutral-data); }
.profile-public-locked-value-row .profile-contract-value, .profile-contract-offer .profile-public-locked-value-row .profile-contract-value { color: var(--muted); font-weight: 800; }
.profile-contract-term-row { align-items: center; }
.profile-contract-term-control { width: 100%; min-width: 0; }
.profile-transfer-value { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.profile-transfer-value > strong { flex: 0 0 auto; color: var(--stat-overall-bright); font-size: var(--fm-font-label); font-weight: 950; font-variant-numeric: tabular-nums; }
.contract-term-options { display: grid; grid-template-columns: repeat(5, minmax(26px, 1fr)) auto; min-width: 0; align-items: center; gap: 4px; }
.contract-term-option { min-width: 40px; min-height: var(--fm-control-height); border: 1px solid var(--line); border-radius: 7px 10px 7px 10px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-label); font-weight: 950; }
.contract-term-option:hover, .contract-term-option:focus-visible { border-color: var(--lime); color: var(--ink); outline: none; }
.contract-term-option:disabled, .contract-term-option:disabled:hover { border-color: rgba(255, 255, 255, 0.08); color: rgba(180, 194, 187, 0.42); cursor: not-allowed; opacity: 0.62; }
.contract-term-option.is-selected { border-color: var(--lime); background: rgba(195, 230, 106, 0.16); color: var(--lime); }
.contract-term-unit { color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; white-space: nowrap; }
.contract-offer-values .profile-contract-value { color: var(--gold); }
.profile-contract-offer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.profile-contract-offer-disabled-button:disabled { border-color: rgba(180, 194, 187, 0.22); background: rgba(255, 255, 255, 0.035); color: var(--muted); opacity: 0.75; }
.profile-contract-offer-note { margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.profile-contract-offer-unavailable-note { margin: 8px 2px 0; }
.club-transfer-contract-takeover { display: grid; gap: 6px; margin-top: 2px; padding: 8px 10px; border: 1px solid rgba(105, 196, 176, 0.3); border-radius: 8px 11px 8px 11px; background: rgba(105, 196, 176, 0.07); }
.club-transfer-contract-takeover > strong { color: var(--cyan); font-size: var(--fm-font-label); }
.club-transfer-contract-takeover-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.club-transfer-contract-takeover-values > span { display: grid; gap: 2px; min-width: 0; }
.club-transfer-contract-takeover-values small { display: flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.club-transfer-contract-takeover-values small > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-transfer-contract-takeover-values .profile-statistics-comparison-icon { flex: 0 0 16px; width: 16px; height: 16px; font-size: var(--fm-font-label); }
.club-transfer-contract-takeover-values > span:nth-child(1) .profile-contract-metric-icon { --stat-accent: var(--cyan); }
.club-transfer-contract-takeover-values > span:nth-child(2) .profile-contract-metric-icon { --stat-accent: var(--gold); }
.club-transfer-contract-takeover-values > span:nth-child(3) .profile-contract-metric-icon { --stat-accent: var(--lime); }
.club-transfer-contract-takeover-values > span:nth-child(4) .profile-contract-metric-icon { --stat-accent: var(--stat-shot); }
.club-transfer-contract-takeover-values b { box-sizing: border-box; overflow: hidden; padding-inline-start: 20px; color: var(--ink); font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.profile-contract-actions { position: relative; display: grid; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(244, 241, 233, 0.12); border-radius: 10px 14px 10px 14px; background: rgba(255, 255, 255, 0.025); }
.profile-contract-action-list { display: flex; gap: 8px; min-width: 0; }
.profile-contract-action-button { box-sizing: border-box; flex: 1 1 0; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px 10px 7px 10px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font-family: system-ui, "Segoe UI", Arial, sans-serif; font-size: calc(14px - 3px); font-weight: 600; line-height: 1.35; letter-spacing: normal; white-space: normal; overflow-wrap: normal; }
.profile-contract-action-button.is-danger { border-color: rgba(239, 141, 123, 0.28); color: rgba(239, 141, 123, 0.62); }
.profile-contract-action-button.is-primary, .profile-contract-action-button.is-ready { border-color: var(--lime); background: var(--lime); color: var(--stat-overall-ink); cursor: pointer; }
.profile-contract-action-button.is-primary:hover, .profile-contract-action-button.is-primary:focus-visible, .profile-contract-action-button.is-ready:hover, .profile-contract-action-button.is-ready:focus-visible { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 88%, white); color: var(--stat-overall-ink); outline: 2px solid rgba(195, 230, 106, 0.3); outline-offset: 1px; }
.profile-contract-action-button.is-danger-ready { border-color: var(--red); background: var(--red); color: var(--stat-overall-ink); cursor: pointer; }
.profile-contract-action-button.is-danger-ready:hover, .profile-contract-action-button.is-danger-ready:focus-visible { border-color: var(--red); background: color-mix(in srgb, var(--red) 88%, white); color: var(--stat-overall-ink); outline: 2px solid rgba(239, 141, 123, 0.3); outline-offset: 1px; }
.profile-contract-action-button.is-locked { border-color: rgba(180, 194, 187, 0.22); background: rgba(255, 255, 255, 0.025); color: var(--muted); }
.profile-contract-action-button.is-locked:hover, .profile-contract-action-button.is-locked:focus-visible { border-color: rgba(243, 182, 72, 0.62); background: rgba(243, 182, 72, 0.08); color: var(--ink); outline: 2px solid rgba(243, 182, 72, 0.18); outline-offset: 1px; }
.profile-contract-action-button.is-danger.is-locked:hover, .profile-contract-action-button.is-danger.is-locked:focus-visible { border-color: rgba(239, 141, 123, 0.62); background: rgba(239, 141, 123, 0.08); }
.profile-transfer-listing-content:empty { display: none; }
.profile-transfer-listing-card { display: grid; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid rgba(105, 196, 176, 0.24); border-radius: 8px 11px 8px 11px; background: rgba(10, 25, 21, 0.44); }
.profile-transfer-listing-card.is-active { border-color: rgba(195, 230, 106, 0.35); background: rgba(195, 230, 106, 0.055); }
.profile-transfer-listing-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.profile-transfer-listing-card-heading strong { color: var(--lime); font-size: var(--fm-font-label); }
.profile-transfer-listing-card-heading span { color: var(--muted); font-size: var(--fm-font-label); text-align: right; }
.profile-transfer-listing-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: var(--fm-font-label); }
.profile-transfer-listing-summary strong { color: var(--gold); font-size: var(--fm-font-label); font-variant-numeric: tabular-nums; }
.profile-transfer-listing-summary span:last-child { flex: 1 1 100%; }
.profile-transfer-listing-form-grid { display: grid; grid-template-columns: minmax(160px, 0.75fr) minmax(0, 1fr); align-items: end; gap: 10px; }
.profile-transfer-listing-field { display: grid; gap: 4px; min-width: 0; }
.profile-transfer-listing-field > span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.profile-transfer-listing-field small { color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.profile-transfer-listing-input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 34px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px 10px 7px 10px; background: rgba(4, 16, 13, 0.8); color: var(--ink); font: inherit; font-size: var(--fm-font-control); font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.profile-transfer-listing-input:focus { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.16); outline-offset: 1px; }
.profile-transfer-listing-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.profile-transfer-listing-input[type="number"]::-webkit-inner-spin-button, .profile-transfer-listing-input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.profile-transfer-listing-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.profile-transfer-listing-form-actions .control-button { min-height: 32px; padding: 6px 10px; font-size: var(--fm-font-control); }
.profile-transfer-listing-notice { margin: 0; padding: 7px 8px; border-left: 2px solid var(--gold); color: var(--gold); font-size: var(--fm-font-label); line-height: 1.4; }
.profile-contract-offer-controls { width: min(100%, 720px); margin-inline: auto; box-sizing: border-box; border-radius: 10px 12px 10px 12px; }
.transfer-offer-inputs input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.transfer-offer-inputs input[type="number"]::-webkit-inner-spin-button, .transfer-offer-inputs input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.renewal-offer-term { grid-template-columns: minmax(0, 1fr) auto; justify-content: start; gap: 10px; }
.renewal-offer-term .profile-contract-term-control { width: min(100%, 520px); }
.renewal-offer-term .profile-contract-offer-review-actions { align-self: start; margin-top: 0; margin-left: 2px; }
.profile-contract-tab-content { gap: 12px; }
.profile-contract-slide { display: grid; width: min(100%, 720px); max-width: 100%; gap: 0; min-width: 0; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px 12px 10px 12px; background: rgba(17, 28, 25, 0.28); }
.profile-contract-slide.is-renewal-overview { width: min(100%, 520px); }
.profile-contract-slide[hidden] { display: none; }
.profile-contract-slide .profile-contract-offer-controls { width: auto; margin-inline: 0; border-right: 0; border-bottom: 1px solid rgba(195, 230, 106, 0.24); border-left: 0; border-radius: 0; background: linear-gradient(135deg, rgba(195, 230, 106, 0.08), rgba(17, 28, 25, 0.18)); }
.profile-contract-slide .profile-contract-comparison { width: 100%; max-width: 100%; margin-inline: 0; border: 0; border-radius: 0; background: transparent; }
.profile-contract-slide .profile-contract-actions { margin: 10px 12px 12px; padding: 9px 10px; border: 1px solid rgba(105, 196, 176, 0.24); border-radius: 9px 12px 9px 12px; background: rgba(10, 25, 21, 0.38); }

/* Premium hierarchy for the compact player-profile scorecard. */
.player-profile-header-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; align-items: stretch; gap: 0; }
.player-profile-header-identity { display: flex; grid-column: 1 / -1; grid-row: 1; min-width: 0; align-items: center; gap: 7px; margin: 0; padding: 2px 5px 7px; border-bottom: 1px solid rgba(244, 241, 233, 0.14); color: inherit; font: inherit; text-align: left; }
.player-profile-header-role { flex: 0 0 auto; min-width: 31px; padding: 3px 5px; font-size: var(--fm-font-label); }
.player-profile-header-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-weight: 950; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.player-profile-header-stat { grid-row: 3; align-content: center; justify-items: start; min-height: 34px; padding: 6px 7px 1px; text-align: left; }
.player-profile-header-stat-heading { justify-content: flex-start; text-align: left; }
.player-profile-header-market-stat { grid-column: 1 / -1; grid-row: 2; justify-items: start; min-height: 43px; padding: 8px 5px 6px; border-left: 0; border-bottom: 1px solid rgba(244, 241, 233, 0.1); background: linear-gradient(90deg, rgba(195, 230, 106, 0.1), transparent 72%); }
.player-profile-header-market-stat .player-profile-header-stat-heading { color: var(--lime); font-size: var(--fm-font-label); }
.player-profile-header-market-value { display: flex; align-items: baseline; gap: 6px; }
.player-profile-header-market-value > strong { color: var(--ink); font-size: calc(1.4rem - 3px); letter-spacing: -0.04em; line-height: 0.95; }
.player-profile-header-market-value .profile-public-locked-value { color: var(--muted); font-size: var(--fm-font-label); letter-spacing: 0; }
.player-profile-header-talent-stat { border-left: 0; }
.player-profile-header-ges-stat { border-right: 0; }

@media (max-width: 699px) {
  .player-profile-header-summary { width: min(100%, 420px); }
  .player-profile-header-name { font-size: var(--fm-font-label); }
  .player-profile-header-stat { padding-inline: 5px; }
  .player-profile-header-market-value > strong { font-size: calc(1.3rem - 3px); }
}

.future-grid { display: grid; gap: 12px; }
.future-grid article { position: relative; padding: 18px; }
.future-grid article > span { font-size: calc(1.4rem - 3px); }
.future-grid h3 { margin: 12px 0 7px; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.future-grid p { min-height: 66px; margin-bottom: 16px; color: var(--muted); font-size: var(--fm-font-label); }
.future-grid b { color: var(--lime); font-size: var(--fm-font-label); letter-spacing: 0.06em; text-transform: uppercase; }

.start-page { min-height: 100svh; overflow-x: hidden; background: radial-gradient(ellipse at 76% 28%, rgba(105, 196, 176, 0.13), transparent 38rem), linear-gradient(112deg, #10221d 0%, #122720 54%, #0c1a16 100%); }
.start-page > .manager-header { width: min(1420px, calc(100% - clamp(32px, 7vw, 104px))); min-height: 82px; margin-inline: auto; padding-block: 0; border-bottom: 0; }
.start-page .manager-brand { flex: 0 0 auto; }
.start-page .manager-brand .brand-wordmark-image { width: clamp(198px, 20vw, 260px); }
.start-brand-lockup { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; max-width: 100%; }
.start-beta-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(255, 212, 91, 0.6); border-radius: 6px; background: #183029; color: var(--brand-wordmark-highlight); font-size: 11px; font-weight: 800; line-height: 1.25; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.start-beta-badge::before { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--lime); content: ""; }
.start-page .manager-shell.start-menu { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.start-page .manager-footer { display: none; }
.start-hero { position: relative; min-height: calc(100svh - 82px); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 77% 52%, rgba(40, 116, 91, 0.18), transparent 34rem), linear-gradient(90deg, rgba(15, 32, 27, 0.3), rgba(15, 32, 27, 0)); }
.start-hero::before { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 78% 9%, rgba(244, 241, 233, 0.06), transparent 23rem), linear-gradient(117deg, transparent 0 56%, rgba(195, 230, 106, 0.045) 56.1% 56.24%, transparent 56.35% 100%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 96px); content: ""; pointer-events: none; }
.start-hero::after { position: absolute; top: -46vw; right: -15vw; z-index: -1; width: min(82vw, 1080px); aspect-ratio: 1; border: 1px solid rgba(105, 196, 176, 0.055); border-radius: 50%; box-shadow: 0 0 0 28px rgba(105, 196, 176, 0.018), 0 0 0 62px rgba(105, 196, 176, 0.012); content: ""; pointer-events: none; }
.start-hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 72px); width: min(1420px, calc(100% - clamp(32px, 7vw, 104px))); min-height: calc(100svh - 82px); margin-inline: auto; padding: 0; }
.start-hero-copy { position: relative; z-index: 2; max-width: 590px; padding-block: 32px; }
.start-hero h1 { text-shadow: 0 -1px 0 #ffffff30, 1px 1px 0 #526345, 2px 2px 0 #263d29, 0 5px 8px #0007; max-width: 600px; margin: 0 0 18px; color: var(--ink); font-family: "Trebuchet MS", ui-sans-serif, system-ui, sans-serif; font-size: calc(clamp(2.9rem, 5vw, 4.85rem) - 3px); font-weight: 900; letter-spacing: -0.065em; line-height: 0.98; text-wrap: balance; }
.start-hero h1 span { color: var(--lime); }
.start-hero-message { position: relative; width: min(100%, 500px); }
.ponzelar-identity { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0; color: #f2edce; font-size: 16px; line-height: 1.35; }
.ponzelar-identity-copy { min-width: 0; }
.ponzelar-identity-title { display: flex; align-items: center; gap: 2px; }
.ponzelar-identity-symbol { display: block; flex: 0 0 32px; width: 32px; height: 44px; opacity: .65; object-fit: contain; }
.ponzelar-origin-info summary { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 28px; padding: 0; list-style: none; color: #d6c58b; font: inherit; text-decoration: underline; text-decoration-color: #d6c58b80; text-underline-offset: 3px; cursor: pointer; }
.ponzelar-origin-info summary strong { color: inherit; }
@media (pointer: coarse) { .ponzelar-origin-info summary { min-height: 44px; } }
.ponzelar-origin-info summary::-webkit-details-marker { display: none; }
.ponzelar-origin-info summary:hover, .ponzelar-origin-info[open] summary { color: var(--lime); }
.ponzelar-origin-info summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 5px; }
.ponzelar-origin-content { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; width: min(340px, 100%); box-sizing: border-box; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #142b22; color: var(--ink); font-size: 14px; line-height: 1.5; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ponzelar-origin-content p { margin: 0 0 12px; }
.ponzelar-origin-content { padding-top: 44px; }
.ponzelar-origin-close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 700 22px/1 sans-serif; cursor: pointer; }
.ponzelar-origin-close:hover { color: var(--lime); }
.ponzelar-origin-close:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; }
.ponzelar-origin-content a { display: inline-block; padding-block: 6px; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ponzelar-origin-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ponzelar-identity strong { display: block; color: #d6c58b; font-size: 20px; font-weight: 700; }
.ponzelar-identity small { display: block; margin-top: 0; font-size: 14px; }
.start-hero .intro-copy { width: 100%; max-width: 500px; margin: 0; padding: 0; border: 0; color: rgba(244, 241, 233, 0.76); font-size: calc(clamp(1rem, 1.4vw, 1.2rem) - 3px); line-height: 1.5; text-wrap: balance; }
.start-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.start-action { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 46px; text-align: center; text-decoration: none; }
.start-action-primary { min-width: 220px; min-height: 60px; padding-inline: 23px; border: 1px solid rgba(244, 241, 233, 0.14); border-radius: 8px 20px 8px 20px; background: var(--lime); box-shadow: 0 9px 24px rgba(6, 18, 14, 0.24); color: #17221b; font-size: calc(0.98rem - 3px); font-weight: 900; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
#start-new-game.start-action-primary { font-size: 15px; }
.start-action-primary:not(:disabled):not([aria-disabled="true"]):hover, .start-action-secondary:not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(6, 18, 14, 0.34); }
.start-action-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.start-action-secondary { min-width: 220px; min-height: 60px; padding-inline: 18px; border: 1px solid rgba(195, 230, 106, 0.42); border-radius: 18px 8px 18px 8px; background: rgba(18, 39, 32, 0.72); box-shadow: 0 8px 22px rgba(6, 18, 14, 0.16); color: var(--ink); font-size: calc(0.91rem - 3px); font-weight: 850; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease; }
#start-load-game.start-action-secondary { flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.1; }
.start-load-game-title { font-size: 15px; font-weight: 900; }
.start-load-game-caption { color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.1; }
#start-load-game:hover .start-load-game-caption, #start-load-game:focus-visible .start-load-game-caption { color: inherit; }
.start-action-secondary:hover, .start-action-secondary:focus-visible { border-color: var(--lime); background: rgba(195, 230, 106, 0.1); color: var(--lime); }
.start-action-secondary:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.start-load-game-status { width: min(100%, 452px); margin: 10px 0 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.4; }
.start-load-game-status[hidden] { display: none; }
.start-load-game-status.is-error { color: var(--red); }
.start-reset-panel { display: flex; align-items: center; justify-content: flex-start; gap: 8px; max-width: 590px; margin-top: 14px; padding: 0; border: 0; background: transparent; }
.start-reset-panel[hidden] { display: none; }
.start-reset-link.start-action-reset { min-width: 0; min-height: 28px; padding: 4px 7px; border: 1px solid transparent; border-radius: 6px 9px 6px 9px; background: transparent; color: rgba(244, 241, 233, 0.46); cursor: pointer; font: inherit; font-size: var(--fm-font-label); font-weight: 850; }
.start-reset-link.start-action-reset > span { margin-right: 5px; font-size: var(--fm-font-label); }
.start-reset-link.start-action-reset:hover, .start-reset-link.start-action-reset:focus-visible { border-color: rgba(243, 182, 72, 0.42); background: rgba(243, 182, 72, 0.08); color: var(--gold); outline: none; }
.start-hero-visual { position: relative; z-index: 1; display: grid; min-width: 0; min-height: min(76svh, 660px); align-self: stretch; place-items: center; }
.start-ponzelar { display: block; width: min(100%, 620px); height: 100%; object-fit: contain; object-position: center; pointer-events: none; }
.start-hero.is-setup .start-hero-layout { display: none; }
.start-hero.is-setup { min-height: 0; background: transparent; }
.start-page:has(.start-hero.is-setup) {
  background-color: #10231d;
  background-image: linear-gradient(180deg, rgba(16, 35, 29, .72), rgba(16, 35, 29, .82)), url('assets/ponzelar/club-office-wide-v4.png');
  background-position: center, center 56%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.start-setup { display: grid; gap: 12px; padding: 0 clamp(24px, 5vw, 58px) 42px; }
.start-step-panel { display: grid; gap: 13px; padding: 18px; border: 1px solid rgba(195, 230, 106, 0.34); border-radius: 14px 6px 14px 6px; background: rgba(13, 28, 23, 0.8); }
.start-setup[hidden] { display: none; }
.start-step-panel[hidden] { display: none; }
.start-step-panel h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; }
.start-manager-panel { width: min(100%, 760px); min-width: 0; box-sizing: border-box; justify-self: start; }
.start-manager-panel .start-form-error, .start-manager-panel .start-step-actions { grid-column: 1 / -1; }
.start-manager-heading h2 { font-size: clamp(26px, 3vw, 34px); }
.start-manager-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.start-manager-desk-layout { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.65fr); gap: 22px; align-items: stretch; }
.start-manager-identity { display: flex; min-width: 0; flex-direction: column; justify-content: flex-start; }
.start-manager-preview-image { display: grid; place-items: center; min-height: 240px; overflow: hidden; background: radial-gradient(ellipse at center, rgba(195,230,106,.08), transparent 70%); }
.start-manager-preview-image img { display: block; width: 100%; max-height: 280px; object-fit: contain; }
.start-manager-preview-image img[data-manager-portrait="manager-25"] { transform: translateY(4%) scale(1.2); }
.start-manager-preview-image img[hidden], #start-manager-preview-fallback[hidden] { display: none; }
.start-manager-preview-copy { display: grid; gap: 5px; min-width: 0; padding: 14px 10px; border-top: 2px solid var(--gold); background: linear-gradient(90deg, rgba(13,28,23,.92), rgba(13,28,23,.35)); }
#start-manager-preview-name { font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
#start-manager-preview-role { color: var(--muted); font-size: 13px; }
.start-manager-fields { display: grid; gap: 16px; min-width: 0; padding: 16px; }
.start-manager-fields .start-name-field input { font-size: 16px; }
.start-manager-fields .start-manager-portrait { position: relative; min-height: 44px; }
.start-manager-fields .start-manager-portrait[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: var(--lime); color: var(--deep); font: 800 12px/18px sans-serif; text-align: center; }
@media (max-width: 760px) {
  .start-manager-desk-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .start-manager-identity { flex-direction: row; align-items: center; justify-content: flex-start; }
  .start-manager-preview-image { width: 104px; min-height: 104px; flex: none; }
  .start-manager-preview-image img { max-height: 104px; }
  .start-manager-preview-copy { flex: 1; border-top: 0; background: transparent; }
  .start-manager-fields { padding: 12px; }
}
.start-name-field { display: grid; gap: 6px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.start-name-field input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.055); color: var(--ink); font: inherit; font-size: calc(1rem - 3px); }
.start-name-field input:focus { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.2); outline-offset: 2px; }
.start-manager-portrait-picker { display: grid; grid-column: 1 / -1; gap: 7px; }
.start-manager-portrait-label { color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; }
.start-manager-portrait-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.start-manager-portrait { display: grid; min-width: 0; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid rgba(105, 196, 176, 0.34); border-radius: 10px 14px 10px 14px; background: rgba(11, 23, 19, 0.75); cursor: pointer; transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease; }
.start-manager-portrait:hover, .start-manager-portrait:focus-visible { border-color: var(--lime); outline: none; transform: translateY(-1px); box-shadow: 0 5px 0 rgba(7, 17, 14, 0.58), 0 9px 14px rgba(0, 0, 0, 0.2); }
.start-manager-portrait[aria-pressed="true"] { border: 2px solid var(--lime); box-shadow: 0 0 0 2px rgba(195, 230, 106, 0.18), 0 5px 0 rgba(7, 17, 14, 0.58); }
.start-manager-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.start-manager-portrait[data-start-manager-portrait="manager-25"] img { transform: translateY(8%) scale(1.2); }
.start-form-error { margin: 0; color: var(--red); font-size: var(--fm-font-label); font-weight: 750; }
.start-form-error[hidden] { display: none; }
.start-step-actions { display: flex; justify-content: space-between; gap: 8px; }
.start-team-panel { width: min(100%, 1158px); min-width: 0; box-sizing: border-box; justify-self: center; gap: 14px; }
.start-team-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.start-team-heading h2 { margin: 0; }
.start-team-picker { display: grid; gap: 10px; }
.start-team-picker-heading { display: flex; align-items: end; justify-content: flex-start; gap: 12px; }
.start-team-picker-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.start-team-filters { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.start-team-filter-field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: var(--fm-font-label); font-weight: 800; }
.start-team-group-field { grid-column: 1 / -1; width: 100%; }
/* Compact plaques reuse the game's shared brass/enamel button skin. */
.start-team-group-buttons { display: grid; width: min(100%, 536px); grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; padding-bottom: 4px; }
.start-team-group-buttons .start-team-group-button { position: relative; min-width: 0; min-height: 52px; width: 52px; height: 52px; justify-self: center; display: grid; place-items: center; padding: 8px; border: 2px solid #0c2019; border-radius: 50%; background: radial-gradient(ellipse at 30% 18%, #ffffff2e, transparent 48%), linear-gradient(145deg, #345849, #17352b 72%); color: #f3edcf; font: 800 22px/1 var(--fm-font-heading-family, sans-serif); text-shadow: 0 1px 2px #0009; box-shadow: inset 0 1px 1px #c6d6b16b, inset 0 -3px 4px #061a14b3, 0 3px 0 #07170f, 0 5px 7px #0006; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.start-team-group-buttons .start-team-group-button[aria-pressed="true"] { background: radial-gradient(ellipse at 30% 18%, #fff8, transparent 48%), linear-gradient(145deg, #dcf398, #a4c64b); color: #173323; border-color: #c3e66a; text-shadow: 0 1px #eef9c45e; box-shadow: inset 0 1px 1px #f6ffd6, inset 0 -3px 4px #647d36, 0 3px 0 #304c22, 0 5px 8px #0007; }
.start-team-group-buttons .start-team-group-button:focus-visible { outline: 3px solid var(--lime, #c3e66a); outline-offset: 4px; }
@media (hover: hover) { .start-team-group-buttons .start-team-group-button:hover { transform: translateY(-2px); } }
.start-team-group-buttons .start-team-group-button:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .start-team-group-buttons .start-team-group-button { transition: none; } .start-team-group-buttons .start-team-group-button:is(:hover, :active) { transform: none; } }
.start-team-group-button[aria-pressed="true"]::after { content: "✓"; position: absolute; bottom: 3px; right: 8px; font: 800 10px/1 sans-serif; color: #173323; }

.start-team-empty { margin: 4px 0; padding: 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: var(--fm-font-label); text-align: center; }
.start-team-empty[hidden] { display: none; }
.start-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.start-team-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; min-width: 0; min-height: 76px; border: 1px solid var(--line); border-radius: 9px 4px 9px 4px; background: rgba(255, 255, 255, 0.035); color: var(--ink); transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease; }
.start-team-card:hover { border-color: rgba(195, 230, 106, 0.72); background: rgba(195, 230, 106, 0.1); transform: translateY(-1px); }
.start-team-card.selected { border-color: var(--lime); background: linear-gradient(120deg, rgba(195, 230, 106, 0.18), rgba(105, 196, 176, 0.08)); box-shadow: inset 0 -2px 0 rgba(195, 230, 106, 0.45); }
.start-team-select { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; min-height: 76px; padding: 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.start-team-select:hover, .start-team-select:focus-visible { outline: none; }
.start-team-select:focus-visible { box-shadow: inset 0 0 0 2px rgba(195, 230, 106, 0.72); }
.start-team-crest { display: grid; width: 60px; height: 60px; place-items: center; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: var(--fm-font-label); font-weight: 900; }
.start-team-crest img { display: block; width: 100%; height: 100%; object-fit: contain; }
.start-team-crest-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.start-team-copy { display: grid; align-content: center; min-width: 0; gap: 4px; }
.start-team-card-heading { display: block; min-width: 0; }
.start-team-card-heading strong { display: block; min-width: 0; overflow: hidden; padding-block: 2px; color: var(--fm-color-team-name); font-size: var(--fm-font-data); line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }

.start-team-profile-open { overflow: hidden; }
.start-youth-panel { --start-youth-control-width: 620px; width: min(100%, 900px); min-width: 0; box-sizing: border-box; justify-self: start; }
.start-youth-content { display: grid; grid-template-columns: minmax(0, 1fr) 266px; align-items: stretch; gap: 18px; }
.start-youth-portrait-picker { display: grid; grid-column: 2; grid-row: 1; align-content: space-between; justify-items: stretch; gap: 10px; min-width: 0; }
.start-youth-portrait-stage { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; width: 100%; isolation: isolate; }
.start-youth-portrait-picker img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; object-position: center; border: 1px solid rgba(105, 196, 176, 0.58); border-radius: 12px 16px 12px 16px; background: rgba(11, 23, 19, 0.92); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); }
.start-youth-portrait-arrow { position: relative; z-index: 2; display: grid; width: 44px; height: 54px; place-items: center; padding: 0; transform: none; border: 0; border-radius: 0; background: transparent; color: rgba(195, 230, 106, 0.92); box-shadow: none; opacity: 0.72; cursor: pointer; transition: opacity 0.16s ease, transform 0.16s ease; }
.start-youth-portrait-arrow span { font-size: 42px; font-weight: 750; line-height: 1; }
.start-youth-portrait-arrow-previous { left: 4px; }
.start-youth-portrait-arrow-next { right: 4px; }
.start-youth-portrait-arrow:hover { transform: scale(1.04); opacity: 1; }
.start-youth-portrait-arrow:active { transform: scale(0.96); }
.start-youth-portrait-arrow:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .start-youth-portrait-arrow { transition: none; } }
.start-youth-random-button, .start-youth-back-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-color: rgba(105, 196, 176, 0.54); background: linear-gradient(180deg, rgba(31, 61, 52, 0.98), rgba(17, 39, 33, 0.98)); color: var(--ink); box-shadow: 0 3px 0 rgba(5, 17, 13, 0.74), 0 8px 16px rgba(0, 0, 0, 0.2); transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease; }
.start-youth-random-button { grid-column: 2; grid-row: 2; box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; margin-top: 6px; padding-inline: 4px; font-size: var(--fm-font-control); line-height: 1.1; }
.start-youth-portrait-stage > img { box-sizing: border-box; }
.start-youth-random-button:hover, .start-youth-back-button:hover { transform: translateY(-1px); border-color: var(--cyan); background: linear-gradient(180deg, rgba(38, 75, 64, 0.98), rgba(20, 47, 39, 0.98)); box-shadow: 0 5px 0 rgba(5, 17, 13, 0.74), 0 11px 20px rgba(0, 0, 0, 0.25); }
.start-youth-random-button:active, .start-youth-back-button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(5, 17, 13, 0.82), 0 3px 7px rgba(0, 0, 0, 0.18); }
.start-youth-random-button:focus-visible, .start-youth-back-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.start-youth-button-icon { display: inline-grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border: 1px solid rgba(105, 196, 176, 0.36); border-radius: 50%; color: var(--cyan); font-size: calc(0.95rem - 3px); line-height: 1; }
.start-youth-fields { display: grid; grid-column: 1; grid-row: 1; width: min(100%, var(--start-youth-control-width)); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.start-youth-fields select, .start-youth-fields input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid rgba(105, 196, 176, 0.3); border-radius: 9px; background: linear-gradient(180deg, rgba(7, 18, 14, 0.96), rgba(13, 29, 23, 0.96)); color: var(--ink); font: inherit; font-size: calc(1rem - 3px); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035); transition: border-color 0.14s ease, box-shadow 0.14s ease; }
.start-youth-fields select:focus-visible, .start-youth-fields input:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.24); outline-offset: 2px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(195, 230, 106, 0.08); }
.start-youth-fields .start-form-error { grid-column: 1 / -1; }
.start-youth-actions { align-items: center; justify-content: flex-start; margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(105, 196, 176, 0.2); }
.start-youth-actions .control-button { min-height: 42px; width: 240px; flex: 0 1 240px; }
.start-youth-actions .control-primary { box-shadow: 0 3px 0 rgba(105, 144, 39, 0.84), 0 8px 16px rgba(0, 0, 0, 0.22); transition: transform 0.14s ease, box-shadow 0.14s ease; }
.start-youth-actions .control-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(105, 144, 39, 0.84), 0 11px 20px rgba(0, 0, 0, 0.26); }
.start-youth-actions .control-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(105, 144, 39, 0.9), 0 3px 7px rgba(0, 0, 0, 0.18); }

.editor-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid rgba(105, 196, 176, 0.3); border-radius: 16px; background: rgba(105, 196, 176, 0.07); }
.editor-intro h3 { margin: 0 0 5px; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.editor-intro p { max-width: 690px; margin: 0; color: var(--muted); font-size: var(--fm-font-label); }
.editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.editor-status { min-height: 20px; margin: 10px 2px; color: var(--cyan); font-size: var(--fm-font-label); }
.editor-status-error { color: var(--red); }
.editor-save-state { margin: -4px 2px 10px; color: var(--muted); font-size: var(--fm-font-label); }
.editor-save-state.is-dirty { color: var(--gold); font-weight: 850; }
.editor-lock-warning { color: var(--gold); }
.editor-layout { display: grid; gap: 14px; }
.editor-team-card, .editor-form { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(26, 42, 37, 0.78); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12); }
.editor-team-card h3, .editor-form h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.editor-list-tools { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 6px; margin: 10px 0; }
.editor-search-field, .editor-filter-field { display: grid; min-width: 0; }
.editor-list-tools input, .editor-list-tools select { width: 100%; min-height: 34px; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 20, 17, 0.7); color: var(--ink); font: inherit; font-size: var(--fm-font-control); }
.editor-list-tools input:focus, .editor-list-tools select:focus { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.18); }
.editor-team-status-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; margin-right: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(243, 182, 72, 0.12); }
.editor-team-status-dot.is-ready { background: var(--lime); box-shadow: 0 0 0 2px rgba(195, 230, 106, 0.13); }
.editor-team-status-dot.is-empty { background: var(--muted); }
.editor-team-list { display: grid; gap: 6px; max-height: 520px; margin: 0 0 12px; padding: 0; overflow-y: auto; list-style: none; }
.editor-team-item { display: flex; align-items: center; width: 100%; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.035); color: var(--ink); cursor: pointer; text-align: left; }
.editor-team-item:hover, .editor-team-item.selected { border-color: rgba(195, 230, 106, 0.62); background: rgba(195, 230, 106, 0.1); }
.editor-team-item > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.editor-team-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-data); }
.editor-team-item small { color: var(--muted); font-size: var(--fm-font-label); }
.editor-team-dot { flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid rgba(255, 248, 234, 0.7); border-radius: 50%; }
.editor-team-list-crest { flex-basis: 30px; width: 30px; height: 30px; }
.editor-wide-button { width: 100%; }
.editor-workspace { display: grid; gap: 14px; }
.editor-fields { display: grid; gap: 10px; }
.editor-fields label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.editor-fields label[hidden] { display: none; }
.editor-fields input, .editor-fields select { width: 100%; box-sizing: border-box; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 20, 17, 0.7); color: var(--ink); font: inherit; font-size: var(--fm-font-control); }
.editor-fields input[type="color"] { min-height: 36px; padding: 3px; cursor: pointer; }
.editor-fields input:focus, .editor-fields select:focus { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.18); }
.editor-fields input:disabled, .editor-fields select:disabled { cursor: not-allowed; opacity: 0.45; }
.editor-team-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-team-fields label:first-child { grid-column: 1 / -1; }
.editor-crest-control { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.editor-crest-preview { display: grid; width: 64px; height: 64px; place-items: center; overflow: hidden; border: 1px solid rgba(195, 230, 106, 0.36); border-radius: 13px 18px 13px 18px; background: rgba(10, 20, 17, 0.68); }
.editor-crest-preview.has-upload { border-color: var(--lime); }
.editor-crest-preview .team-crest-fallback { color: var(--lime); font-family: Georgia, serif; font-size: var(--fm-font-label); }
.editor-crest-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.editor-crest-fields { display: grid; gap: 7px; min-width: 0; }
.editor-crest-fields label { display: grid; gap: 5px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.editor-crest-fields input[type="file"] { width: 100%; min-width: 0; box-sizing: border-box; color: var(--muted); font: inherit; font-size: var(--fm-font-control); }
.editor-crest-fields .control-button { justify-self: start; }
.editor-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.editor-readiness { margin: 12px 0 0; padding: 9px 10px; border-radius: 9px; background: rgba(243, 182, 72, 0.1); color: var(--gold); font-size: var(--fm-font-label); }
.editor-readiness.ready { background: rgba(195, 230, 106, 0.1); color: var(--lime); }
.editor-readiness.warning { background: rgba(243, 182, 72, 0.1); color: var(--gold); }
.editor-roster-editor { display: grid; gap: 13px; }
.editor-subheading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 3px; }
.editor-subheading h4 { margin: 0; color: var(--ink); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; }
.editor-player-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 390px; overflow-y: auto; }
.editor-player-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.035); color: var(--ink); cursor: pointer; text-align: left; }
.editor-player-item:hover, .editor-player-item.selected { border-color: rgba(195, 230, 106, 0.62); background: rgba(195, 230, 106, 0.1); }
.editor-player-number { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 7px; color: #20182a; font-size: var(--fm-font-label); font-weight: 900; }
.editor-player-main { display: grid; min-width: 0; flex: 1; gap: 2px; }
.editor-player-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fm-font-data); }
.editor-player-main small, .editor-player-age { color: var(--muted); font-size: var(--fm-font-label); }
.editor-player-main .overall-mark { color: var(--stat-overall); font-size: var(--fm-font-label); }
.editor-player-main .overall-mark > b { color: inherit; }
.editor-player-age { margin-left: 4px; }
.editor-player-age::before { content: "· "; }
.editor-player-age { white-space: nowrap; }
.editor-empty { margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: var(--fm-font-label); }
.editor-player-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-checkbox { display: flex !important; align-items: center; align-self: end; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.editor-checkbox input { width: auto; min-height: auto; accent-color: var(--lime); }
.editor-team-placeholder { grid-column: 1 / -1; align-items: flex-start; align-self: stretch; gap: 8px; min-height: auto; padding: 10px 9px; }
.editor-team-placeholder > span { display: grid; gap: 2px; }
.editor-team-placeholder strong { font-size: var(--fm-font-data); }
.editor-team-placeholder small { color: var(--muted); font-size: var(--fm-font-label); line-height: 1.4; }
.editor-field-help { margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.editor-future-grid { margin-top: 14px; }

.manager-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 54px; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fm-font-label); }
.manager-footer-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.manager-footer a, .footer-link { color: var(--lime); font-weight: 750; text-decoration: none; }
.footer-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; font: inherit; }
.footer-link span { display: inline-grid; width: 17px; height: 17px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: var(--fm-font-label); font-weight: 900; }
.footer-link:hover, .footer-link:focus-visible, .manager-footer a:hover, .manager-footer a:focus-visible { border-color: rgba(195, 230, 106, 0.56); background: rgba(195, 230, 106, 0.08); outline: none; }
.faq-dialog { width: min(720px, calc(100% - 24px)); height: min(780px, calc(100vh - 24px)); max-height: min(780px, calc(100vh - 24px)); overflow: hidden; padding: 0; border: 1px solid rgba(195, 230, 106, 0.48); border-radius: 18px 28px 18px 28px; background: linear-gradient(145deg, rgba(36, 58, 49, 0.99), rgba(17, 28, 25, 0.99)); color: var(--ink); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5); }
.faq-dialog::backdrop { background: rgba(6, 13, 11, 0.78); backdrop-filter: blur(5px); }
.faq-dialog-card { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; max-height: inherit; min-height: 0; overflow: hidden; padding: 18px; box-sizing: border-box; }
.faq-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.faq-dialog-header h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-panel-size); font-weight: 950; line-height: 1.1; letter-spacing: -0.02em; }
.faq-dialog-intro { max-width: 620px; margin: 7px 0 14px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.faq-dialog-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 16px; min-height: 0; height: 100%; }
.faq-topic-nav { display: grid; align-content: start; gap: 6px; min-width: 0; overflow-y: auto; padding: 2px 3px 3px 0; }
.faq-topic-button { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px 13px 9px 13px; background: rgba(255, 255, 255, 0.035); color: var(--muted); cursor: pointer; font: inherit; font-size: var(--fm-font-control); font-weight: 850; text-align: left; transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; }
.faq-topic-button:hover { border-color: rgba(195, 230, 106, 0.55); background: rgba(195, 230, 106, 0.07); color: var(--ink); transform: translateX(2px); }
.faq-topic-button:focus-visible { border-color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.24); outline-offset: 2px; }
.faq-topic-button.selected { border-color: var(--lime); background: linear-gradient(105deg, rgba(195, 230, 106, 0.17), rgba(105, 196, 176, 0.08)); box-shadow: inset 3px 0 0 var(--lime), 0 7px 18px rgba(0, 0, 0, 0.12); color: var(--ink); }
.faq-topic-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(105, 196, 176, 0.36); border-radius: 8px 10px 8px 10px; background: rgba(105, 196, 176, 0.1); color: var(--cyan); font-size: calc(0.92rem - 3px); line-height: 1; }
.faq-topic-button.selected .faq-topic-icon { border-color: rgba(195, 230, 106, 0.72); background: rgba(195, 230, 106, 0.15); color: var(--lime); box-shadow: 0 0 0 3px rgba(195, 230, 106, 0.07); }
.faq-topic-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faq-topic-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
.faq-topic-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(137, 164, 153, 0.26); }
.faq-topic-heading .eyebrow { margin: 0 0 2px; }
.faq-topic-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.faq-list { display: grid; align-content: start; gap: 7px; min-height: 0; height: 100%; max-height: none; overflow-y: auto; padding: 0 3px 2px 0; }
.faq-item { border: 1px solid var(--line); border-radius: 9px 15px 9px 15px; background: rgba(255, 255, 255, 0.035); }
.faq-item[open] { border-color: rgba(195, 230, 106, 0.48); background: rgba(195, 230, 106, 0.08); }
.faq-item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--lime); font-size: calc(1.05rem - 3px); font-weight: 850; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary strong { min-width: 0; font-size: var(--fm-font-label); line-height: 1.25; }
.faq-item-answer { margin: 0; padding: 0 38px 12px 12px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.55; }

@media (max-width: 699px) {
  .start-view-controls { width: 100%; }
  .stadium-price-control-heading { flex-wrap: wrap; }
  .stadium-price-stepper-button { width: 44px; height: 44px; }
  .stadium-matchday-dialog { max-height: min(680px, calc(100dvh - 24px)); padding: 13px; }
  .stadium-matchday-table { min-width: 650px; }
  .stadium-block-slide { padding: 11px; }
  .stadium-block-slide-close, .stadium-block-navigation-button { width: 44px; height: 44px; }
  .stadium-block-navigation-current { font-size: var(--fm-font-label); }
  .stadium-capacity-heading { align-items: flex-start; }
  .stadium-capacity-heading > strong { font-size: calc(1rem - 3px); }
  .stadium-plan-layout { grid-template-columns: 1fr; }
  .finance-panel-heading { align-items: flex-start; }
  .finance-overview-alert { align-items: stretch; flex-direction: column; }
  .finance-overview-alert .control-button { width: 100%; }
  .transfer-market-toolbar { grid-template-columns: 1fr; gap: 8px; }
  .transfer-market-filter-tools { grid-template-columns: 1fr; width: 100%; max-width: none; justify-self: stretch; }
  .transfer-market-position-filter { grid-column: 1; grid-row: 1; justify-content: flex-start; gap: 5px; }
  .transfer-market-range-switcher { grid-column: 1; grid-row: 2; }
  .transfer-market-range-panels { grid-column: 1; grid-row: 3; }
  .transfer-market-position-button { flex-basis: 40px; width: 40px; min-width: 40px; height: 40px; padding: 5px; }
  .transfer-market-range-button { flex: 0 0 96px; width: 96px; min-width: 96px; min-height: 36px; padding-inline: 7px; }
  .transfer-market-overview-table { min-width: 0; }
  .transfer-market-overview-table th, .transfer-market-overview-table td { padding-inline: 2px; }
  .transfer-market-overview-table th { overflow: hidden; font-size: calc(var(--fm-font-data) - 2px); letter-spacing: 0.04em; line-height: 1.1; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .transfer-market-overview-table .contract-sort-button { min-width: 0; overflow: hidden; padding-inline: 1px; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  .transfer-market-overview-table td { font-size: var(--fm-font-data); white-space: normal; overflow-wrap: normal; }

  .transfer-market-overview-table .contract-overall { justify-content: center; gap: 1px; padding-inline: 1px; white-space: normal; }
  .transfer-market-overview-table .contract-overall .overall-mark-current { font-size: var(--fm-font-data); }
  .transfer-market-overview-table .contract-player-link strong { font-size: var(--fm-font-data); }
  .transfer-market-overview-table .contract-player-status { font-size: var(--fm-font-data); }
  .transfer-market-overview-table .contract-action-button { width: 100%; min-width: 0; padding: 3px 1px; font-size: var(--fm-font-control); line-height: 1.15; white-space: normal; overflow-wrap: normal; }
  .player-profile-dialog:not(.leave-game-dialog):not(.contract-release-dialog):not(.contract-action-notice-dialog):not(.contract-offer-confirmation-dialog):not(.transfer-offer-acceptance-dialog):not(.contract-renewal-dialog) { height: min(780px, calc(100vh - 24px)); height: min(780px, calc(100dvh - 24px)); padding: 14px; }
  .profile-contract-slide { width: 100%; }
  .profile-contract-slide.is-renewal-overview { width: 100%; }
  .profile-contract-comparison { width: 100%; margin-inline: 0; }
  .profile-contract-comparison-head, .profile-contract-comparison-grid { grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); }
  .profile-contract-comparison-head > span { padding-inline: 6px; font-size: var(--fm-font-label); }
  .profile-contract-comparison-head > span:not(:first-child) { font-size: var(--fm-font-label); }
  .profile-contract-labels > span, .profile-contract-value-row { padding-inline: 6px; }
  .profile-contract-header-label, .profile-contract-metric-label { gap: 5px; }
  .profile-contract-value { font-size: var(--fm-font-label); }
  .profile-contract-term-row { gap: 4px; }
  .profile-contract-term-control { width: 100%; }
  .contract-term-options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .contract-term-option { min-width: 0; font-size: var(--fm-font-label); }
  .contract-term-unit { grid-column: 1 / -1; }
  .faq-dialog-card { padding: 14px; }
  .faq-dialog-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
  .faq-topic-nav { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 4px; scrollbar-width: thin; }
  .faq-topic-button { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 36px; gap: 6px; padding: 5px 8px; }
  .faq-topic-button:hover { transform: translateY(-1px); }
  .faq-topic-icon { width: 23px; height: 23px; border-radius: 6px 8px 6px 8px; font-size: var(--fm-font-text); }
  .faq-topic-panel { min-height: 0; }
  .faq-topic-heading { margin-bottom: 7px; padding-bottom: 7px; }
}

@media (max-width: 700px) {
  .player-profile-heading { grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto auto; align-items: stretch; gap: 8px; }
  .player-profile-avatar-column { grid-column: 1; grid-row: 1; }
  .player-profile-heading .profile-avatar { width: 100px; min-height: 100px; }
  .player-profile-identity { grid-column: 1 / -1; grid-row: 2; }
  .player-profile-heading-divider { display: none; }
  .player-profile-header-summary { grid-column: 2; grid-row: 1; justify-self: stretch; width: 100%; min-height: 0; }
}

@media (min-width: 700px) {
  .manager-header, .manager-shell, .manager-footer { width: min(1180px, calc(100% - 64px)); }
  .manager-navigation-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .manager-main-nav { position: sticky; top: 14px; }
  .lineup-studio { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); grid-template-areas: "field roster" "rating roster"; }
  .editor-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; }
  .match-live-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .match-live-grid.ticker-only { grid-template-columns: 1fr; }
  .match-live-grid:not(.ticker-only) .match-side {
    grid-template-rows: minmax(320px, 1.35fr) minmax(244px, 0.8fr);
  }
  .live-field-column > .match-controls { align-self: start; }
  .tactics-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) and (max-width: 900px) {
  .lineup-studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "field" "rating" "roster"; }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .tactics-layout { grid-template-columns: minmax(0, 1fr); }
  .contracts-overview-table { table-layout: auto; }
  .contracts-overview-table th, .contracts-overview-table td { padding-inline: 2px; font-size: var(--fm-font-data); }
  .contracts-overview-table th { font-size: calc(var(--fm-font-data) - 2px); }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(1), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(1) { width: 6%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(2), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(2) { width: max-content; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(3), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(3) { width: 9%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(4), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(4) { width: 4%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(5), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(5) { width: 5%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(5), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(5) { width: 9%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(6), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(6) { width: 7%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(7), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(7) { width: 12%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(8), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(8) { width: 10%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(9), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(9) { width: 6%; }
  .contracts-overview-table:not(.transfer-market-overview-table) th:nth-child(10), .contracts-overview-table:not(.transfer-market-overview-table) td:nth-child(10) { width: 10%; }
  .transfer-market-overview-table th:nth-child(1), .transfer-market-overview-table td:nth-child(1) { width: 6%; }
  .transfer-market-overview-table th:nth-child(2), .transfer-market-overview-table td:nth-child(2) { width: max-content; }
  .transfer-market-overview-table th:nth-child(3), .transfer-market-overview-table td:nth-child(3) { width: 9%; }
  .transfer-market-overview-table th:nth-child(4), .transfer-market-overview-table td:nth-child(4) { width: 4%; }
  .transfer-market-overview-table th:nth-child(5), .transfer-market-overview-table td:nth-child(5) { width: 5%; }
  .transfer-market-overview-table th:nth-child(6), .transfer-market-overview-table td:nth-child(6) { width: 9%; }
  .transfer-market-overview-table th:nth-child(7), .transfer-market-overview-table td:nth-child(7) { width: 7%; }
  .transfer-market-overview-table th:nth-child(8), .transfer-market-overview-table td:nth-child(8) { width: 12%; }
  .transfer-market-overview-table th:nth-child(9), .transfer-market-overview-table td:nth-child(9) { width: 10%; }
  .transfer-market-overview-table th:nth-child(10), .transfer-market-overview-table td:nth-child(10) { width: 6%; }
  .transfer-market-overview-table th:nth-child(11), .transfer-market-overview-table td:nth-child(11) { width: 10%; }
  .contracts-overview-table .contract-overall-cell { min-width: 0; }
  .contracts-overview-table .contract-player-link { padding-inline: 1px; }
  .contracts-overview-table .contract-player-link strong { font-size: var(--fm-font-data); }
  .player-name-column-measure { font-size: var(--fm-font-label); }
  .contracts-overview-table .contract-player-status { font-size: var(--fm-font-data); }

  .contracts-overview-table .contract-overall { gap: 2px; padding-inline: 2px; }
  .contracts-overview-table .contract-overall > b { font-size: var(--fm-font-data); }
  .contracts-overview-table .contract-money-cell { font-size: var(--fm-font-data); }
  .contracts-overview-table .contract-action-button { width: 100%; min-width: 0; padding-inline: 2px; font-size: var(--fm-font-control); }
}

@media (max-width: 900px) {
  .manager-header { flex-wrap: wrap; }
  .manager-brand { flex: 1 1 auto; }
  .manager-header-tools { order: 2; margin-left: auto; }
}

@media (max-width: 760px) {
  .logo-ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wordmark-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-setup { padding-inline: 20px; }
}

@media (max-width: 520px) {
  .roster-card { grid-template-columns: minmax(0, 1fr) 56px; grid-template-rows: minmax(38px, auto) var(--roster-card-row-height); row-gap: 6px; }
  .roster-column-primary { grid-column: 1; grid-row: 1; }
  .roster-column-meta { grid-column: 2; grid-row: 1; }
  .roster-meter-group { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); column-gap: 6px; padding-top: 6px; padding-left: 0; border-top: 1px solid rgba(244, 241, 233, 0.18); border-left: 0; }
  .roster-meter { width: 100%; min-width: 0; max-width: none; }
  .editor-list-tools { grid-template-columns: 1fr; }
  .manager-header { min-height: 60px; flex-wrap: wrap; }
  .dashboard-team-context { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; min-height: 88px; padding: 0; }
  .mailbox-label { display: none; }
  .mailbox-toggle { min-width: 38px; justify-content: center; padding-inline: 7px; }
  .mailbox-panel { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; min-width: 0; height: calc(100dvh - 80px); min-height: 0; max-width: none; max-height: calc(100dvh - 80px); resize: none; }
  .mailbox-panel-body { grid-template-columns: 1fr; overflow-y: auto; }
  .mailbox-message-list { max-height: 170px; }
  .mailbox-message-detail { min-height: 170px; }
  .mailbox-development-compact-entry { align-items: flex-start; flex-direction: column; gap: 2px; }
  .mailbox-development-compact-entry strong { overflow: visible; white-space: normal; }
  .club-transfer-contract-takeover-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mailbox-detail-actions button { min-height: 32px; }
  .profile-contract-offer-controls { padding-inline: 8px; }
  .contract-renewal-dialog { padding: 16px; }
  .contract-renewal-heading { gap: 10px; }
  .contract-renewal-comparison { gap: 7px; }
  .contract-renewal-value-card { padding: 7px; }
  .contract-renewal-value-card .profile-contract-value-row { padding-inline: 4px; }
  .contract-renewal-value-card .profile-contract-value { font-size: var(--fm-font-label); }
  .profile-contract-offer-controls-heading { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .profile-contract-offer-heading-action { width: 100%; justify-content: stretch; }
  .profile-contract-offer-heading-action .profile-contract-offer-term.club-transfer-offer-term { justify-content: stretch; }
  .profile-contract-offer-heading-action .club-offer-fee-summary, .profile-contract-offer-heading-action .profile-contract-offer-actions { flex: 1 1 0; }
  .profile-contract-offer-term { grid-template-columns: 1fr; gap: 5px; }
  .renewal-offer-term { grid-template-columns: 1fr; }
  .renewal-offer-term .profile-contract-term-control { width: 100%; }
  .renewal-offer-term .profile-contract-offer-review-actions { margin-left: 0; }
  .transfer-offer-inputs { grid-template-columns: 1fr; }
  .profile-contract-offer-actions { justify-content: stretch; }
  .profile-contract-offer-actions .control-button { flex: 1 1 auto; }
  .contract-offer-confirmation-dialog { padding: 16px; }
  .contract-offer-confirmation-summary { grid-template-columns: 1fr; }
  .contract-offer-confirmation-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-offer-confirmation-actions .control-button { width: 100%; }
  .transfer-offer-acceptance-dialog { padding: 16px; }
  .transfer-offer-acceptance-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transfer-offer-acceptance-actions .control-button { width: 100%; }
  .profile-contract-actions { padding-inline: 8px; }
  .profile-contract-actions-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .profile-contract-action-list { display: grid; grid-template-columns: minmax(0, 1fr); }
  .profile-transfer-listing-form-grid { grid-template-columns: 1fr; }
  .profile-transfer-listing-form-actions { justify-content: stretch; }
  .profile-transfer-listing-form-actions .control-button { flex: 1 1 140px; }
  .profile-transfer-listing-card-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .profile-transfer-listing-card-heading span { text-align: left; }
  .manager-team-context-crest { flex-basis: 32px; width: 32px; height: 32px; }
  .manager-team-context-copy strong { font-size: var(--fm-font-data); }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
  .brand-wordmark-image { width: 180px; }
  .manager-brand-compact .brand-wordmark-image { width: 166px; }
  .brand-region { font-size: var(--fm-font-label); letter-spacing: -0.04em; }
  .manager-brand strong { font-size: calc(1rem - 3px); }
  .manager-brand-compact .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.06em; }
  .manager-brand-compact strong { font-size: calc(1.18rem - 3px); }
  .manager-brand .brand-wordmark.wordmark-variant-inline-sport .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.08em; }
  .manager-brand .brand-wordmark.wordmark-variant-inline-sport strong { font-size: calc(1.06rem - 3px); }
  .manager-brand-compact .brand-wordmark.wordmark-variant-inline-sport .brand-region { font-size: var(--fm-font-label); letter-spacing: 0.08em; }
  .manager-brand-compact .brand-wordmark.wordmark-variant-inline-sport strong { font-size: calc(1.18rem - 3px); }
  .manager-main-nav { display: flex; align-items: stretch; gap: 7px; margin-bottom: 1px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .manager-main-divider { flex: 0 0 1px; width: 1px; min-height: 76px; margin: 0 1px; background: rgba(244, 241, 233, 0.18); }
  .manager-main-tile { flex: 0 0 190px; min-height: 76px; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .manager-main-visual, .manager-main-portrait-trigger { width: 60px; height: 56px; }
  .manager-main-copy strong { font-size: 15px; }
  .manager-tabs { gap: 5px; margin-inline: -5px; padding-inline: 5px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: thin; }
  .manager-tab-list { display: flex; flex: 0 0 auto; flex-wrap: nowrap; }
  .manager-tab { flex: 0 0 132px; width: 132px; }
  .league-browser-controls { grid-template-columns: 1fr; }
  .league-level-buttons { grid-column: auto; }
  .league-group-control, .league-matchday-control { width: 100%; max-width: none; justify-self: stretch; }
  #league-level-buttons .league-level-button { flex-basis: calc(50% - 4px); min-height: 42px; }
  #league-level-buttons .league-banner-button { min-height: 70px; }
  .league-stat-filter-row { grid-template-columns: 1fr; align-items: start; gap: 4px; }
  .league-stat-filter-list { width: 100%; }
  .league-stat-filter-select { max-width: none; }
  .league-stat-filter-button { flex: 1 1 auto; }
  .league-stat-level-list .league-level-button { flex: 1 1 calc(50% - 5px); width: auto; min-width: 0; }
  .league-stat-period-button, .league-stat-metric-button { flex: 1 1 calc(50% - 5px); width: auto; min-width: 0; }
  .league-stat-period-button { min-width: 0; }
  .dashboard-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, auto); }
  .dashboard-card { padding: 11px 12px; }
  .dashboard-match-block-content .dashboard-fixture-pairing { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 7px; }
  .dashboard-fixture-team-crest { flex-basis: 32px; width: 32px; height: 32px; }
  .dashboard-fixture-team strong { font-size: var(--fm-font-data); }
  .dashboard-fixture-team .fixture-team-meta { gap: 4px; font-size: var(--fm-font-label); }
  .dashboard-fixture-team .dashboard-fixture-overall-bar { flex-basis: 94px; width: min(100%, 94px); min-width: 64px; height: 15px; }
  .dashboard-fixture-team .dashboard-fixture-overall-bar .team-rating-stat-code { min-width: 23px; font-size: var(--fm-font-label); }
  .dashboard-fixture-team .dashboard-fixture-overall-bar .profile-rating-value, .dashboard-fixture-team .dashboard-fixture-overall-bar .team-rating-bar-copy > b { font-size: var(--fm-font-label); }
  .dashboard-fixture-score strong { font-size: calc(1.4rem - 3px); }
  .dashboard-team-context .manager-team-context-crest { width: 88px; height: 88px; }
  .dashboard-team-action-row .dashboard-primary-action { font-size: 15px; }
  .field-player-hit-goalkeeper[data-field-edge="left"] { transform: translate(0, -50%); }
  .field-player-hit-goalkeeper[data-field-edge="right"] { transform: translate(-100%, -50%); }
  .movement-zone-toolbar { grid-template-columns: 1fr; gap: 7px; min-height: 102px; padding: 6px 12px 12px; }
  .movement-zone-key { min-width: 0; }
  .movement-direction-control input { width: 48px; }
  .movement-radius-handle { min-height: 38px; padding-inline: 6px; }
  .movement-radius-grip { flex-basis: 25px; width: 25px; height: 30px; }
  #match-canvas, #live-match-canvas { aspect-ratio: 1.54 / 1; }
  .scoreboard { padding: 11px 8px; }
  .team-headline strong { max-width: 90px; font-size: var(--fm-font-data); }
  .team-dot { flex-basis: 29px; width: 29px; height: 29px; font-size: var(--fm-font-label); }
  .team-headline .team-headline-meta { gap: 4px; font-size: var(--fm-font-label); }
  .score-block { min-width: 72px; }
  .score-block strong { font-size: calc(1.45rem - 3px); }
  .match-live-grid.ticker-only .match-side { grid-template-columns: 1fr; }
   .match-event-banner { top: 8px; max-width: min(calc(100% - 16px), 420px); gap: 6px; padding: 7px 9px; }
   .match-event-copy small { white-space: normal; }
   .match-event-timeline { gap: 4px; }
   .match-event-timeline::before { top: 34px; }
   .match-event-timeline-labels, .match-event-timeline-event { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); column-gap: 5px; }
   .match-event-timeline-crest { flex-basis: 27px; width: 27px; height: 27px; }
   .match-event-timeline-kickoff { min-height: 40px; padding-bottom: 7px; }
   .match-event-timeline-kickoff-card { min-width: 82px; gap: 5px; padding: 4px 7px; }
   .match-event-timeline-kickoff-icon { flex-basis: 17px; width: 17px; height: 17px; }
   .match-event-timeline-kickoff-copy small { font-size: var(--fm-font-label); }
   .match-event-timeline-kickoff-copy strong { font-size: var(--fm-font-label); }
   .match-highlight-item { max-width: 100%; padding-inline: 5px; font-size: var(--fm-font-label); }
   .match-event-timeline-point { min-height: 25px; }
   .match-event-timeline-point::before { width: 7px; height: 7px; }
   .tactic-range-shell { --tactic-range-side-padding: 7px; padding-bottom: 8px; }
  .match-controls { align-items: stretch; }
  .speed-controls { width: 100%; margin-left: 0; }
  .speed-controls > span { margin-right: auto; }
  .editor-intro { align-items: stretch; flex-direction: column; }
  .editor-actions { justify-content: stretch; }
  .editor-actions .control-button { flex: 1 1 30%; }
  .editor-team-fields, .editor-player-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-team-fields label:first-child { grid-column: 1 / -1; }
  .editor-crest-control { grid-template-columns: 1fr; }
  .editor-crest-preview { width: 58px; height: 58px; }
  .editor-player-list { grid-template-columns: 1fr; }
  .editor-form-actions .control-button { flex: 1 1 45%; }
  .profile-current-layout { grid-template-columns: 1fr; grid-template-rows: repeat(4, auto); }
  .profile-current-column-main .profile-stats-section, .profile-current-column-side .profile-condition-section, .profile-current-column-side .profile-development-section { grid-column: 1; grid-row: auto; }
  .profile-status-meters { grid-template-columns: 1fr; }
  .profile-development-title-row { gap: 6px; }
  .profile-development-heading-meta { gap: 4px; }
  .profile-stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 9px; }
  .profile-main-tabs { overflow-x: auto; }
  .profile-main-tab { flex: 0 0 auto; min-width: 92px; }
  .profile-statistics-comparison th, .profile-statistics-comparison td { padding: 4px 5px; font-size: var(--fm-font-label); }
  .profile-statistics-comparison { min-width: 0; }
  .profile-statistics-comparison thead th { font-size: calc(var(--fm-font-label) - 2px); }
  .profile-statistics-comparison thead th:first-child { width: 50%; }
  .profile-statistics-comparison-label { gap: 4px; }
  .profile-statistics-comparison-label > span:last-child { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .profile-statistics-comparison-icon { flex-basis: 18px; width: 18px; height: 18px; font-size: var(--fm-font-label); }
  .profile-statistics-comparison-value strong { min-height: 24px; font-size: max(13px, var(--fm-font-label)); }
  .profile-statistics-comparison-value.stat-duels strong { font-size: max(13px, var(--fm-font-label)); }
  .player-statistics-list { grid-template-columns: 1fr; }
  .player-statistics-entry { grid-template-columns: 30px minmax(0, 1fr) minmax(82px, auto); gap: 4px 7px; padding-inline: 8px; }
  .player-statistics-player-heading { gap: 6px; }
  .player-statistics-portrait { flex-basis: 32px; width: 32px; height: 32px; }
  .player-statistics-name-line { gap: 4px; }

  .player-statistics-player strong { font-size: var(--fm-font-data); }
  .player-statistics-player small { font-size: var(--fm-font-label); }
  .player-statistics-value { grid-column: 3; grid-row: 1; align-self: center; }
  .player-statistics-value strong { font-size: calc(0.98rem - 3px); }
  .player-statistics-value-icon { font-size: var(--fm-font-label); }
  .player-statistics-progress { width: 70px; }
  .squad-table { min-width: max-content; table-layout: auto; }
  .contracts-overview-table:not(.transfer-market-overview-table) { min-width: max-content; table-layout: auto; }
  .fixture-card { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) 30px; gap: 5px; padding-inline: 7px; }
  .fixture-actions { min-width: 30px; }
  .fixture-team-link { gap: 5px; }
  .fixture-crest { flex-basis: 25px; width: 25px; height: 25px; }
  .fixture-team-name { font-size: var(--fm-font-label); }
  .fixture-team-name-row { gap: 4px; }
  .fixture-team-name-row .fixture-team-overall { font-size: var(--fm-font-label); }
  .fixture-team-meta { gap: 5px; font-size: var(--fm-font-label); }
  .fixture-score { min-width: 40px; font-size: calc(0.92rem - 3px); }
  .fixture-report-card { padding: 13px; }
  .fixture-report-score { gap: 7px; padding: 11px 9px; }
  .fixture-report-score strong { font-size: calc(1.35rem - 3px); }
  .team-dashboard-overlay { padding: 12px; }
  .team-dashboard-dialog { height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); padding: 13px; }
  .team-dashboard-identity { grid-template-columns: auto minmax(0, 1fr); }
  .team-dashboard-summary-metrics { gap: 5px; }
  .team-dashboard-summary-metrics > span { padding-right: 0; }
  .team-dashboard-summary-metrics small { font-size: var(--fm-font-label); }
  .team-dashboard-summary-metrics strong { font-size: var(--fm-font-data); }
  .team-dashboard-player-list { grid-template-columns: 1fr; }
  .team-crest.team-dashboard-crest { width: 54px; height: 60px; flex-basis: 54px; }
  .team-dashboard-identity { padding: 12px; gap: 8px; }
  .team-dashboard-tab { min-height: 44px; }
  .team-dashboard-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team-dashboard-summary-metrics > span:last-child { border-left: 0; padding-left: 0; }
  .team-dashboard-table-card table { min-width: 570px; }
  .league-table-section .table-card { height: auto; }
  .league-table-section table { min-width: 660px; table-layout: auto; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .start-setup { padding: 0 20px 24px; }
  .start-manager-panel { width: 100%; }
  .start-manager-portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .start-team-heading { align-items: flex-start; flex-direction: column; }
  .start-team-picker-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .start-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-team-card { grid-template-columns: minmax(0, 1fr); min-height: 64px; }
  .start-team-select { grid-template-columns: 54px minmax(0, 1fr); gap: 6px; min-height: 64px; padding: 6px; }
  .start-team-crest { width: 50px; height: 50px; padding: 0; font-size: var(--fm-font-label); }
  .start-team-card-heading strong { font-size: var(--fm-font-data); }
  .start-team-filters { width: 100%; grid-template-columns: 1fr; }
  .start-team-group-field { width: 100%; }
  .start-team-group-buttons { width: min(100%, 320px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .start-team-actions { align-items: stretch; flex-wrap: wrap; }
  .start-youth-actions { align-items: stretch; flex-wrap: wrap; }
  .start-youth-actions .control-button { flex: 1 1 180px; }
  .start-youth-panel { width: 100%; }
  .start-youth-content { grid-template-columns: minmax(0, 1fr) 216px; align-items: start; gap: 12px; }
  .start-youth-portrait-picker { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; align-content: start; justify-items: stretch; align-items: start; gap: 8px; }
  .start-youth-random-button { font-size: var(--fm-font-control); }
  .start-youth-fields { grid-column: 1 / -1; grid-row: 2; }
  .start-youth-fields { grid-template-columns: 1fr; }
  .logo-ideas-page { padding-top: 22px; }
  .logo-ideas-intro { display: block; }
  .logo-choice-status { display: inline-flex; margin-top: 12px; }
  .logo-ideas-grid { grid-template-columns: 1fr; }
  .wordmark-options-grid { grid-template-columns: 1fr; }
  .logo-option-stage { min-height: 170px; }
  .logo-option-description { min-height: 0; }
  .manager-footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .start-team-grid { grid-template-columns: 1fr; }
  .start-team-copy { gap: 3px; }
}

@media (max-width: 360px) {
  body { min-width: 0; }
  .dashboard-fixture-pairing, .dashboard-match-block-content .dashboard-fixture-pairing { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); gap: 4px; }
  .dashboard-fixture-team { gap: 4px; }
  .dashboard-fixture-team-crest { flex-basis: 22px; width: 22px; height: 22px; }
  .dashboard-fixture-team .dashboard-fixture-overall-bar { flex-basis: 100%; width: 100%; min-width: 0; }
  .dashboard-fixture-team .dashboard-fixture-overall-bar .team-rating-bar-copy { gap: 1px; padding-inline: 2px; }
  .dashboard-fixture-team .dashboard-fixture-overall-bar .team-rating-stat-code { min-width: 18px; padding-inline: 0; }
  .dashboard-fixture-team .dashboard-fixture-overall-bar .profile-rating-value, .dashboard-fixture-team .dashboard-fixture-overall-bar .team-rating-bar-copy > b { font-size: var(--fm-font-label); }
  .dashboard-fixture-score strong { font-size: calc(1.2rem - 3px); }
  .player-profile-heading { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .player-profile-avatar-column { grid-column: 1; grid-row: 1; justify-content: center; }
  .player-profile-header-summary { grid-column: 1; grid-row: 2; }
  .player-profile-identity { grid-column: 1; grid-row: 3; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .match-event-banner.is-new, .field-player-hit.is-swap-target { animation: none !important; }
}

/* Balance-Labor: eigenständige, responsive Entwicklungsansicht */
.balance-lab-shell { padding-block: 28px 52px; }
.balance-lab-panel { min-width: 0; padding: 20px; border: 1px solid rgba(195, 230, 106, 0.34); border-radius: 8px 24px 8px 24px; background: linear-gradient(135deg, rgba(28, 48, 39, 0.96), rgba(16, 30, 25, 0.95)); box-shadow: var(--shadow); }
.balance-lab-panel .panel-heading { padding-top: 0; }
.balance-lab-panel .panel-heading h1 { margin: 0; color: var(--ink); font-family: inherit; font-size: var(--fm-heading-page-size); font-weight: 950; line-height: 1.08; letter-spacing: -0.035em; }
.balance-lab-intro { max-width: 720px; margin: 0 0 18px; color: var(--muted); font-size: var(--fm-font-label); }
.balance-lab-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr); align-items: start; gap: 14px; }
.balance-lab-controls, .balance-lab-results { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px 6px 14px 6px; background: rgba(26, 42, 37, 0.72); }
.balance-lab-controls { display: grid; gap: 13px; }
.balance-lab-results { position: sticky; top: 14px; }
.balance-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.balance-control-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.balance-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.balance-field-wide { grid-column: 1 / -1; }
.balance-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); font-size: var(--fm-font-label); font-weight: 850; }
.balance-field-label output { color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance-select, .balance-input { width: 100%; min-height: 37px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px 5px 8px 5px; background: rgba(8, 18, 15, 0.58); color: var(--ink); font: inherit; font-size: var(--fm-font-control); font-weight: 750; }
.balance-select:focus-visible, .balance-input:focus-visible, .balance-range:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.balance-select:disabled, .balance-input:disabled, .balance-range:disabled { cursor: not-allowed; opacity: 0.42; }
.balance-range { width: 100%; min-height: 37px; accent-color: var(--lime); cursor: pointer; }
.balance-field-help { align-self: end; margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.balance-team-fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 11px; border: 1px solid rgba(105, 196, 176, 0.28); border-radius: 10px 5px 10px 5px; background: rgba(105, 196, 176, 0.045); }
.balance-team-fieldset legend { padding: 0 5px; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.balance-team-home { border-color: rgba(243, 182, 72, 0.34); }
.balance-team-home legend { color: var(--gold); }
.balance-focus-fieldset { border-color: rgba(195, 230, 106, 0.3); }
.balance-focus-fieldset legend { color: var(--lime); }
.balance-lab-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 2px; }
.balance-lab-actions .control-primary { min-width: 176px; }
.balance-lab-status { flex: 1 1 100%; margin: 0; color: var(--muted); font-size: var(--fm-font-label); }
.balance-empty-state { margin: 0; padding: 22px 4px; color: var(--muted); font-size: var(--fm-font-label); }
.balance-team-results { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 9px; margin: 2px 0 14px; padding: 14px; border: 1px solid rgba(195, 230, 106, 0.38); border-radius: 8px 17px 8px 17px; background: linear-gradient(120deg, rgba(195, 230, 106, 0.11), rgba(105, 196, 176, 0.08)); }
.balance-team-results div { display: grid; gap: 2px; min-width: 0; }
.balance-team-results strong { overflow: hidden; color: var(--muted); font-size: var(--fm-font-data); text-overflow: ellipsis; white-space: nowrap; }
.balance-team-results span { color: var(--ink); font-size: calc(clamp(1.6rem, 5vw, 2.4rem) - 3px); font-weight: 950; letter-spacing: -0.06em; line-height: 0.95; }
.balance-team-results-away { text-align: right; }
.balance-team-results-divider { color: var(--lime); font-size: calc(1.3rem - 3px); font-weight: 950; }
.balance-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.balance-result-block, .balance-focus-block, .balance-delta-block { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px 5px 9px 5px; background: rgba(255, 255, 255, 0.025); }
.balance-result-block h3, .balance-focus-block h3, .balance-delta-block h3 { margin: 0 0 8px; color: var(--cyan); font-size: var(--fm-font-label); letter-spacing: 0.06em; text-transform: uppercase; }
.balance-metric-row { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 5px 0; border-bottom: 1px solid rgba(244, 241, 233, 0.08); color: var(--muted); font-size: var(--fm-font-label); }
.balance-metric-row:last-child { border-bottom: 0; }
.balance-metric-row b { color: var(--ink); font-size: var(--fm-font-label); text-align: right; }
.balance-metric-row small { color: var(--lime); font-size: var(--fm-font-label); }
.balance-focus-block, .balance-delta-block { margin-top: 10px; }
.balance-focus-block { border-color: rgba(195, 230, 106, 0.3); }
.balance-focus-block h3 { color: var(--lime); }
.balance-delta-block { border-color: rgba(243, 182, 72, 0.3); }
.balance-delta-block h3 { color: var(--gold); }
.balance-focus-result { margin: 0 0 4px; color: var(--ink); font-size: var(--fm-font-label); font-weight: 800; }
.balance-season-fieldset { border-color: rgba(195, 230, 106, 0.3); }
.balance-season-fieldset legend { color: var(--lime); }
.balance-stadium-fieldset { border-color: rgba(243, 182, 72, 0.34); }
.balance-stadium-fieldset legend { color: var(--gold); }
.balance-season-result { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(244, 241, 233, 0.1); }
.balance-stadium-result { display: grid; gap: 10px; }
.balance-study-block { overflow: hidden; }
.balance-study-note { margin: -2px 0 8px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.balance-study-table-wrap { width: 100%; overflow-x: auto; }
.balance-study-table { width: 100%; min-width: 560px; border-collapse: collapse; color: var(--muted); font-size: var(--fm-font-data); }
.balance-study-table th, .balance-study-table td { padding: 7px 6px; border-bottom: 1px solid rgba(244, 241, 233, 0.08); text-align: right; vertical-align: top; white-space: nowrap; }
.balance-study-table th:first-child, .balance-study-table td:first-child { text-align: left; }
.balance-study-table thead th { color: var(--cyan); font-size: calc(var(--fm-font-data) - 2px); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.balance-study-table tbody th { color: var(--ink); font-weight: 850; }
.balance-study-table tbody tr:last-child th, .balance-study-table tbody tr:last-child td { border-bottom: 0; }
.balance-study-table small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--fm-font-data); font-weight: 650; white-space: normal; }
.balance-season-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.balance-season-heading h3 { margin: 0; color: var(--lime); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; letter-spacing: 0.06em; text-transform: uppercase; }
.balance-season-heading span { color: var(--muted); font-size: var(--fm-font-label); }
.balance-signal { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px 4px 8px 4px; font-size: var(--fm-font-label); }
.balance-signal-neutral { border: 1px solid rgba(105, 196, 176, 0.25); background: rgba(105, 196, 176, 0.06); color: var(--muted); }
.balance-signal-warning { border: 1px solid rgba(239, 141, 123, 0.45); background: rgba(239, 141, 123, 0.08); color: var(--ink); }
.balance-signal strong { color: var(--red); }
.balance-signal ul { margin: 4px 0 0; padding-left: 17px; }
.balance-signal li { margin: 2px 0; }
.balance-result-footnote { margin: 11px 0 0; color: var(--muted); font-size: var(--fm-font-label); }
.balance-event-list { display: grid; gap: 7px; max-height: 230px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.balance-event-list li { padding-bottom: 6px; border-bottom: 1px solid rgba(244, 241, 233, 0.08); color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.balance-event-minute { display: inline-block; min-width: 2.3em; margin-right: 5px; color: var(--lime); font-variant-numeric: tabular-nums; font-weight: 850; }
.balance-error { margin: 0; padding: 12px; border: 1px solid rgba(239, 141, 123, 0.55); background: rgba(239, 141, 123, 0.1); color: var(--red); font-size: var(--fm-font-label); }

@media (max-width: 760px) {
  .balance-lab-shell { padding-top: 18px; }
  .balance-lab-panel { padding: 14px; }
  .balance-lab-layout { grid-template-columns: 1fr; }
  .balance-lab-results { position: static; }
  .balance-control-grid-three, .balance-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-control-grid-three .balance-field:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .balance-control-grid, .balance-control-grid-three, .balance-result-grid { grid-template-columns: 1fr; }
  .balance-control-grid-three .balance-field:last-child, .balance-field-wide { grid-column: auto; }
  .balance-lab-actions { align-items: stretch; }
  .balance-lab-actions .control-button { flex: 1 1 100%; }
  .balance-team-results { padding: 11px; }
  .balance-team-results span { font-size: calc(1.5rem - 3px); }
}

@media (max-width: 360px) {
  .field-player-hit { width: 132px; }
  .field-player-chip-name { font-size: var(--fm-font-label); }
  .player-card-content { column-gap: 4px; }
  .field-player-chip-vitals { width: 40px; min-width: 40px; gap: 2px; padding-left: 3px; }
}

/* GES-basierte Jahreskurven im Balance-Simulator */
.balance-economy-curves { margin: 0 0 16px; padding: 16px; border: 1px solid rgba(105, 196, 176, 0.34); border-radius: 14px 6px 14px 6px; background: linear-gradient(135deg, rgba(17, 36, 29, 0.94), rgba(10, 24, 20, 0.88)); }
.balance-economy-curves h2 { margin: 0; color: var(--ink); font-size: var(--fm-heading-section-size); font-weight: 950; line-height: 1.12; }
.balance-economy-intro { max-width: 760px; margin: 8px 0 14px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }
.balance-economy-layout { display: grid; grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr); align-items: start; gap: 14px; }
.balance-economy-controls { align-self: stretch; padding: 12px; }
.balance-economy-controls .balance-control-grid { gap: 8px; }
.balance-economy-controls .balance-field { gap: 2px; }
.balance-economy-controls .balance-field-label { font-size: var(--fm-font-label); }
.balance-economy-controls .balance-range { min-height: 28px; }
.balance-economy-controls .balance-input, .balance-economy-controls .balance-select { min-height: 33px; font-size: var(--fm-font-control); }
.balance-economy-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.balance-economy-presets .control-button { flex: 1 1 auto; min-height: 31px; padding: 5px 8px; font-size: var(--fm-font-control); }
.balance-economy-output { display: grid; gap: 9px; min-width: 0; }
.balance-economy-chart-wrap { min-width: 0; overflow: hidden; border: 1px solid rgba(105, 196, 176, 0.22); border-radius: 10px 5px 10px 5px; background: rgba(6, 18, 14, 0.72); }
.balance-economy-chart { display: block; width: 100%; height: auto; min-height: 240px; }
.balance-economy-chart .chart-grid { stroke: rgba(220, 234, 225, 0.11); stroke-width: 1; }
.balance-economy-chart .chart-axis { fill: #9fb2aa; font: calc(11px - 3px) system-ui, sans-serif; }
.balance-economy-chart .chart-axis-title { fill: #d5e0da; font: 700 calc(11px - 3px) system-ui, sans-serif; }
.balance-economy-chart .chart-series { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.balance-economy-chart .chart-series-total { stroke: #edf3ee; stroke-dasharray: 7 4; stroke-width: 3.5; }
.balance-economy-chart .chart-series-stadium { stroke: #c3e66a; }
.balance-economy-chart .chart-series-sponsor { stroke: #f3b648; }
.balance-economy-chart .chart-series-personnel { stroke: #69c4b0; }
.balance-economy-chart .chart-current-line { stroke: rgba(244, 241, 233, 0.64); stroke-dasharray: 4 5; stroke-width: 1.5; }
.balance-economy-chart .chart-current-dot { stroke: #10201a; stroke-width: 2; }
.balance-economy-chart .chart-current-dot-stadium { fill: #c3e66a; }
.balance-economy-chart .chart-current-dot-sponsor { fill: #f3b648; }
.balance-economy-chart .chart-current-dot-personnel { fill: #69c4b0; }
.balance-economy-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; }
.balance-economy-legend span { display: inline-flex; align-items: center; gap: 6px; }
.balance-economy-legend i { display: inline-block; width: 17px; height: 3px; border-radius: 2px; }
.economy-legend-total { background: #edf3ee; }
.economy-legend-stadium { background: #c3e66a; }
.economy-legend-sponsor { background: #f3b648; }
.economy-legend-personnel { background: #69c4b0; }
.balance-economy-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.balance-economy-kpi { min-width: 0; padding: 9px; border: 1px solid rgba(105, 196, 176, 0.2); border-radius: 8px 4px 8px 4px; background: rgba(255, 255, 255, 0.025); }
.balance-economy-kpi span { display: block; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.045em; text-transform: uppercase; }
.balance-economy-kpi strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--ink); font-size: calc(clamp(0.77rem, 1.2vw, 1rem) - 3px); font-weight: 950; font-variant-numeric: tabular-nums; }
.balance-economy-kpi.is-positive strong { color: var(--lime); }
.balance-economy-kpi.is-negative strong { color: var(--red); }
.balance-economy-breakdown { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px 10px; border: 1px solid rgba(244, 241, 233, 0.08); border-radius: 7px; color: var(--muted); font-size: var(--fm-font-label); }
.balance-economy-breakdown span { display: flex; justify-content: space-between; gap: 5px; }
.balance-economy-breakdown b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance-economy-breakdown .balance-economy-sponsor-note { grid-column: 1 / -1; }
.balance-economy-footnote { margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.45; }

@media (max-width: 1200px) {
  .balance-economy-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .balance-economy-layout { grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); }
  .balance-economy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .balance-economy-layout { grid-template-columns: 1fr; }
  .balance-economy-controls .balance-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-economy-chart { min-height: 210px; }
}

@media (max-width: 430px) {
  .balance-economy-curves { padding: 11px; }
  .balance-economy-controls .balance-control-grid { grid-template-columns: 1fr; }
  .balance-economy-presets .control-button { flex-basis: 100%; }
  .balance-economy-breakdown { grid-template-columns: 1fr; }
  .balance-economy-breakdown .balance-economy-sponsor-note { grid-column: auto; }
  .balance-economy-chart { min-height: 180px; }
  .balance-economy-legend { gap: 8px; font-size: var(--fm-font-label); }
}

/* Sponsoring */
.finance-sponsor-panel { display: grid; gap: 12px; }
.sponsor-main-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.92fr); grid-template-areas: "copy visual" "values visual" "action visual"; align-items: stretch; gap: 14px 18px; min-width: 0; padding: 18px; border: 1px solid rgba(105, 196, 176, 0.34); border-radius: 11px 20px 11px 20px; background: linear-gradient(120deg, rgba(37, 67, 55, 0.84), rgba(26, 42, 37, 0.95)); }
.sponsor-main-card.has-selected-sponsor { border-color: color-mix(in srgb, var(--sponsor-brand-accent) 38%, rgba(105, 196, 176, 0.34)); background: radial-gradient(ellipse at 14% 13%, color-mix(in srgb, var(--sponsor-brand-accent) 12%, transparent), transparent 54%), linear-gradient(120deg, rgba(37, 67, 55, 0.84), rgba(26, 42, 37, 0.95)); }
.sponsor-current-copy { display: grid; grid-area: copy; align-content: center; min-width: 0; gap: 4px; }
.sponsor-current-copy h3 { margin: 0; color: var(--ink); font-size: var(--fm-heading-card-size); font-weight: 950; line-height: 1.12; letter-spacing: -0.015em; }
.sponsor-current-copy p:last-child { margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; }
.sponsor-economy-grid { display: grid; grid-area: values; align-content: start; gap: 5px; min-width: 0; }
.sponsor-economy-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 9px; min-width: 0; padding: 9px 10px; border-bottom: 1px solid rgba(105, 196, 176, 0.2); }
.sponsor-economy-row:first-child { border-top: 1px solid rgba(105, 196, 176, 0.2); }
.sponsor-economy-icon { display: grid; grid-column: 1; grid-row: 1 / -1; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 0; color: var(--lime); font-size: var(--fm-font-label); font-weight: 950; line-height: 1; }
.sponsor-economy-copy { display: grid; grid-column: 2; grid-row: 1 / -1; min-width: 0; gap: 3px; }
.sponsor-economy-copy > span { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); font-weight: 850; letter-spacing: 0.03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.sponsor-economy-row strong { align-self: center; color: var(--lime); font-size: calc(0.92rem - 3px); font-weight: 950; justify-self: end; text-align: right; white-space: nowrap; }
.sponsor-economy-row small { color: var(--muted); font-size: var(--fm-font-label); line-height: 1.2; }
.sponsor-main-action { grid-area: action; justify-self: start; white-space: nowrap; }
.sponsor-main-action.is-locked { border-color: rgba(137, 164, 153, 0.28); background: rgba(137, 164, 153, 0.14); color: var(--muted); cursor: not-allowed; }
.sponsor-visual { position: relative; display: grid; grid-area: visual; min-height: 260px; overflow: hidden; place-items: center; border: 1px solid rgba(195, 230, 106, 0.25); border-radius: 14px 22px 14px 22px; background: radial-gradient(circle at 58% 26%, rgba(195, 230, 106, 0.16), transparent 34%), linear-gradient(145deg, rgba(12, 35, 28, 0.94), rgba(11, 24, 21, 0.72)); }
.sponsor-visual::before { position: absolute; top: -38px; right: -30px; width: 150px; height: 150px; border: 1px solid rgba(105, 196, 176, 0.25); border-radius: 50%; box-shadow: 0 0 0 18px rgba(105, 196, 176, 0.035), 0 0 0 38px rgba(105, 196, 176, 0.025); content: ""; }
.sponsor-visual-kicker { position: absolute; top: 13px; left: 15px; color: var(--lime); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.12em; }
.sponsor-current-logo { position: absolute; z-index: 4; top: 52%; left: 50%; transform: translate(-50%, -50%) perspective(240px) rotateY(-7deg) rotateZ(-2deg); display: grid; width: 42px; height: 42px; place-items: center; border: 0; background: transparent; }
.sponsor-current-logo-mark { position: relative; isolation: isolate; opacity: .9; }
.sponsor-current-logo .sponsor-current-logo-mark img { border-radius: 0; filter: saturate(.72) brightness(.88); }
.sponsor-current-logo-mark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 12%, rgba(3,20,13,.3) 30%, rgba(255,255,235,.12) 40%, transparent 48%, rgba(3,20,13,.35) 65%, transparent 84%); mask: var(--sponsor-print-mask) center / contain no-repeat; -webkit-mask: var(--sponsor-print-mask) center / contain no-repeat; }
.sponsor-logo { display: grid; width: 100%; height: 100%; place-items: center; color: var(--sponsor-color, var(--cyan)); }
.sponsor-logo > span { font-size: calc(1.45rem - 3px); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.sponsor-logo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.sponsor-unselected-mark { color: rgba(232, 239, 225, 0.55); font-size: calc(1.5rem - 3px); font-weight: 900; }
.sponsor-option { display: grid; align-content: start; min-width: 0; border: 1px solid var(--line); border-radius: 14px 20px 14px 20px; background: rgba(255, 255, 255, 0.025); transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; }
.sponsor-option:hover { border-color: rgba(105, 196, 176, 0.72); background: rgba(105, 196, 176, 0.08); transform: translateY(-2px); }
.sponsor-option.is-selected { border-color: var(--lime); background: rgba(195, 230, 106, 0.1); box-shadow: 0 0 0 3px rgba(195, 230, 106, 0.12); }
.sponsor-option-logo { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid color-mix(in srgb, var(--sponsor-color, var(--cyan)) 55%, var(--line)); border-radius: 11px 15px 11px 15px; background: rgba(10, 22, 18, 0.55); }
.sponsor-option-logo > span { font-size: calc(1.15rem - 3px); }
.sponsor-offer-card { display: grid; gap: 16px; width: 100%; min-width: 0; min-height: 0; padding: 17px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.sponsor-offer-card:hover { background: transparent; }
.sponsor-offer-card:focus-visible { outline: 2px dashed rgba(105, 196, 176, 0.9); outline-offset: -5px; }
.sponsor-option.is-selected .sponsor-offer-card { background: transparent; }
.sponsor-offer-heading, .sponsor-offer-values { display: flex; min-width: 0; }
.sponsor-offer-heading { align-items: center; gap: 11px; }
.sponsor-offer-heading-copy { display: grid; min-width: 0; gap: 4px; }
.sponsor-offer-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(1rem - 3px); line-height: 1.2; }
.sponsor-offer-tagline { overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.25; text-overflow: ellipsis; }
.sponsor-offer-values { display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 13px; border-top: 1px solid rgba(105, 196, 176, 0.26); }
.sponsor-offer-values > span { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 0; }
.sponsor-offer-values > span + span { padding-top: 10px; border-top: 1px solid rgba(105, 196, 176, 0.2); }
.sponsor-offer-values small { color: var(--muted); font-size: var(--fm-font-label); font-weight: 750; line-height: 1.2; }
.sponsor-offer-value-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; min-width: 0; }
.sponsor-offer-values strong { color: var(--lime); font-size: calc(1.05rem - 3px); line-height: 1.1; white-space: nowrap; }
.sponsor-offer-values em { color: var(--muted); font-size: var(--fm-font-label); font-style: normal; line-height: 1.2; white-space: nowrap; }

/* Ponzelaer-Begrüßung */
.header-faq-button { flex: 0 0 auto; min-width: 40px; width: auto; padding: 0 11px; border-radius: 10px; color: var(--lime); }
.header-faq-button:hover, .header-faq-button:focus-visible { border-color: var(--lime); color: var(--lime); }
.manager-header-tools .header-faq-button,
.manager-header-tools .audio-settings-toggle,
.manager-header-tools .game-menu-toggle { height: 40px; min-height: 40px; box-sizing: border-box; border-radius: 10px; }
.ponzelar-welcome-overlay { z-index: 94; }
.ponzelar-welcome-dialog { display: block !important; width: min(760px, 100%); height: auto !important; max-height: none; overflow: visible !important; padding: 24px; }
.ponzelar-welcome-toolbar { position: relative; margin-bottom: 18px; padding-bottom: 12px; }
.ponzelar-welcome-toolbar::after { position: absolute; right: auto; bottom: 0; left: 0; width: 76px; height: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--lime), rgba(195, 230, 106, 0)); content: ""; }
.ponzelar-welcome-layout { position: relative; display: grid; grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr); min-height: 400px; overflow: hidden; border-radius: 14px 22px 14px 22px; background: #13231e; }
.ponzelar-welcome-layout::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(19, 35, 30, 0.02) 0%, rgba(19, 35, 30, 0.12) 30%, rgba(19, 35, 30, 0.76) 61%, rgba(19, 35, 30, 0.98) 82%, #13231e 100%); content: ""; pointer-events: none; }
.ponzelar-welcome-figure { grid-column: 1 / -1; grid-row: 1; z-index: 0; min-width: 0; height: 100%; margin: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; }
.ponzelar-welcome-figure img { display: block; width: 64%; height: 100%; min-height: 400px; max-height: none; padding: 0; object-fit: contain; object-position: left bottom; background: transparent; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%); }
.ponzelar-welcome-copy-wrap { grid-column: 2; grid-row: 1; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 26px 20px 24px 8px; }
.ponzelar-welcome-page, .ponzelar-welcome-reminder { display: flex; flex-direction: column; align-items: flex-start; }
.ponzelar-welcome-page[hidden], .ponzelar-welcome-reminder[hidden] { display: none; }
.ponzelar-welcome-copy-wrap p { max-width: 44ch; margin: 0 0 15px; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.55; font-weight: 600; }
.ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead { color: var(--ink); font-size: calc(clamp(1rem, 2.4vw, 1.28rem) - 3px); font-weight: 600; line-height: 1.28; }



.ponzelar-welcome-sponsor-link { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); color: var(--lime); }
.ponzelar-welcome-reminder .ponzelar-welcome-lead { color: var(--lime); }
.ponzelar-event-digest[hidden] { display: none; }
.ponzelar-event-list { display: grid; gap: 8px; width: 100%; max-height: min(360px, 42dvh); overflow-y: auto; padding-right: 3px; }
.ponzelar-event-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid rgba(105, 196, 176, 0.23); border-radius: 9px 13px 9px 13px; background: linear-gradient(145deg, rgba(35, 58, 49, 0.92), rgba(18, 32, 27, 0.96)); box-shadow: 0 3px 0 rgba(7, 17, 14, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.ponzelar-event-item.ponzelar-event-item--receipt { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.ponzelar-single-cup-income .ponzelar-event-item--receipt { padding: 8px 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ponzelar-cup-receipt { min-width: 0; }
.ponzelar-cup-receipt-heading { display: flex; flex-direction: column; gap: 5px; padding: 6px 0 18px; }
.ponzelar-cup-receipt-caption { color: var(--muted); font-size: 13px; }
.ponzelar-cup-receipt-total { color: var(--lime); font-size: clamp(32px, 5vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ponzelar-cup-receipt-facts { margin: 0; font-size: 14px; }
.ponzelar-cup-receipt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.ponzelar-cup-receipt-row dt { color: var(--muted); overflow-wrap: anywhere; }
.ponzelar-cup-receipt-row dd { margin: 0; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ponzelar-cup-receipt-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ponzelar-cup-receipt-context { margin: 0; color: var(--cyan); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ponzelar-cup-receipt-action { justify-self: start; min-height: 44px; }
.ponzelar-single-cup-income .ponzelar-welcome-toolbar-actions .ponzelar-chat-continue,
.ponzelar-single-cup-income .ponzelar-welcome-toolbar-actions .ponzelar-chat-continue:hover,
.ponzelar-single-cup-income .ponzelar-welcome-toolbar-actions .ponzelar-chat-continue:focus-visible { min-height: 44px; background: linear-gradient(180deg, #e5ef9b, #bad96b); color: #12251d; }
@media (max-width: 520px) {
  .ponzelar-event-item.ponzelar-event-item--receipt { padding: 12px; }
  .ponzelar-single-cup-income .ponzelar-event-item--receipt { padding: 6px 0; }
  .ponzelar-cup-receipt-action { justify-self: stretch; }
}
.ponzelar-event-item--development { grid-template-columns: minmax(0, 1fr); align-items: start; }
.development-event-players, .development-event-changes { margin: 0; padding: 0; list-style: none; }
.development-event-players { display: grid; gap: 12px; margin-top: 8px; }
.ponzelar-event-item--development .ponzelar-event-item-title { overflow: visible; font-size: 17px; white-space: normal; }
.development-event-player { display: grid; gap: 9px; min-width: 0; padding-top: 10px; border-top: 1px solid rgba(105, 196, 176, 0.24); }
.development-event-player-heading { margin: 0; color: var(--ink); font-size: var(--fm-font-label); font-weight: 850; }
.development-event-praise { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.development-event-praise img { display: block; width: 46px; height: 54px; border: 1px solid rgba(195, 230, 106, 0.3); border-radius: 9px 13px 9px 13px; background: rgba(17, 34, 27, 0.8); object-fit: cover; object-position: center 5%; }
.development-event-praise p { max-width: 48ch; margin: 0; color: var(--ink); font-size: var(--fm-font-label); line-height: 1.45; }
.development-event-changes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 6px; }
.development-event-changes li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 7px 9px; border: 1px solid rgba(105, 196, 176, 0.2); border-radius: 8px 11px 8px 11px; background: rgba(105, 196, 176, 0.07); color: var(--ink); font-size: var(--fm-font-label); line-height: 1.35; }
.development-event-change-label { min-width: 0; }
.development-event-change-amount { flex: 0 0 auto; color: var(--lime); font-weight: 900; }
.development-event-empty { color: var(--muted) !important; }
.development-event-action { justify-self: start; width: max-content; max-width: 100%; margin-top: 1px; }
@media (max-width: 600px) {
  .ponzelar-event-item--development { grid-template-columns: minmax(0, 1fr); }
  .development-event-praise { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; }
  .development-event-praise img { width: 42px; height: 50px; }
  .development-event-changes { grid-template-columns: minmax(0, 1fr); }
  .development-event-action { justify-self: stretch; width: 100%; }
}
.ponzelar-event-item-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: rgba(195, 230, 106, 0.14); color: var(--lime); font-size: calc(0.95rem - 3px); }
.ponzelar-event-item-copy { display: grid; min-width: 0; gap: 2px; }
.ponzelar-event-item--transfer { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.ponzelar-transfer-records { display: grid; gap: 14px; min-width: 0; }
.ponzelar-transfer-kind { color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ponzelar-transfer-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .55fr) minmax(0, 1.3fr); gap: 12px; margin: 9px 0 0; }
.ponzelar-transfer-facts > div { min-width: 0; }
.ponzelar-transfer-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.ponzelar-transfer-facts dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.ponzelar-transfer-fee { color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ponzelar-transfer-link { display: inline; padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(195,230,106,.45); text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.ponzelar-transfer-link:hover { color: var(--lime); }
.ponzelar-transfer-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
.ponzelar-voice-toggle[hidden] { display: none !important; }
@media (max-width: 600px) {
  .ponzelar-event-item.ponzelar-event-item--transfer { grid-template-columns: minmax(0, 1fr); }
  .ponzelar-transfer-facts { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .ponzelar-transfer-facts > div:last-child { grid-column: 1 / -1; }
  .ponzelar-transfer-link { min-height: 44px; display: inline-flex; align-items: center; max-width: 100%; }
}
.ponzelar-event-item-category { overflow: hidden; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 900; letter-spacing: 0.08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ponzelar-event-item-title { overflow: hidden; color: var(--ink); font-size: var(--fm-font-label); font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ponzelar-event-item-summary { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ponzelar-event-item-action { min-width: 116px; padding: 7px 9px; font-size: var(--fm-font-label); white-space: nowrap; }

@media (max-width: 699px) {
  .sponsor-main-card { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "values" "action"; }
  .sponsor-visual { min-height: 230px; }
  .sponsor-main-action { justify-self: start; }
  .sponsor-economy-row { padding-inline: 7px; }
  .sponsor-offer-card { min-height: 0; padding: 16px; }
  .sponsor-offer-values { gap: 8px; }
  .sponsor-offer-values > span + span { padding-top: 8px; }
  .sponsor-offer-values small { font-size: var(--fm-font-label); }
  .sponsor-offer-values strong { font-size: calc(0.98rem - 3px); }
  .ponzelar-welcome-dialog { padding: 16px; }
  .ponzelar-welcome-layout { display: block; min-height: 0; border-radius: 12px 18px 12px 18px; background: linear-gradient(180deg, #13231e 0%, #13231e 42%, #10201b 100%); }
  .ponzelar-welcome-layout::before { background: linear-gradient(180deg, rgba(19, 35, 30, 0.02) 0%, rgba(19, 35, 30, 0.08) 31%, rgba(19, 35, 30, 0.9) 49%, #13231e 63%, #13231e 100%); }
  .ponzelar-welcome-figure { position: relative; height: 260px; }
  .ponzelar-welcome-figure img { width: 100%; height: 260px; min-height: 0; max-height: none; object-position: center bottom; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); }
  .ponzelar-welcome-copy-wrap { position: relative; z-index: 2; display: flex; padding: 0 18px 20px; }
  .ponzelar-welcome-copy-wrap p { font-size: var(--fm-font-label); }
  .ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead { font-size: calc(1rem - 3px); }
  
  .ponzelar-event-list { max-height: none; }
  .ponzelar-event-item { grid-template-columns: auto minmax(0, 1fr); }
  .ponzelar-event-item-action { grid-column: 1 / -1; width: 100%; }
}

/* Ponzelar compact chat tutorial: keep the game visible and let the message advance in place. */
.ponzelar-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  place-items: center;
  padding: 18px;
  background: rgba(5, 15, 12, 0.48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Der erste Dialog folgt der anfangs noch informationsarmen Platzierungskachel. */
.ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"] {
  place-items: center;
  padding-top: var(--ponzelar-placement-top, 18px);
  padding-left: var(--ponzelar-placement-left, 18px);
}

.ponzelar-welcome-dialog {
  display: block !important;
  width: min(680px, calc(100vw - 36px));
  height: auto !important;
  min-height: 0;
  max-height: none;
  overflow: visible !important;
  overflow-x: visible !important;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

.ponzelar-welcome-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 6px;
  padding: 0;
}

.ponzelar-welcome-toolbar > div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ponzelar-welcome-toolbar::after { display: none; }

.ponzelar-welcome-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.ponzelar-welcome-layout[hidden] { display: none; }

.ponzelar-welcome-dialog { position: relative; }
.ponzelar-welcome-confirmation {
  position: relative;
  z-index: 4;
  inset: auto;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(195, 230, 106, 0.46);
  border-radius: 14px 22px 14px 22px;
  background: linear-gradient(145deg, rgba(35, 58, 49, 0.99), rgba(17, 30, 25, 0.99));
  box-shadow: 0 8px 0 rgba(7, 17, 14, 0.64), 0 16px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ponzelar-welcome-confirmation[hidden] { display: none; }
.ponzelar-welcome-overlay[data-ponzelar-confirming="true"] .ponzelar-welcome-toolbar { display: none; }
.ponzelar-welcome-confirmation h3 { margin: 0; color: var(--ink); font-size: calc(clamp(0.92rem, 1.8vw, 1.12rem) - 3px); line-height: 1.15; }
.ponzelar-welcome-confirmation p:not(.eyebrow) { max-width: 58ch; margin: 0; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.3; }
.ponzelar-welcome-confirmation-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.ponzelar-welcome-confirmation-actions .control-button { min-width: 112px; min-height: 32px; padding: 6px 10px; font-size: var(--fm-font-control); }

.ponzelar-welcome-layout::before { display: none; }

.ponzelar-welcome-figure {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  width: 120px;
  height: 160px;
  overflow: hidden;
  border: 1px solid rgba(105, 196, 176, 0.35);
  border-radius: 22px 28px 12px 28px;
  background: linear-gradient(145deg, rgba(35, 58, 49, 0.98), rgba(17, 30, 25, 0.98));
  box-shadow: 0 8px 0 rgba(7, 17, 14, 0.64), 0 16px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ponzelar-welcome-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% bottom;
  -webkit-mask-image: none;
  mask-image: none;
}

.ponzelar-welcome-copy-wrap {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.ponzelar-welcome-page,
.ponzelar-welcome-reminder,
.ponzelar-event-digest {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  min-width: 0;
  padding: 14px 16px 12px;
  border: 1px solid rgba(105, 196, 176, 0.35);
  border-radius: 14px 22px 14px 22px;
  background: linear-gradient(145deg, rgba(35, 58, 49, 0.98), rgba(17, 30, 25, 0.98));
  box-shadow: 0 8px 0 rgba(7, 17, 14, 0.64), 0 16px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ponzelar-welcome-page::before,
.ponzelar-welcome-reminder::before,
.ponzelar-event-digest::before {
  position: absolute;
  left: -9px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 9px 8px 0;
  border-color: transparent rgba(105, 196, 176, 0.35) transparent transparent;
  content: "";
}

.ponzelar-welcome-page[hidden],
.ponzelar-welcome-reminder[hidden],
.ponzelar-event-digest[hidden] { display: none; }

.ponzelar-welcome-copy-wrap p {
  max-width: none;
  margin: 0 0 10px;
  font-size: calc(0.9rem - 3px);
  line-height: 1.4;
}

.ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead {
  font-size: calc(clamp(0.84rem, 1.5vw, 1rem) - 3px);
  line-height: 1.38;
}





/* Chatbox und Kopfaktionen bleiben eine gemeinsame, ruhige Einheit. */
.ponzelar-chat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 48px;
  border: 1px solid rgba(105, 196, 176, 0.35);
  border-radius: 14px 22px 14px 22px;
  background: linear-gradient(145deg, rgba(35, 58, 49, 0.98), rgba(17, 30, 25, 0.98));
  box-shadow: 0 8px 0 rgba(7, 17, 14, 0.64), 0 16px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ponzelar-chat-panel::before {
  position: absolute;
  z-index: 2;
  left: -9px;
  bottom: 24px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 9px 8px 0;
  border-color: transparent rgba(105, 196, 176, 0.35) transparent transparent;
  content: "";
}
.ponzelar-welcome-page,
.ponzelar-welcome-reminder,
.ponzelar-event-digest {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 14px 16px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ponzelar-welcome-page::before,
.ponzelar-welcome-reminder::before,
.ponzelar-event-digest::before { display: none; }
.ponzelar-event-digest { display: flex; flex-direction: column; }
.ponzelar-event-digest .ponzelar-event-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead {
  font-size: calc(clamp(1.05rem, 1.5vw, 1.12rem) - 3px);
  line-height: 1.3;
}


.ponzelar-welcome-dialog {
  display: flex !important;
  flex-direction: column;
  width: min(680px, calc(100vw - 36px));
  height: auto !important;
  min-height: 0;
  max-height: none;
  overflow: visible !important;
}
.ponzelar-welcome-toolbar {
  flex: 0 0 0;
  min-height: 0;
  margin: 0;
}
.ponzelar-welcome-toolbar-actions {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: 8px;
  z-index: 5;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  max-width: calc(100% - 16px);
  pointer-events: auto;
}
#start-tutorial-skip { font-size: 13px; }
.ponzelar-chat-continue {
  color: var(--lime);
}
.ponzelar-welcome-toolbar-actions .fm-icon-control {
  background: linear-gradient(145deg, #30483e, #1b3028);
}
.ponzelar-welcome-toolbar-actions .profile-close[hidden] { display: none; }
.ponzelar-welcome-toolbar-actions .fm-icon-control:hover,
.ponzelar-welcome-toolbar-actions .fm-icon-control:focus-visible {
  background: linear-gradient(145deg, #415a35, #29453c);
}
.ponzelar-chat-continue:hover,
.ponzelar-chat-continue:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}
.ponzelar-chat-continue[hidden] { display: none; }
.ponzelar-welcome-toolbar-actions:has(#ponzelar-youth-profile:not([hidden])) > button {
  padding-inline: 4px;
}
.ponzelar-welcome-layout { flex: 1 1 auto; height: auto; }

@media (max-width: 640px) {
  .ponzelar-welcome-overlay {
    place-items: center;
    padding: 10px;
  }

  .ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"] {
    place-items: center;
    padding: 10px;
  }

  .ponzelar-welcome-dialog {
    width: min(100%, 430px);
    height: auto !important;
    min-height: 0;
    max-height: none;
  }

  .ponzelar-welcome-toolbar { flex-basis: 0; min-height: 0; margin-bottom: 0; }

  .ponzelar-welcome-layout {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .ponzelar-welcome-figure {
    grid-column: 1;
    grid-row: 1;
    width: 88px;
    height: 128px;
    border-radius: 17px 21px 9px 21px;
  }

  .ponzelar-welcome-copy-wrap {
    grid-column: 2;
    grid-row: 1;
  }

  .ponzelar-welcome-page,
  .ponzelar-welcome-reminder,
  .ponzelar-event-digest {
    padding: 11px 12px 10px;
    border-radius: 11px 17px 11px 17px;
  }

  .ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead {
    font-size: calc(1rem - 3px);
    line-height: 1.32;
  }

  

  
  .ponzelar-welcome-confirmation { padding: 13px 14px; border-radius: 11px 17px 11px 17px; }
  .ponzelar-welcome-confirmation-actions .control-button { min-width: 0; flex: 1 1 0; }
}

/* Alle statischen Ponzelar-Seiten wachsen mit ihrem unveränderten Text; das
   Häkchen sitzt separat im Dialogkopf und reserviert keinen Platz im Chat. */
.ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"][data-ponzelar-stage="0"][data-ponzelar-page="1"] .ponzelar-welcome-dialog {
  width: min(680px, calc(100vw - 36px));
  height: auto !important;
  min-height: 0;
  max-height: none;
  overflow: visible !important;
}

@media (max-width: 640px) {
  .ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"][data-ponzelar-stage="0"][data-ponzelar-page="1"] .ponzelar-welcome-dialog {
    width: min(100%, 430px);
    height: auto !important;
    min-height: 0;
    max-height: none;
  }
}

/* Der Dashboard-Hinweis bleibt ohne inneres Scrollen lesbar; die Reduktion ist
   bewusst nur für diesen längeren zweiten Text des ersten Einstiegs aktiv. */
.ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"][data-ponzelar-stage="0"][data-ponzelar-page="2"] .ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead {
  font-size: calc(clamp(1rem, 1.4vw, 1.04rem) - 3px);
  line-height: 1.26;
}

.ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"][data-ponzelar-stage="0"][data-ponzelar-page="2"] .ponzelar-welcome-page {
  overflow: visible;
}

/* Der Startbildschirm ist eine durchgehende Titelszene, keine Karte im App-Raster. */
@media (max-width: 760px) {
  .start-page > .manager-header { width: calc(100% - 36px); min-height: 68px; gap: 12px; padding-block: 0; }
  .start-page .manager-brand .brand-wordmark-image { width: min(194px, 56vw); }
  .start-hero { min-height: calc(100svh - 68px); }
  .start-hero-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(240px, 1fr); gap: 0; width: calc(100% - 36px); min-height: calc(100svh - 68px); padding: 22px 0 0; }
  .start-hero-copy { max-width: 560px; padding: 12px 0 0; }
  .start-hero h1 { margin-bottom: 13px; font-size: calc(clamp(2.2rem, 7.8vw, 3.35rem) - 3px); }
  .start-hero .intro-copy { max-width: 520px; font-size: calc(0.98rem - 3px); line-height: 1.42; }
  .start-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
  .start-action-primary, .start-action-secondary { min-height: 54px; }
  .start-action-primary, .start-action-secondary { width: 100%; min-width: 0; padding-inline: 8px; font-size: var(--fm-font-label); }
  .start-hero-visual { width: min(100%, 470px); min-height: clamp(240px, calc(100svh - 460px), 370px); justify-self: center; }
  .start-ponzelar { width: min(100%, 420px); height: 100%; }
  .start-setup { padding-inline: 22px; }
}

@media (max-width: 400px) {
  .start-page > .manager-header { width: calc(100% - 28px); gap: 9px; }
  .start-page .manager-brand .brand-wordmark-image { width: min(182px, 55vw); }
  .start-hero-layout { width: calc(100% - 28px); padding-inline: 0; }
  .start-hero h1 { font-size: calc(clamp(2rem, 7.6vw, 2.6rem) - 3px); }
  .start-hero .intro-copy { font-size: calc(0.88rem - 3px); }
}

@media (prefers-reduced-motion: reduce) {
  .start-action-primary, .start-action-secondary { transition: none; }
}

.stadium-price-help { position: static; flex: 0 0 auto; }
.stadium-price-help summary { cursor: pointer; list-style: none; }
.stadium-price-help summary::-webkit-details-marker { display: none; }
.stadium-price-help p { position: absolute; z-index: 4; top: 28px; right: 0; box-sizing: border-box; width: min(320px, 100%); margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel, #172d25); color: var(--ink); font-size: var(--fm-font-text); line-height: 1.5; box-shadow: 0 8px 24px #0006; }
.stadium-price-help summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 520px) { .match-event-banner .match-event-symbol, .match-event-banner.goal .match-event-symbol { width: 40px; height: 40px; } }

.transfer-market-player.contract-player-link { display: flex; align-items: center; gap: 7px; text-align: left; }
.transfer-player-portrait { display: block; flex: 0 0 28px; width: 28px; height: 28px; object-fit: cover; border-radius: 5px; }
.transfer-market-player strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-market-player .talent-star { flex: 0 0 18px; }
.squad-table .squad-player-link,
.contracts-overview-table:not(.transfer-market-overview-table) .contract-player-link,
.training-assignment-table .training-table-player-link { display: flex; align-items: center; gap: 7px; }
.player-name-portrait { display: block; flex: 0 0 28px; width: 28px; height: 28px; object-fit: cover; border-radius: 5px; }
.squad-table, .contracts-overview-table:not(.transfer-market-overview-table), .training-assignment-table { table-layout: auto; min-width: 0; }
.squad-table, .contracts-overview-table:not(.transfer-market-overview-table) { width: 100%; }
.squad-table :is(th, td):nth-child(2), .contracts-overview-table:not(.transfer-market-overview-table) :is(th, td):nth-child(2) { min-width: 0; width: 1%; }
.training-assignment-table :is(th, td):nth-child(2) { min-width: 0; width: 1%; white-space: nowrap; }
.squad-table .player-name-column-measure, .contracts-overview-table:not(.transfer-market-overview-table) .player-name-column-measure { padding-inline: 38px; }
.squad-table .squad-player-link strong, .contracts-overview-table:not(.transfer-market-overview-table) .contract-player-link strong, .training-assignment-table .training-table-player-link strong { flex: 0 0 auto; overflow: visible; text-overflow: clip; white-space: nowrap; }

.squad-player-link .talent-star, .contract-player-link .talent-star, .training-table-player-link .talent-star { flex: 0 0 18px; }
.squad-player-link strong, .training-table-player-link strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .transfer-market-filter-tools { grid-template-columns: minmax(0, 1fr); } .transfer-market-position-filter, .transfer-market-controls, .transfer-market-range-switcher, .transfer-market-range-panels { grid-column: 1; grid-row: auto; } }
/* Saisonfester Dispo und eindeutiger Karriereabschluss. */
.overdraft-dashboard { font-size: var(--fm-font-label); line-height: 1.4; color: #ffce68; overflow-wrap: anywhere; }
.overdraft-ending { width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; box-sizing: border-box; padding: 1.5rem; border: 1px solid #cc9a44; border-radius: 1rem; background: #10221b; color: #f7f6ed; }
.overdraft-ending::backdrop { background: rgba(0, 0, 0, .8); }
.overdraft-ending p { line-height: 1.6; }
.overdraft-ending a { display: inline-flex; min-height: 44px; align-items: center; padding: .75rem 1rem; }

.overdraft-ending button { min-height: 44px; margin: .25rem; }

/* Spieleridentität wie in der Trainingstabelle: deckende Spalten und klare Namen. */
.squad-table,
.contracts-overview-table:not(.transfer-market-overview-table) { --player-position-column-width: 56px; }
.squad-table :is(th, td):first-child,
.contracts-overview-table:not(.transfer-market-overview-table) :is(th, td):first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 1%;
  min-width: var(--player-position-column-width);
  box-sizing: border-box;
  background: #1b2d25;
}
.squad-table :is(th, td):nth-child(2),
.contracts-overview-table:not(.transfer-market-overview-table) :is(th, td):nth-child(2) {
  position: sticky;
  left: var(--player-position-column-width);
  z-index: 4;
  background: #1b2d25;
  box-shadow: 5px 0 8px -7px rgba(0, 0, 0, 0.9);
  text-align: left;
}
.squad-table .squad-player-link,
.contracts-overview-table:not(.transfer-market-overview-table) .contract-player-link {
  justify-items: start;
  text-align: left;
  padding: 2px;
  border: 0;
  border-radius: 0;
}
.squad-table .squad-player-link strong,
.contracts-overview-table:not(.transfer-market-overview-table) .contract-player-link strong { font-weight: 850; }

.squad-table :is(th, td):nth-child(n+3) { width: 12.5%; }

.transfer-market-filter-tools { width: min(100%, 540px); gap: 14px; padding: 12px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 18, 15, 0.25); }
@media (max-width: 600px) { .transfer-market-filter-tools { grid-template-columns: minmax(0, 1fr); gap: 10px; } .transfer-market-controls { grid-column: 1; grid-row: auto; } }

.transfer-market-filter-tools .transfer-market-range-button { flex: 1 1 0; min-width: 0; width: auto; min-height: 44px; }
.finance-workspace { display: grid; gap: 18px; min-width: 0; }
.finance-account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px; }
.finance-account-row > div { display: grid; gap: 5px; }
.finance-account-row strong { color: var(--lime); font-size: calc(clamp(1.5rem, 3vw, 2rem) - 3px); font-weight: 950; }
.finance-info { position: relative; }
.finance-info summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; color: var(--cyan); border: 1px solid var(--line); border-radius: 50%; background: #172a23; font-size: calc(1.3rem - 3px); }
.finance-info summary::-webkit-details-marker { display: none; }
.finance-info > div { position: absolute; right: 0; top: 52px; z-index: 15; width: min(440px, calc(100vw - 70px)); max-height: 60dvh; overflow-y: auto; padding: 16px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: #172a23; box-shadow: 0 14px 32px #0008; font-size: var(--fm-font-label); line-height: 1.5; }
.finance-info p { margin: 0 0 12px; }
.finance-info p:last-child { margin-bottom: 0; }
.finance-info-close { position: sticky; top: 0; display: block; margin: 0 0 10px auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #21382d; font-size: calc(1.5rem - 3px); cursor: pointer; }
.finance-view-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.finance-view-controls > div { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #102019; }
.finance-view-controls button { min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-weight: 850; }
.finance-view-controls button[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); background: #304029; }
.finance-view-controls button:hover { color: var(--ink); background: #25382e; }
.finance-view-controls button:focus-visible, .finance-info summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.finance-selected-view { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,#1e342a,#13251d); }
.finance-view-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.finance-view-heading h3 { margin: 0; font-size: calc(1rem - 3px); }
.finance-view-heading > .icon-button { margin-left: auto; }
.finance-view-heading small { color: var(--muted); font-size: var(--fm-font-label); }
.finance-chart { position: relative; margin: 0; }
.finance-chart .finance-point-amount { fill: var(--ink); font-weight: 900; }
.finance-chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 12px; color: var(--muted); font-size: calc(var(--fm-font-label) + 2px); }
.finance-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.finance-chart-legend i { width: 24px; height: 3px; background: var(--cyan); }
.finance-chart-legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; cursor: pointer; }
.finance-chart-legend button[aria-pressed="false"] { opacity: .55; }
.finance-chart-legend button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.finance-distribution-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.finance-flow-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.finance-flow-summary > div { min-width: 0; padding: 8px 0; }
.finance-flow-summary dt { color: var(--muted); font-size: 14px; }
.finance-flow-summary dd { margin: 5px 0 0; color: var(--ink); font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.finance-flow-summary .is-positive dd { color: var(--lime); }
.finance-flow-summary .is-negative dd { color: var(--red); }
@media (max-width: 540px) { .finance-flow-summary { grid-template-columns: minmax(0, 1fr); gap: 6px; } .finance-flow-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .finance-flow-summary dd { margin: 0; font-size: 18px; } }
.finance-distribution { display: block; min-width: 0; }
.finance-distribution-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.finance-distribution-heading .finance-distribution-controls { margin: 0; padding: 0; }
.finance-distribution-total { fill: var(--ink); font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; }
.finance-distribution-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 28px; }
.finance-distribution-ring { width: 180px; max-width: 100%; margin: 0; text-align: center; }
.finance-distribution-ring svg { display: block; width: 100%; }
.finance-ring-track { stroke: rgba(244,241,233,.1); }
.finance-ring-label { fill: var(--muted); font-size: 12px; font-weight: 650; }
.finance-distribution-ring figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.finance-distribution-list { min-width: 0; }
.finance-distribution-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 12px; min-height: 44px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.finance-distribution-category { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 700; }
.finance-distribution-swatch { display: block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; }
.finance-distribution-item > strong { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.finance-distribution-item > small { min-width: 44px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 540px) {
  .finance-distribution-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .finance-distribution-ring { width: 160px; justify-self: center; }
  .finance-distribution-item { gap: 6px; padding-block: 14px; }
  .finance-distribution-category { font-size: 13px; gap: 6px; }
  .finance-distribution-item > strong { font-size: 14px; }
}
.finance-scale-line { stroke: rgba(255,255,255,.09); }
.finance-point-info { position: static; width: fit-content; max-width: 100%; min-height: 18px; margin-top: 6px; padding: 4px 8px; border: 0; border-radius: 5px; background: rgba(105,196,176,.07); color: var(--ink); font: 500 calc(14px - 3px)/1.4 system-ui, sans-serif; pointer-events: none; }
.finance-point-info[hidden] { display: none; }
.finance-chart [data-finance-point] { cursor: pointer; }
.finance-chart [data-finance-point]:focus-visible { outline: none; }
.finance-chart [data-finance-point]:focus-visible .finance-cash-point, .finance-chart [data-finance-point]:hover .finance-cash-point { stroke: var(--ink); stroke-width: 3px; }
.finance-chart svg { display: block; width: 100%; max-height: 330px; overflow: visible; }
.finance-chart text { fill: var(--muted); font-size: calc(var(--fm-font-label) + 1px); font-weight: 700; }
.finance-zero-line { stroke: #78998b; stroke-dasharray: 5 6; }
.finance-dispo-line { stroke: var(--gold); stroke-dasharray: 4 5; }
.finance-cash-line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linejoin: round; }
.finance-cash-point { fill: var(--lime); stroke: #edf4d6; stroke-width: 1; }
.finance-chart figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.finance-chart figcaption strong { color: var(--lime); }
.finance-account-row strong.is-negative, .finance-chart figcaption strong.is-negative { color: var(--red); }
.finance-flow-values { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px; margin-top: 18px; }
.finance-flow-values span { display: grid; gap: 5px; color: var(--muted); font-size: var(--fm-font-label); }
.finance-flow-values b { color: var(--ink); }
.finance-account-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; max-width: 760px; margin-inline: auto; }
.finance-account-side { display: flex; flex-direction: column; min-width: 0; }
.finance-account-side h4 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: calc(.9rem - 3px); }
.finance-account-category { margin-bottom: 16px; }
.finance-account-category h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: var(--muted); font-size: var(--fm-font-label); }
.finance-category-icon { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.finance-account-category dl { margin: 0; }
.finance-account-category dl > div, .finance-account-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: var(--fm-font-label); }
.finance-account-category dt { padding-left: 26px; min-width: 0; }
.finance-account-category dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.finance-account-total { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 850; }
.finance-account-total.income strong { color: var(--lime); }
.finance-account-total.expense strong, .finance-detail-result dd.is-negative { color: var(--red); }
.finance-detail-result { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 760px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.finance-detail-result dt { color: var(--muted); font-size: var(--fm-font-label); }
.finance-detail-result dd { margin: 6px 0 0; font-weight: 900; color: var(--lime); }
.finance-overview-alert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px; border: 1px solid var(--gold); border-radius: 12px; background: #2b3020; }
.finance-overview-alert[hidden] { display: none; }
.finance-empty { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 600px) {
  .finance-account-columns { grid-template-columns: 1fr; gap: 24px; }
  .finance-detail-result { grid-template-columns: 1fr; }
  .finance-view-controls > div { width: 100%; }
  .finance-view-controls button { flex: 1; padding: 8px 6px; font-size: var(--fm-font-control); }
  .finance-selected-view { padding: 12px; }
  .finance-chart svg { min-height: 190px; }
  .finance-chart text { font-size: calc(24px - 2px); }
  .finance-details-table { font-size: var(--fm-font-data); }
  .finance-details-table th, .finance-details-table td { padding: 10px 5px; }
  .finance-detail-result { grid-template-columns: 1fr; }
  .finance-info > div { position: fixed; top: 18dvh; left: 16px; right: 16px; width: auto; max-height: 65dvh; }
}
.stadium-build-confirmation { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 22px; border: 1px solid var(--lime); border-radius: 16px; background: #14271e; color: var(--ink); }
.stadium-build-confirmation::backdrop { background: rgba(3, 13, 10, .8); }
.stadium-build-confirmation h2 { margin: 0 0 16px; font-size: calc(1.2rem - 3px); }
.stadium-build-confirmation p { line-height: 1.5; }
.stadium-build-confirmation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stadium-build-confirmation-actions button { flex: 1; min-height: 44px; }
.stadium-build-confirmation-balance { display: block; margin-top: 16px; text-align: right; color: var(--muted); }
.stadium-demolition-ponzelar { display: flex; align-items: center; gap: 18px; margin: 14px 0; }
.stadium-demolition-ponzelar img { width: 90px; height: 110px; flex: 0 0 90px; object-fit: contain; }
.stadium-demolition-ponzelar strong { color: var(--lime); font-size: calc(1.1rem - 3px); line-height: 1.4; }
@media (max-width: 480px) { .stadium-demolition-ponzelar { gap: 12px; } .stadium-demolition-ponzelar img { width: 72px; height: 94px; flex-basis: 72px; } }
.stadium-action-button.stadium-demolition-button { min-height: 60px; padding: 11px 14px; border-color: #a65e55; background: #402923; color: #f4d9d1; text-align: left; }
.stadium-demolition-button .stadium-demolition-label { display: grid; gap: 4px; min-width: 0; }
.stadium-demolition-label strong { font-size: calc(.95rem - 3px); font-weight: 900; line-height: 1.2; }
.stadium-demolition-label small { color: #c4aaa2; font-size: var(--fm-font-label); font-weight: 500; line-height: 1.25; }
.stadium-action-button.stadium-demolition-button > span:last-child { flex-shrink: 0; font-size: var(--fm-font-control); }
.stadium-action-button.stadium-demolition-button:hover { background: #54312a; border-color: #db8a7b; }
.stadium-action-button.stadium-demolition-button:focus-visible { outline: 2px solid #efab9c; outline-offset: 3px; }

.profile-portrait-strength:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.dashboard-chart-column { fill: var(--lime); stroke: transparent; stroke-width: 2; }
.dashboard-chart-column:focus { stroke: var(--cyan); outline: none; }

.finance-chart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: start; gap: 12px; }
.finance-chart-layout > .finance-chart { grid-column: 1; grid-row: 1; min-width: 0; }
.finance-chart-layout > .finance-chart-legend { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 600px) { .finance-chart-layout { display: flex; flex-direction: column; } .finance-chart-layout > .finance-chart-legend { flex-direction: row; flex-wrap: wrap; } .finance-chart-layout > .finance-chart { width: 100%; } }

/* Aufstiegsstufen: unabhängig von der internen Liganummer. */
.league-stage-badge { position: absolute; top: 5px; right: 6px; display: flex; align-items: center; justify-content: center; gap: 2px; height: 25px; padding: 2px 5px; border: 1px solid currentColor; border-radius: 7px; background: #0c1c17ed; box-shadow: 0 1px 3px #0007; pointer-events: none; }
.league-stage-badge svg { width: 18px; height: 18px; flex: none; }
.league-stage-badge.is-bronze { color: #a86e43; }
.league-stage-badge.is-silver { color: #d1dfe7; }
.league-stage-badge.is-gold, .league-stage-badge.is-beer { color: #f5cb5c; }
.league-banner-button .league-banner-label { padding-top: 16px; }

/* Scouting-Pult: eine Fläche, große Positionsziele, schlichte Wertefelder. */
.transfer-market-filter-tools { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr); gap: 18px; width: 100%; max-width: 850px; padding: 14px; }
.transfer-market-position-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.transfer-market-position-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 90px; width: 100%; padding: 6px; }
.transfer-market-position-button[data-transfer-market-position="GK"], .youth-position-button[data-youth-position="GK"] { --position-accent: var(--role-gk); }
.transfer-market-position-button[data-transfer-market-position="DEF"], .youth-position-button[data-youth-position="DEF"] { --position-accent: var(--role-def); }
.transfer-market-position-button[data-transfer-market-position="MID"], .youth-position-button[data-youth-position="MID"] { --position-accent: var(--role-mid); }
.transfer-market-position-button[data-transfer-market-position="FWD"], .youth-position-button[data-youth-position="FWD"] { --position-accent: var(--role-fwd); }
.transfer-market-position-button { border-color: color-mix(in srgb, var(--position-accent) 32%, var(--line)); background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 16%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 8%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 4px 10px rgba(0, 0, 0, 0.12); transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.transfer-market-position-button:hover { border-color: color-mix(in srgb, var(--position-accent) 72%, white); background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 23%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 13%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); color: var(--position-accent); transform: translateY(-1px); }
.scouting-position-art { width: 52px; height: 52px; object-fit: contain; pointer-events: none; }
.transfer-market-position-button[aria-pressed="true"] { border-color: var(--position-accent); background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 28%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 18%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); box-shadow: inset 0 0 0 1px var(--position-accent), 0 0 14px color-mix(in srgb, var(--position-accent) 12%, transparent); }
.transfer-market-position-button[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 3px; right: 5px; color: var(--position-accent); font: bold calc(14px - 3px) system-ui; }
.transfer-market-position-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.transfer-market-range-controls { width: 100%; min-width: 0; }
.transfer-market-range-panels, .transfer-market-range-filter { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.transfer-market-range-switcher { margin-bottom: 8px; }
@media (max-width: 600px) { .transfer-market-filter-tools { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; } .transfer-market-position-button { min-height: 82px; } .scouting-position-art { width: 44px; height: 44px; } }
.roster-strength-tag.overall-mark { display: inline-grid; place-items: center; width: max-content; min-width: 22px; height: 17px; min-height: 17px; padding: 0 3px; box-sizing: border-box; border: 1px solid rgba(244,241,233,.22); border-radius: 4px; background: #10231d; box-shadow: none; color: #f1ead9; font: 700 11px/1 system-ui, sans-serif; letter-spacing: 0; }

.roster-portrait { position: relative; overflow: visible; }
.roster-portrait img { border-radius: inherit; }
.roster-portrait .roster-strength-tag { position: absolute; right: -4px; bottom: -4px; z-index: 2; }
.roster-portrait .roster-strength-tag.overall-mark { min-width: 22px; height: 19px; min-height: 19px; padding: 0 1px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 900 15px/1 system-ui, sans-serif; text-shadow: 0 1px 3px #071710, 0 0 2px #071710; }
.field-player-marker-strength .overall-mark { font-size: inherit; }

.transfer-market-toolbar { min-width: 0; }
.transfer-market-filter-tools { box-sizing: border-box; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.transfer-market-range-controls { min-width: 0; max-width: 100%; }
.transfer-market-range-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0; }
.transfer-market-range-button { min-width: 0; padding-inline: 8px; }
@media (max-width: 600px) { .transfer-market-filter-tools { grid-template-columns: minmax(0, 1fr); } }

/* Einheitliches Hilfezeichen, unabhängig von der Schmuckschrift. */

/* Stärke am Portrait darf auch bei reduzierten Werten überstehen. */
.player-profile-heading .profile-avatar { overflow: visible; }
.player-profile-heading .profile-avatar img { border-radius: inherit; }

/* Vereinszuordnung in der Spielerakte */
.player-profile-heading { grid-template-columns: 120px 1px minmax(0, 370px); justify-content: start; }
.player-profile-header-metrics .player-profile-identity { grid-column: 1 / -1; grid-row: 2; display: block; padding: 0 5px; }
.player-profile-header-metrics .player-profile-team-row { display: block; }
.player-profile-header-metrics .player-profile-team-link { min-height: 28px; width: 100%; }
@media (max-width: 760px) { .player-profile-heading { grid-template-columns: 100px minmax(0, 1fr); } }
@media (max-width: 480px) { .player-profile-heading { grid-template-columns: minmax(0, 1fr); } }

/* Transfermarkt: Von/Bis als gleichmäßige, gemeinsame Eingabegruppe. */
.transfer-market-range-panels { width: 100%; max-width: none; justify-self: stretch; }
.transfer-market-range-filter { box-sizing: border-box; width: 100%; padding: 8px 10px; border: 1px solid rgba(137, 164, 153, 0.22); border-radius: 10px; background: rgba(8, 18, 15, 0.3); }
.transfer-market-range-fields { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 0; }
.transfer-market-range-fields::before { position: absolute; top: 4px; bottom: 4px; left: 50%; width: 1px; background: rgba(137, 164, 153, 0.32); content: ""; pointer-events: none; }
.transfer-market-range-fields label { box-sizing: border-box; padding-inline: 6px; }
@media (max-width: 600px) {
  .transfer-market-range-fields { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .transfer-market-range-fields::before { top: 50%; right: 6px; bottom: auto; left: 6px; width: auto; height: 1px; }
  .transfer-market-range-fields label:first-child { padding-bottom: 8px; }
  .transfer-market-range-fields label + label { padding-top: 8px; }
}

/* Gemeinsame Funktionsicons: Textfarbe, identische optische Größe. */
.fm-symbol { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; vertical-align: middle; color: inherit; }
.profile-statistics-comparison-icon, .faq-topic-icon, .tactic-status-icon { color: inherit; }
.profile-statistics-comparison-label-cell .profile-statistics-comparison-icon {
  border-radius: 5px; background: color-mix(in srgb, var(--stat-accent) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-accent) 27%, transparent); color: var(--stat-accent);
}
.manager-tab-icon .fm-symbol { width: 100%; height: 100%; }

.manager-main-visual .fm-symbol { width: 100%; height: 100%; }

.fm-symbol-red { color: var(--red); }
.fm-symbol-yellow { color: var(--gold); }

/* Gemeinsame Liga-Auswahl: Banner ohne zusätzliche Überschrift. */
.league-stat-filter-row-league > .league-stat-filter-label { display: none; }
.league-stat-level-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
@media (max-width: 600px) { .league-stat-level-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.finance-chart-scroll { overflow-x: auto; max-width: 100%; }
.finance-combination-chart svg { min-width: 690px; }
.finance-day-label { font-size: var(--fm-font-label); }
@media (max-width: 600px) { .finance-chart-scroll { padding-bottom: 8px; } }

/* Feste Reihenfolge in der kompakten Spielerkarte. */
.player-profile-header-metrics { grid-template-rows: auto auto auto auto; }
.player-profile-header-metrics .player-profile-header-stat { grid-row: 4; }
.player-profile-header-metrics .player-profile-header-market-stat { grid-row: 3; }

/* Vertragstab: Inhalt und Aktionen werden als separate Bereiche angeordnet. */
.profile-contract-comparison-slide { border: 0; background: transparent; padding: 0; gap: 12px; }

/* Ein gemeinsamer, zurückhaltender FAQ-Einstieg mit bündiger Kantenführung. */
button[data-faq-open]:not(.fm-icon-control):not(.profile-portrait-strength):not(.footer-link):not(.header-faq-button) { display: inline-grid; place-items: center; box-sizing: border-box; width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font: 800 11px/1 system-ui, sans-serif; font-style: normal; box-shadow: none; cursor: help; transition: color 140ms ease, background-color 140ms ease, outline-color 140ms ease; }
button[data-faq-open]:not(.fm-icon-control):not(.profile-portrait-strength):not(.footer-link):not(.header-faq-button):hover { background: rgba(244, 241, 233, 0.055); color: var(--ink); }
button[data-faq-open]:not(.fm-icon-control):not(.profile-portrait-strength):not(.footer-link):not(.header-faq-button):focus-visible { color: var(--lime); outline: 2px solid rgba(195, 230, 106, 0.48); outline-offset: 1px; }
@media (pointer: coarse) { button[data-faq-open]:not(.fm-icon-control):not(.profile-portrait-strength):not(.footer-link):not(.header-faq-button) { width: 44px; height: 44px; min-width: 44px; min-height: 44px; } }

.stadium-build-ponzelaer { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stadium-build-ponzelaer img { width: 86px; height: 105px; object-fit: contain; flex: 0 0 86px; }
.stadium-build-ponzelaer p { margin: 0; color: var(--lime); font-size: calc(.95rem - 3px); font-weight: 700; }
@media (max-width: 480px) { .stadium-build-ponzelaer { gap: 10px; } .stadium-build-ponzelaer img { width: 66px; height: 84px; flex-basis: 66px; } }

/* Themenfarben bleiben über Navigation und Inhaltsansichten gleich. */
.fm-symbol-sponsors, .fm-symbol-cup { color: var(--gold); }
.fm-symbol-stadium { color: var(--cyan); }
.fm-symbol-transfer-market { color: var(--stat-experience); }
.fm-symbol-player, .fm-symbol-roster { color: #8bc7ed; }
.fm-symbol-finance { color: var(--lime); }
.manager-tab .fm-symbol { color: inherit; }
.fm-symbol-euro { color: var(--gold); }
.manager-main-visual-finance .fm-symbol-euro { color: inherit; }
.manager-tab .fm-symbol-euro { color: inherit; }
.finance-account-columns { gap: 22px; }
.finance-account-category { margin-bottom: 14px; }
.finance-account-category h5 { margin-bottom: 4px; color: var(--ink); }
.finance-account-category dl > div { padding: 6px 0; border-bottom: 1px solid rgba(244,241,233,.055); }
.finance-account-category dd { min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.finance-account-category .is-zero dd { color: var(--muted); }
.finance-account-total { margin-top: auto; padding: 12px 10px; border-radius: 7px; background: rgba(195,230,106,.06); }
.finance-account-total.expense { background: rgba(235,135,116,.06); }
.finance-detail-result { border-top: 0; padding-top: 0; gap: 12px; }
.finance-detail-result > div { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.finance-detail-result dd { font-size: calc(1.12rem - 3px); font-variant-numeric: tabular-nums; }

/* Transferliste füllt den verfügbaren Tabellenrahmen. */
.contracts-overview-table.transfer-market-overview-table { width: 100%; min-width: 0; table-layout: auto; }
.transfer-market-overview-table :is(th, td):nth-child(1) { width: 5%; }
.transfer-market-overview-table :is(th, td):nth-child(2) { width: 24%; }
.transfer-market-overview-table :is(th, td):nth-child(11) { width: 9%; }
.transfer-market-overview-table .contract-player-link strong { white-space: nowrap; }

/* Kompakte Gruppenauswahl in allen Liga-Reitern. */
.league-group-control, .league-stat-filter-row-select { width: min(100%, 280px); max-width: 280px; justify-self: start; }
.league-group-control select, #league-player-stat-group-select { width: 100%; max-width: 280px; box-sizing: border-box; }

.player-strength-value-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; box-sizing: border-box; padding: 1px 4px; border: 1px solid rgba(244,241,233,.45); border-radius: 5px; background: #10231d; color: var(--ink); font: 700 calc(14px - 3px)/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.team-dashboard-summary-metrics small { display: flex; align-items: center; gap: 6px; }
.team-dashboard-summary-metrics small .fm-symbol { width: 16px; height: 16px; flex-basis: 16px; }

/* Spielerakte: neue Vertragskarte im dunklen Vereinsstil. */
.player-contract-document {
  position: relative; width: 100%; box-sizing: border-box; padding: 0 16px 16px;
  border: 1px solid rgba(195, 230, 106, .25); border-radius: 12px; color: var(--ink);
  background: radial-gradient(ellipse at 100% 0%, rgba(105, 196, 176, .08), transparent 42%), linear-gradient(145deg, #1d352b, #14261f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .18); font-family: inherit;
}
.player-contract-document::before {
  position: absolute; top: 0; right: 16px; left: 16px; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--lime), rgba(105, 196, 176, .36), transparent); content: "";
}
.player-contract-document-heading {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin: 0 -16px 14px; padding: 14px 16px 13px; border-left: 3px solid var(--lime);
  border-bottom: 1px solid rgba(244, 241, 233, .1); border-radius: 11px 11px 0 0;
  background: linear-gradient(100deg, rgba(195, 230, 106, .08), rgba(8, 18, 15, .22)); color: var(--ink);
}
.contract-document-crest {
  display: grid; place-items: center; width: 44px; height: 48px; flex: 0 0 44px;
  border: 1px solid rgba(195, 230, 106, .23); border-radius: 8px;
  background: rgba(8, 18, 15, .42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.contract-document-crest img { width: 78%; height: 82%; object-fit: contain; }
.player-contract-document-heading p {
  margin: 0 0 4px; color: var(--cyan); font-size: var(--fm-font-label); font-weight: 850;
  letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere;
}
.player-contract-document-heading h3 { margin: 0; color: var(--ink); font-size: var(--fm-font-dialog); line-height: 1.2; overflow-wrap: anywhere; }
.player-contract-document-heading::after { display: none; }
.player-contract-document .profile-contract-comparison {
  width: 100%; margin: 0; border: 1px solid rgba(244, 241, 233, .1); border-radius: 9px;
  background: rgba(8, 18, 15, .2);
}
.player-contract-document .profile-contract-comparison-head {
  border-color: rgba(244, 241, 233, .12); border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .04);
}
.player-contract-document .profile-contract-comparison-head > span { color: var(--muted); font-size: var(--fm-font-label); }
.player-contract-document .profile-contract-comparison-head > span:not(:first-child) { color: var(--ink); font-size: var(--fm-font-label); }
.player-contract-document .profile-contract-comparison-head > span:last-child { color: var(--lime); }
.player-contract-document .profile-contract-header-label .profile-statistics-comparison-icon { color: var(--cyan); }
.player-contract-document .profile-contract-labels > span,
.player-contract-document .profile-contract-value-row { border-color: rgba(244, 241, 233, .09); }
.player-contract-document .profile-contract-labels > span { color: var(--muted); font-size: var(--fm-font-label); }
.player-contract-document .profile-contract-metric-icon { color: var(--stat-accent); }
.player-contract-document .profile-contract-value-row { color: var(--ink); }
.player-contract-document .profile-contract-value { color: var(--ink); font-size: max(13px, var(--fm-font-data)); }
.player-contract-document .profile-contract-offer .profile-contract-value { color: var(--lime); }
.player-contract-document .profile-contract-labels > span:nth-child(even),
.player-contract-document .profile-contract-current .profile-contract-value-row:nth-child(even),
.player-contract-document .profile-contract-offer .profile-contract-value-row:nth-child(even) { background: rgba(255, 255, 255, .025); }
.profile-contract-comparison-slide .profile-contract-actions {
  box-sizing: border-box; width: 100%; margin: 0; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(145deg, rgba(31, 55, 44, .96), rgba(18, 36, 29, .96));
}
.profile-contract-action-list .profile-contract-action-button { display: flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.3; }
.profile-contract-action-list [data-contract-action='renew'] .fm-symbol { color: inherit; }
.profile-contract-action-list [data-contract-action='transfer-list']:not(.is-locked) { background: #20342e; border-color: var(--stat-experience); color: var(--ink); }
.profile-contract-action-list [data-contract-action='transfer-list']:not(.is-locked):is(:hover, :focus-visible) { background: color-mix(in srgb, var(--stat-experience) 10%, #20342e); border-color: var(--stat-experience); color: var(--ink); outline-color: var(--stat-experience); }
.profile-contract-action-list [data-contract-action='release']:not(.is-locked) { background: #372723; border-color: #ef8d7b80; color: #f1a394; }
@media (max-width: 600px) {
  .player-contract-document { padding-right: 10px; padding-left: 10px; }
  .player-contract-document-heading { margin-right: -10px; margin-left: -10px; padding: 12px 12px; gap: 10px; }
  .player-contract-document .profile-contract-comparison-head,
  .player-contract-document .profile-contract-comparison-grid { grid-template-columns: minmax(100px, .9fr) minmax(0, 1fr) minmax(0, 1fr); }
  .player-contract-document .profile-contract-comparison.is-renewal-overview .profile-contract-comparison-head,
  .player-contract-document .profile-contract-comparison.is-renewal-overview .profile-contract-comparison-grid { grid-template-columns: minmax(100px, .9fr) minmax(0, 1fr); }
  .profile-contract-action-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .profile-contract-action-list .profile-contract-action-button { width: 100%; min-height: 44px; }
}

.team-crest.team-dashboard-crest img { background: transparent; }

/* Zeitraum und Darstellungsreiter mit unterschiedlicher Gewichtung. */
.finance-view-controls button { font: 600 calc(14px - 3px)/1.25 system-ui, sans-serif; }
.finance-view-controls > div:has([data-finance-period]) { gap: 5px; padding: 4px; }
.finance-view-controls [data-finance-period] { padding: 10px 18px; font-family: inherit; font-weight: 800; }
.finance-view-controls [data-finance-period][aria-pressed='true'] { background: var(--lime); color: #15231a; border-color: var(--lime); }
.finance-view-controls > div:has([data-finance-display]) { border: 0; background: #10231c; padding: 0; gap: 5px; }
.finance-view-controls [data-finance-display] { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border-radius: 5px 5px 0 0; border: 0; border-bottom: 3px solid transparent; }
.finance-view-controls [data-finance-display][aria-pressed='true'] { color: var(--lime); background: #30411f; border-color: var(--lime); }
.finance-view-controls [data-finance-display]:hover { background: #25382e; }
.finance-view-controls > div:has([data-finance-display]) > [data-finance-display]:first-child { border-radius: 12px 0 0 12px; }
.finance-view-controls > div:has([data-finance-display]) > [data-finance-display]:last-child { border-radius: 0 12px 12px 0; }
.finance-view-controls > div:has([data-finance-display]) > [data-finance-display]:focus-visible { outline-offset: -3px; }
@media (max-width:600px) { .finance-view-controls { gap: 10px; } .finance-view-controls > div { width: 100%; box-sizing: border-box; } .finance-view-controls [data-finance-display] { padding: 10px 6px; gap: 5px; } }

/* Verteilung nutzt den oberen Raum, Unterpositionen bleiben im Listenbereich. */
.finance-selected-view:has(.finance-distribution) { position: relative; }
.finance-selected-view:has(.finance-distribution) .finance-view-heading:not(:has(h3)) { height: 0; min-height: 0; margin: 0; padding: 0; }
.finance-selected-view:has(.finance-distribution) .finance-view-heading:not(:has(h3)) > button { position: absolute; top: 16px; right: 16px; }
.finance-distribution-controls { margin-bottom: 12px; padding-right: 48px; }
@media (max-width:600px) { .finance-selected-view:has(.finance-distribution) .finance-view-heading:not(:has(h3)) > button { top: 10px; right: 10px; } }

/* Feste Auskunftszeile ohne Layoutsprung. */
.finance-combination-chart .finance-point-info { display: flex; align-items: center; box-sizing: border-box; width: 100%; height: 32px; min-height: 32px; margin-top: 6px; padding: 4px 0; background: transparent; border-top: 1px solid rgba(105,196,176,.15); border-radius: 0; color: var(--muted); font: 500 calc(14px - 3px)/1.4 system-ui,sans-serif; }
.finance-combination-chart .finance-point-info[hidden] { display: flex; visibility: hidden; }

/* Finanzansichten ohne zusätzliche Kopfzeile. */
.finance-selected-view { position: relative; }
.finance-selected-view .finance-view-heading { height: 0; min-height: 0; margin: 0; padding: 0; }
.finance-selected-view .finance-view-heading > button { position: absolute; top: 12px; right: 12px; z-index: 2; }
.finance-account-columns { padding-top: 0; padding-right: 38px; }



.finance-view-controls > div:has([data-finance-period]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 420px); box-sizing: border-box; }
.finance-view-controls [data-finance-period] { width: 100%; min-width: 0; padding-inline: 10px; }

/* Geldfluss-Auswahl: feste Bedeutungsfarben und deutlicher Auswahlzustand. */

/* Aufklappbare Finanzgruppen, ohne zusätzliche Kästen. */
.finance-account-category > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; cursor: pointer; list-style: none; font: 700 calc(14px - 3px)/1.4 system-ui,sans-serif; }
.finance-account-category > summary::-webkit-details-marker { display: none; }
.finance-category-heading { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.finance-category-heading::before { content: '›'; display: inline-block; color: var(--muted); transition: transform .15s; }
.finance-account-category[open] .finance-category-heading::before { transform: rotate(90deg); }
.finance-category-total { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.finance-category-total.is-zero { color: var(--muted); font-weight: 500; }
.finance-account-category > summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 3px; }
.finance-account-category > summary:hover .finance-category-heading { color: var(--lime); }

.start-team-picker { width: 100%; max-width: 1120px; box-sizing: border-box; margin-inline: auto; }

/* Gemeinsame Einstiegsszene: Büro hinten, freigestellter Ponzelaer vorne. */
.start-hero:not(.is-setup) { background: transparent; }
.start-hero:not(.is-setup)::before { inset: 0; z-index: -1; background: none; }
.start-hero:not(.is-setup)::after { inset: 0; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; background: radial-gradient(ellipse at 76% 36%,#eab46e1a,transparent 48%); animation: hero-office-light 9s ease-in-out infinite alternate; }
.start-hero-visual { align-items: end; }
.start-hero-visual .start-ponzelar {
  position: relative; z-index: 1; align-self: end;
  width: auto; height: 86svh; max-width: 100%; max-height: 100%;
  object-position: center bottom;
  filter: drop-shadow(0 12px 20px #0003);
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero-light-dust { position: absolute; inset: 12% 4% 8%; pointer-events: none; background: radial-gradient(circle at 23% 25%,#ffe3b76b 0 1px,transparent 2px),radial-gradient(circle at 79% 40%,#ffe3b74d 0 1px,transparent 2px),radial-gradient(circle at 53% 70%,#ffe3b74d 0 1px,transparent 2px); animation: hero-dust-drift 14s ease-in-out infinite alternate; }
@keyframes hero-office-light { from { opacity: .55; } to { opacity: .9; } }
@keyframes hero-dust-drift { from { transform: translateY(8px); opacity: .25; } to { transform: translateY(-14px); opacity: .55; } }
@media (max-width: 760px) { .start-hero:not(.is-setup)::before { background-position: 65% center; } .start-hero-copy { order: 0; } .start-hero-visual { order: 1; } .start-hero-visual .start-ponzelar { height: auto; max-height: 440px; } }
@media (prefers-reduced-motion: reduce) { .start-hero:not(.is-setup)::after, .hero-light-dust { animation: none; } }

/* Die Titelszene nutzt die Resthöhe unter dem echten Header statt einer geschätzten Headerhöhe. */
.start-page:not(:has(.start-hero.is-setup)) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  background: linear-gradient(180deg,#10231d88 0%,transparent 22%), linear-gradient(90deg,#10231df5 0%,#10231dd9 32%,#10231d66 65%,#10231d38), linear-gradient(0deg,#10231d 0%,transparent 22%), url('assets/ponzelar/club-office-wide-v4.png') center 56% / cover no-repeat;
}
.start-page:not(:has(.start-hero.is-setup)) > .manager-shell.start-menu { min-height: 0; }
.start-page:not(:has(.start-hero.is-setup)) .start-hero { height: 100%; min-height: 0; }
.start-page:not(:has(.start-hero.is-setup)) .start-hero-layout { height: 100%; min-height: 0; }

/* Short landscape windows need document scrolling once the identity line is present. */
@media (min-width: 761px) and (max-height: 600px) {
  .start-page:not(:has(.start-hero.is-setup)) { display: block; height: auto; min-height: 100svh; }
  .start-page:not(:has(.start-hero.is-setup)) .start-hero,
  .start-page:not(:has(.start-hero.is-setup)) .start-hero-layout { height: auto; min-height: 0; }
}

@media (max-width: 760px) {
  .start-page:has(.start-hero.is-setup) { background-position: center, 65% center; }
  .start-page:not(:has(.start-hero.is-setup)) { display: block; height: auto; min-height: 100svh; background-position: center, center, center, 65% center; }
  .start-page:not(:has(.start-hero.is-setup)) .start-hero { height: auto; min-height: 0; }
  .start-page:not(:has(.start-hero.is-setup)) .start-hero-layout { height: auto; min-height: 0; grid-template-rows: auto auto; }
  .start-hero:not(.is-setup)::before { background-position: 65% center; }
}

/* Während Ponzelars Jugendspieler-Dialog offen ist, bleibt die Büro-Szene hinter
   der abgedunkelten Sprechblase und dem weiterhin sichtbaren Formular sichtbar. */
.start-page:has(#start-ponzelar-team:not([hidden])) .start-hero.is-setup {
  min-height: calc(100svh - 82px);
  background: #10231d;
}
.start-page:has(#start-ponzelar-team:not([hidden])) .start-hero.is-setup::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #10231df5 0%, #10231dd9 32%, #10231d66 65%, #10231d38), linear-gradient(0deg, #10231d 0%, transparent 22%), url('assets/ponzelar/club-office-wide-v4.png') center 56% / cover no-repeat;
}
.start-page:has(#start-ponzelar-team:not([hidden])) .start-hero.is-setup::after {
  inset: 0;
  z-index: -1;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: radial-gradient(ellipse at 76% 36%, #eab46e1a, transparent 48%);
}
@media (max-width: 760px) {
  .start-page:has(#start-ponzelar-team:not([hidden])) .start-hero.is-setup {
    min-height: calc(100svh - 68px);
  }
  .start-page:has(#start-ponzelar-team:not([hidden])) .start-hero.is-setup::before {
    background-position: 65% center;
  }
}

.start-youth-position-field { grid-column: 1 / -1; min-width: 0; display: grid; gap: 8px; margin-top: 6px; }
.start-youth-position-field > span { color: var(--muted); font-size: var(--fm-font-label); font-weight: 700; }
.start-youth-position-buttons { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; max-width: var(--start-youth-control-width); gap: 10px; }
.youth-position-button { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; gap: 3px; min-width: 0; min-height: 82px; padding: 5px; border: 1px solid color-mix(in srgb, var(--position-accent) 32%, var(--line)); border-radius: 9px; background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 16%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 8%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); color: var(--ink); cursor: pointer; font: 700 calc(14px - 3px)/1.2 system-ui,sans-serif; box-shadow: inset 0 1px rgba(255,255,255,.035), 0 4px 10px rgba(0,0,0,.12); transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
:is(.youth-position-button, .transfer-market-position-button)::before { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, transparent 0 13px, color-mix(in srgb, var(--position-accent) 4%, transparent) 13px 14px); content: ""; pointer-events: none; }
.youth-position-button img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--position-accent) 24%, transparent)); }
.youth-position-button > span { display: inline-flex; align-items: center; min-height: 17px; padding: 2px 6px; border: 1px solid color-mix(in srgb, var(--position-accent) 38%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--position-accent) 15%, #10231d); color: var(--position-accent); font-size: 11px; font-weight: 850; letter-spacing: .03em; }
.youth-position-button:hover { border-color: color-mix(in srgb, var(--position-accent) 72%, white); background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 23%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 13%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); transform: translateY(-1px); }
.youth-position-button[aria-pressed='true'] { border-color: var(--position-accent); background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 28%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 18%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); color: var(--position-accent); box-shadow: inset 0 0 0 1px var(--position-accent), 0 0 14px color-mix(in srgb, var(--position-accent) 14%, transparent); }
.youth-position-button[aria-pressed='true']::after { position: absolute; top: 5px; right: 7px; color: var(--position-accent); content: "✓"; font: 850 12px/1 system-ui, sans-serif; }
.youth-position-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }


/* Nach Abpfiff stehen nur die passenden Abschlussaktionen bereit. */
.match-controls.is-finished { justify-content: center; gap: 12px; padding: 8px 14px; }
.match-controls.is-finished > .simulation-switch, .match-controls.is-finished > .kickoff-button, .match-controls.is-finished > .skip-match-button, .match-controls.is-finished > .speed-controls { display: none !important; }
.match-controls.is-finished > #replay-match, .match-controls.is-finished > #match-complete { flex: 1 1 220px; max-width: 260px; min-height: 44px; margin: 0; }
.match-controls.is-finished > #replay-return-result { flex: 0 1 180px; min-height: 44px; margin: 0; }
@media (max-width: 600px) { .match-controls.is-finished { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px; } .match-controls.is-finished > #replay-match, .match-controls.is-finished > #replay-return-result, .match-controls.is-finished > #match-complete { flex: 0 0 auto; width: 100%; max-width: none; } }

.team-headline strong { white-space: nowrap; }

/* Die Startliga zeigt den Karriereweg; nur die Hinterhofliga ist offen. */
.start-league-roadmap { display: grid; width: calc(100% - 40px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.start-league-card { position: relative; display: grid; width: 100%; min-width: 0; min-height: 112px; align-items: end; overflow: hidden; isolation: isolate; padding: 0; border: 1px solid rgba(244, 241, 233, .2); border-radius: 10px 5px 10px 5px; background: #172820; color: var(--ink); font: inherit; text-align: right; }
.start-league-card > img { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: filter .18s ease, transform .18s ease; }
.start-league-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8, 19, 15, .04) 0%, rgba(8, 19, 15, .22) 40%, rgba(8, 19, 15, .78) 100%); content: ""; }
.start-league-card-copy { display: grid; justify-items: end; gap: 4px; min-width: 0; padding: 10px 11px 9px 22px; }
.start-league-card-copy strong { display: block; max-width: 100%; color: var(--ink); font-size: 16px; font-weight: 950; line-height: 1.12; text-shadow: 0 1px 5px rgba(0, 0, 0, .8); }
.start-league-card-status { display: flex; max-width: 100%; align-items: center; justify-content: flex-end; gap: 4px; color: rgba(244, 241, 233, .88); font-size: 13px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.start-league-card-status svg { flex: 0 0 12px; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.start-league-card.is-startable { border: 2px solid var(--lime); box-shadow: inset 0 0 0 1px rgba(195, 230, 106, .22), 0 0 0 1px rgba(195, 230, 106, .12); cursor: pointer; }
.start-league-card.is-startable::after { background: linear-gradient(90deg, rgba(8, 19, 15, .02) 0%, rgba(8, 19, 15, .16) 38%, rgba(8, 19, 15, .7) 100%); }
.start-league-card.is-startable .start-league-card-status { color: var(--lime); }
.start-league-card.is-startable:hover > img { transform: scale(1.025); }
.start-league-card.is-startable:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.start-league-card.is-locked { opacity: 1; cursor: not-allowed; }
.start-league-card.is-locked > img { filter: grayscale(.58) saturate(.65) brightness(.96); }
.start-league-card.is-locked::after { background: linear-gradient(90deg, rgba(8, 19, 15, .12) 0%, rgba(8, 19, 15, .26) 42%, rgba(8, 19, 15, .58) 100%); }
.start-league-card.is-locked .start-league-card-status { color: rgba(244, 241, 233, .86); }
@media (max-width: 760px) {
  .start-league-roadmap { width: calc(100% - 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .start-league-card { min-height: 112px; }
  .start-league-card-copy { gap: 3px; padding: 8px 8px 7px 16px; }
  .start-league-card-copy strong { font-size: 16px; }
  .start-league-card-status { gap: 3px; font-size: 13px; }
  .start-league-card-status svg { flex-basis: 11px; width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) { .start-league-card > img { transition: none; } }

/* Logo und aktiver Einrichtungsschritt teilen dieselbe Außenkante. */
.start-page:has(.start-hero.is-setup) { --start-active-width: 1158px; }
.start-page:has(.start-hero.is-setup):has(#start-step-manager:not([hidden])) { --start-active-width: 760px; }
.start-page:has(.start-hero.is-setup):has(#start-step-youth:not([hidden])) { --start-active-width: 900px; }
.start-page:has(.start-hero.is-setup) > .manager-header,
.start-page .start-hero.is-setup .start-setup {
  width: min(var(--start-active-width), calc(100% - 32px));
  box-sizing: border-box;
  margin-inline: auto;
}
.start-page .start-hero.is-setup .start-setup { padding: 0 0 24px; }
/* Lesbare Daten und Bedienung ohne künstlichen Seitenzoom. */
.control-button, .speed-button { font-size: var(--fm-font-control); padding-block: 8px; line-height: 1.3; white-space: normal; }
.start-name-field, .start-manager-portrait-label, .start-team-filter-field { font-size: var(--fm-font-label); }
.start-team-card-heading strong, .roster-line-primary > strong { font-size: var(--fm-font-data); }
.start-team-select { min-height: 88px; }
.start-team-card-heading strong { white-space: normal; overflow-wrap: anywhere; }
.start-youth-random-button { min-height: 48px; font-size: var(--fm-font-label); }
.youth-position-button { min-height: 100px; font-size: var(--fm-font-control); }
.start-youth-actions { flex-wrap: wrap; }
.ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead { font-size: var(--fm-font-dialog); line-height: 1.45; }
.mailbox-detail-body p { font-size: var(--fm-font-text); line-height: 1.5; }
.training-assignment-table { font-size: var(--fm-font-data); }
.training-assignment-table th { height: auto; min-height: 54px; padding-block: 10px; font-size: calc(var(--fm-font-label) - 1px); line-height: 1.35; }
.match-highlight-item { min-height: 30px; font-size: var(--fm-font-label); line-height: 1.35; }
.finance-combination-chart .finance-point-info { height: auto; min-height: 32px; }
@media (max-width: 520px) {
  .start-youth-content { grid-template-columns: minmax(0, 1fr); }
  .start-youth-portrait-picker { grid-column: 1; grid-row: 2; width: min(266px, 100%); justify-self: start; }
  .start-youth-fields { grid-column: 1; grid-row: 1; width: 100%; }
  .start-youth-actions > button { flex: 1 1 100%; }
}
.public-roster-card .roster-column-primary { grid-column: 1; grid-row: 1; }
.public-roster-card .roster-portrait { width: 48px; height: 48px; flex-basis: 48px; overflow: hidden; }
.public-roster-card .roster-primary-copy { gap: 6px; }
.public-roster-card .roster-line-primary > strong { white-space: normal; overflow-wrap: anywhere; }
.public-roster-card:hover { transform: none; }
.start-team-actions { align-items: center; flex-wrap: wrap; }
.start-team-actions #start-team-info { margin-left: auto; }
@media (min-width: 761px) and (max-width: 1000px) {
  .start-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-team-filters { width: 100%; }
}
@media (max-width: 420px) {
  .start-team-actions > button { width: 100%; }
}
.mobile-table-detail-toggle { display: none; }
@media (max-width: 760px) {
  .mobile-table-detail-toggle { display: inline-flex; margin-block: 8px; }
  .mobile-compact-table:not(.mobile-all-columns) .mobile-secondary-column { display: none; }
  .mobile-compact-table:not(.mobile-all-columns) { width: 100%; min-width: 0; table-layout: auto; }
  .mobile-compact-table:not(.mobile-all-columns) :is(th, td) { width: auto; min-width: 0; }
  .mobile-compact-table:not(.mobile-all-columns) :is(th, td):nth-child(2) { left: 0; }
  .mobile-compact-table:not(.mobile-all-columns) :is(.squad-player-link, .contract-player-link, .training-table-player-link) { width: auto; min-width: 0; }
  .mobile-compact-table:not(.mobile-all-columns) :is(.squad-player-link, .contract-player-link, .training-table-player-link) strong { white-space: normal; overflow-wrap: anywhere; flex: 1 1 auto; }
  .training-assignment-table.mobile-compact-table:not(.mobile-all-columns) { min-width: 540px; }
  .mailbox-message-action, .fixture-report-button { min-width: 44px; min-height: 44px; }
}
.start-progress[hidden] { display: none; }
@media (max-width: 760px) {
}
/* Drei verbundene Schritte im bestehenden Vereinsstil. */
.start-page-header .start-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 1 260px; max-width: 440px; align-items: start; gap: 0; margin: 0; padding: 10px 4px; border-radius: 10px; background: rgba(12, 28, 22, 0.94); list-style: none; }
.start-page-header .start-progress[hidden] { display: none; }
.start-progress li { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; color: var(--ink); font-size: max(var(--fm-font-label), 11px); font-weight: 750; line-height: 1.3; }
.start-progress li:not(:last-child)::after { position: absolute; top: 14px; left: calc(50% + 18px); width: calc(100% - 36px); height: 2px; background: #819c8c; content: ""; }
.start-progress li.is-complete::after { background: var(--lime); }
.start-progress-marker { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #9ab3a6; border-radius: 50%; background: #183c2b; color: var(--ink); font-size: 13px; font-weight: 850; }
.start-progress .is-complete .start-progress-marker { border-color: var(--lime); background: var(--lime); color: #17221b; }
.start-progress [aria-current="step"] { color: var(--lime); font-weight: 800; }
.start-progress [aria-current="step"] .start-progress-marker { border-color: var(--lime); color: var(--lime); background: #293d26; box-shadow: 0 0 0 3px #10221d, 0 0 0 4px var(--lime); }
.start-progress-label { text-align: center; padding-inline: 4px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .start-page:has(.start-hero.is-setup) > .manager-header { flex-wrap: wrap; }
  .start-page-header .start-progress { order: 3; flex-basis: 100%; max-width: none; padding-block: 10px 14px; }
}
/* Spaltenüberschriften: 2 px kleiner, Tabellenwerte behalten ihre Größe. */
thead th { font-size: calc(var(--fm-font-label) - 2px); }
.league-table-section thead th { font-size: calc(var(--fm-font-data) - 1px); }
/* Einheitliche Spieleridentität in Kader, Verträgen, Training und Transfer. */
:is(.squad-table, .contracts-overview-table, .training-assignment-table) {
  --player-position-column-width: 56px;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table) :is(th, td):first-child {
  position: sticky; left: 0; z-index: 4;
  width: 56px; min-width: 56px; max-width: 56px;
  background: #1b2d25; text-align: center;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table) :is(th, td):nth-child(2) {
  position: sticky; left: 56px; z-index: 4;
  width: 1%; min-width: 176px; background: #1b2d25;
  box-shadow: 5px 0 8px -7px rgba(0, 0, 0, 0.9);
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table) th:nth-child(2) {
  text-align: center;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table) .player-name-column-measure {
  padding-inline: 54px;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table)
:is(.squad-player-link, .contract-player-link, .training-table-player-link) {
  display: flex; width: 100%; min-width: 0; min-height: 0;
  height: 100%; align-items: center; gap: 7px;
  padding: 2px 8px 2px 2px; border: 0; border-radius: 0;
  text-align: left; overflow: hidden;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table)
:is(.squad-player-link, .contract-player-link, .training-table-player-link) strong {
  flex: 0 1 auto; min-width: 0; font-size: var(--fm-font-data);
  font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table)
:is(.squad-player-link, .contract-player-link, .training-table-player-link) .talent-star {
  flex: 0 0 18px; margin-left: auto; margin-right: 0;
}
:is(.squad-table, .contracts-overview-table, .training-assignment-table)
:is(.player-name-portrait, .transfer-player-portrait) {
  flex: 0 0 28px; width: 28px; height: 28px; object-fit: cover; border-radius: 5px;
}
@media (max-width: 760px) {
  :is(.squad-table, .contracts-overview-table, .training-assignment-table).mobile-compact-table:not(.mobile-all-columns) :is(th, td):nth-child(2) {
    left: 0;
  }
}
/* Feste Chatfläche: Fortsetzungen nutzen denselben Platz. */
.ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"] {
  place-items: center; padding: 18px;
}
.ponzelar-chat-panel { height: 184px; min-height: 184px; max-height: 184px; }
.ponzelar-welcome-page, .ponzelar-welcome-reminder { min-height: 0; overflow: hidden; }
.ponzelar-event-digest { min-height: 0; flex: 1 1 auto; overflow: auto; }
.ponzelar-welcome-copy-wrap p.ponzelar-welcome-lead { margin: 0; }
@media (max-width: 640px) {
  .ponzelar-welcome-overlay, .ponzelar-welcome-overlay[data-ponzelar-mode="onboarding"] {
    place-items: center; padding: 10px;
  }
  .ponzelar-chat-panel { height: min(226px, 65dvh); min-height: min(226px, 65dvh); max-height: min(226px, 65dvh); }
}
/* Gruppe und Zeitraum auf einer gemeinsamen Filterzeile. */
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] { place-items: center; padding: 16px; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-welcome-dialog { width: min(720px, 100%); }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-welcome-figure { display: none; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-welcome-layout { display: block; width: 100%; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-welcome-copy-wrap { width: 100%; max-width: none; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-chat-panel { box-sizing: border-box; height: auto; min-height: 0; max-height: min(650px, calc(100dvh - 80px)); overflow: auto; padding-bottom: 48px; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-chat-panel::before { display: none; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-event-digest { padding: 22px; overflow: visible; }
.ponzelar-welcome-overlay[data-ponzelar-mode="event-digest"] .ponzelar-event-list { overflow: visible; max-height: none; }
.ponzelar-welcome-figure img,
.stadium-demolition-ponzelar img,
img[src="assets/ponzelar/ponzelar-chat-smooth-v2-20261011.png"] { image-rendering: auto; filter: none; }
.league-player-statistics-controls {
  display: grid; grid-template-columns: minmax(0, 280fr) minmax(0, 365fr);
  gap: 12px 16px; align-items: start;
}
.league-player-statistics-controls[hidden] { display: none; }
.league-player-statistics-controls .league-stat-filter-row-league,
.league-player-statistics-controls > .league-stat-filter-row:last-child { grid-column: 1 / -1; }
.league-player-statistics-controls .league-stat-filter-row-select { grid-column: 1; width: 100%; }
.league-player-statistics-controls .league-stat-filter-row-period { grid-column: 2; }
.league-stat-filter-row-period .league-stat-filter-list { flex-wrap: nowrap; }
.league-stat-filter-row-period .league-stat-filter-button { flex: 1 1 0; min-height: 38px; }
.league-player-statistics-controls #league-player-stat-group-select { min-height: 38px; }
@media (max-width: 600px) {
  .league-player-statistics-controls { grid-template-columns: minmax(0, 1fr); }
  .league-player-statistics-controls .league-stat-filter-row-period { grid-column: 1; }
}
/* Kompakte Sponsorübersicht mit unmittelbar sichtbaren Saisonangeboten. */
.sponsor-main-card {
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-areas: "copy visual" "offers visual" "values visual" "action visual";
  align-items: start; gap: 12px 18px;
}
.sponsor-current-copy { align-content: start; }
.sponsor-preview-offers { grid-area: offers; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sponsor-preview-offers[hidden] { display: none; }
.sponsor-main-action { align-self: start; min-height: 38px; height: auto; padding: 8px 14px; }
.sponsor-visual { min-height: 260px; height: 100%; max-height: 300px; }
.sponsor-shirt-placeholder { color: #cbd6cf; font-size: var(--fm-font-label); white-space: nowrap; opacity: .7; }
.sponsor-shirt-crest { position: absolute; top: 39%; left: 62%; width: 22px; height: 26px; transform: rotate(-3deg); }
.sponsor-shirt-crest .team-crest { width: 100%; height: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.sponsor-shirt-crest .team-crest img { background: transparent; }
.sponsor-economy-grid:empty { display: none; }
@media (max-width: 900px) {
  .sponsor-main-card { grid-template-columns: minmax(0, 1fr) 220px; }
  .sponsor-preview-offers { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sponsor-main-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "offers" "values" "action" "visual"; padding: 12px; }
  .sponsor-visual { height: 260px; }
  .sponsor-main-action { min-height: 44px; width: 100%; }
}
.training-method .training-focus-tiers {
  display: table; width: max-content; min-width: 0; max-width: 100%; margin-top: 7px;
  border: 0; border-collapse: collapse; background: transparent;
  color: var(--muted); font-size: var(--fm-font-label); line-height: 1.5;
  font-weight: 500;
}
.training-focus-tiers th, .training-focus-tiers td {
  height: auto; padding: 1px 0; border: 0; background: transparent;
  color: var(--muted); font-size: inherit; line-height: inherit;
  font-weight: 500; letter-spacing: normal; text-transform: none; text-align: left;
}
.training-focus-tiers th { padding-bottom: 4px; }
.training-focus-tiers :is(th, td):first-child { padding-right: 12px; white-space: nowrap; }
.training-focus-tiers tbody td { white-space: nowrap; }
.training-focus-tiers .training-focus-exp { color: var(--stat-experience); font-weight: 850; }
.training-details-open { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; flex: 0 0 auto; min-height: 44px; padding: 4px 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; box-shadow: none; color: var(--muted); font-size: calc(var(--fm-font-label) + 2px); font-weight: 700; }
.training-details-open:hover { border-color: rgba(244,241,233,.12); background: rgba(255,255,255,.035); color: var(--ink); }
.training-details-open:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.training-details-open > .training-info-icon { display: block; flex: 0 0 14px; width: 14px; height: 14px; }
.training-details-dialog {
  box-sizing: border-box; width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  overflow-y: auto; padding: 22px; border: 1px solid #76865b; border-radius: 18px;
  background: linear-gradient(145deg, #213c30, #10271f); color: var(--ink);
  box-shadow: inset 0 1px #d7d8a426, 0 24px 80px #0009;
}
.training-details-dialog::backdrop { background: rgba(5, 14, 11, .72); backdrop-filter: blur(3px); }
.training-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #b7c79926; }
.training-details-heading h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.training-details-heading form { margin: 0; }
.training-details-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.training-details-methods .training-method { position: relative; isolation: isolate; display: block; min-width: 0; overflow: hidden; padding: 148px 16px 18px; border: 1px solid rgba(195,230,106,.24); border-radius: 12px; background: #10271f; text-align: left; }
.training-details-methods .training-method > img { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.training-details-methods .training-method::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(5,19,13,.02), rgba(9,29,21,.16) 30%, rgba(16,39,31,.75) 60%, rgba(16,39,31,.97)); content: ''; pointer-events: none; }
.training-details-methods .training-method-copy { min-width: 0; width: 100%; }
.training-details-methods .training-method h3 { display: inline-block; margin: 0 0 12px; color: #f2e5b8; font-size: 24px; font-weight: 950; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; text-shadow: 0 2px 3px #06110d; transform: rotate(-2deg); }
.training-details-methods .training-method p { margin: 5px 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.training-details-methods .training-method-condition { color: #f3bd58; }
.training-details-methods .training-method--recovery .training-method-condition { color: #83d4c3; }
.training-details-methods .training-method-experience { color: #f3d77f; }
.training-details-methods .training-focus-tiers { margin: 10px 0 0; width: 100%; font-size: 12px; color: #d8e1da; }
.training-details-methods .training-focus-tiers :is(th, td) { padding-block: 3px; }
.training-details-methods .training-focus-tiers thead th { color: #c2d2c8; font-size: 11px; }
.training-details-methods .training-focus-tiers tbody td { color: #d8e1da; }
.training-details-methods .training-focus-tiers .training-focus-exp { color: #f3d77f; }
.training-details-guidance { margin: 20px 0 18px; }
.training-details-guidance h3 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.training-details-guidance dl { margin: 0; }
.training-details-guidance dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.training-details-guidance dt { color: var(--lime); font-size: 13px; font-weight: 800; }
.training-details-guidance dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.training-details-footer { display: flex; justify-content: flex-end; margin: 0; padding-top: 14px; border-top: 1px solid #b7c79926; }
@media (max-width: 600px) {
  .training-details-methods { grid-template-columns: 1fr; }
  .training-details-methods .training-method { padding: 124px 18px 18px; }
  .training-details-guidance dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .training-details-heading h2 { font-size: 20px; }
  .training-details-footer .control-button { min-height: 44px; width: 100%; }
}
@media (max-width: 640px) {
  .training-details-open { min-height: 44px; margin-left: auto; padding-inline: 10px; }
  .training-details-dialog { padding: 14px; }
}
/* Kompakte, zusammenhängende Auswahl der Transferfilter. */
.transfer-market-range-switcher {
  display: flex; gap: 0; overflow: hidden; border: 1px solid var(--line);
  border-radius: 8px; background: #11231c;
}
.transfer-market-range-switcher .transfer-market-range-button {
  display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center;
  gap: 7px; width: auto; min-width: 0; min-height: 36px; padding: 6px 10px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted);
}
.transfer-market-range-switcher .transfer-market-range-button + .transfer-market-range-button { border-left: 1px solid var(--line); }
.transfer-market-range-switcher .transfer-market-range-button.is-active {
  background: rgba(195, 230, 106, .08); color: var(--lime); box-shadow: inset 0 -2px var(--lime);
}
.transfer-market-range-switcher .transfer-market-range-button:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }
.transfer-segment-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.transfer-segment-euro { width: 16px; font-size: 16px; font-weight: 700; }
@media (pointer: coarse) { .transfer-market-range-switcher .transfer-market-range-button { min-height: 44px; } }
/* Vertragsaktionen bleiben sichtbar; nur bei knappen Viewports scrollt das Dokument. */
#player-profile-contract-panel {
  display: flex; flex-direction: column; min-height: 0;
  overflow: hidden; scrollbar-gutter: auto;
}
#player-profile-contract-panel[hidden] { display: none; }
#player-profile-contract-panel .profile-contract-tab-content {
  display: flex; flex-direction: column; flex: 1 1 auto;
  min-height: 0; overflow: hidden;
}
#player-profile-contract-panel .profile-contract-offer-slide {
  flex: 0 1 auto; max-height: 40%; overflow-y: auto;
}
#player-profile-contract-panel .profile-contract-comparison-slide {
  display: grid; grid-template-rows: auto auto; align-content: start; gap: 8px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
#player-profile-contract-panel .profile-contract-slide[hidden] { display: none; }
#player-profile-contract-panel .player-contract-document {
  min-height: 0; overflow: visible; padding-bottom: 0;
}
#player-profile-contract-panel .profile-contract-actions {
  flex: 0 0 auto; margin: 0 16px 12px; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
#player-profile-contract-panel .player-contract-document-heading {
  margin-bottom: 8px; padding-block: 8px; gap: 10px;
}
#player-profile-contract-panel .contract-document-crest { width: 36px; height: 40px; flex-basis: 36px; }
#player-profile-contract-panel .player-contract-document-heading h3 { margin: 0; font-size: var(--fm-font-dialog); }
#player-profile-contract-panel .player-contract-document-heading::after { display: none; }
#player-profile-contract-panel .profile-contract-action-list[hidden],
#player-profile-contract-panel .profile-contract-action-button[hidden],
#player-profile-contract-panel .profile-contract-transfer-footer[hidden] { display: none; }
#player-profile-contract-panel .profile-contract-action-list { display: grid; box-sizing: border-box; width: 100%; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.profile-contract-transfer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-block-start: 12px; }
.profile-contract-transfer-footer .profile-contract-offer-actions { margin: 0; }
.profile-contract-transfer-footer .control-button { min-height: 44px; }
#player-profile-contract-panel .is-transfer-contract .profile-contract-current,
#player-profile-contract-panel .is-transfer-contract .profile-contract-comparison-head > :nth-child(2) { display: none; }
#player-profile-contract-panel .is-transfer-contract .profile-contract-comparison-head,
#player-profile-contract-panel .is-transfer-contract .profile-contract-comparison-grid { grid-template-columns: minmax(110px, 1fr) minmax(0, 1fr); }
/* Vereinsangebote folgen der kompakten Vertragsansicht mit festem Abschluss. */
#player-profile-contract-panel .profile-contract-tab-content:has(.is-transfer-contract) { gap: 8px; }
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-offer-slide {
  width: min(100%, 520px); flex: 0 0 auto; max-height: none; overflow: visible;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-comparison-slide {
  width: min(100%, 520px); gap: 0; border: 1px solid var(--line);
  border-radius: 10px 12px 10px 12px;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-offer-controls {
  padding: 10px 12px; gap: 5px; border: 0;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-offer-controls-heading {
  align-items: center; min-height: 36px;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-offer-controls-heading h4 {
  min-height: 0; margin: 0; font-size: var(--fm-font-dialog);
}
#player-profile-contract-panel:has(.is-transfer-contract) .club-offer-fee-summary {
  min-height: 36px; padding: 6px 10px; gap: 8px; border-radius: 7px;
}
#player-profile-contract-panel:has(.is-transfer-contract) .player-contract-document {
  padding-bottom: 16px;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-comparison-head > span {
  padding-block: 7px;
}
#player-profile-contract-panel .is-transfer-contract .profile-contract-labels > span,
#player-profile-contract-panel .is-transfer-contract .profile-contract-value-row {
  min-height: 37px; box-sizing: border-box; padding-block: 6px;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-actions {
  margin: 0 16px 12px; padding: 0; border: 0; border-radius: 0; background: transparent;
}
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-transfer-footer .control-button {
  box-sizing: border-box; min-height: 36px; padding-block: 4px; line-height: 1.2;
}
@media (max-width: 600px) {
  #player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-offer-controls-heading {
    grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  }
  #player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-offer-controls-heading h4 { font-size: var(--fm-font-data); }
  #player-profile-contract-panel:has(.is-transfer-contract) .club-offer-fee-summary { flex: 0 1 auto; gap: 5px; padding-inline: 7px; }
  .profile-contract-transfer-footer { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .profile-contract-transfer-footer .profile-contract-offer-actions { display: flex; }
  .profile-contract-transfer-footer .control-button { width: 100%; }
  #player-profile-contract-panel .profile-contract-action-list { grid-template-columns: 1fr; gap: 6px; }
  #player-profile-contract-panel .profile-contract-actions { margin: 0 10px 10px; padding: 0; }
  #player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-actions { margin: 0 10px 10px; padding: 0; }
  #player-profile-contract-panel .profile-transfer-listing-content { max-height: 15dvh; overflow-y: auto; }
}
#player-profile-contract-panel .profile-contract-comparison-slide,
#player-profile-contract-panel:has(.is-transfer-contract) .profile-contract-comparison-slide {
  border: 0; border-radius: 0; background: transparent;
}
#player-profile-contract-panel .player-contract-document .profile-contract-comparison { border: 0; border-radius: 0; background: transparent; }
/* Stadionanzeige für die aktuelle Aufstellungsstärke. */
.team-rating-grid { gap: 12px; }
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px;
  align-items: center; gap: 10px; height: auto; min-height: 44px;
  overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-code {
  display: grid; place-items: center; padding: 7px 0;
  background: #0c1c15; color: var(--role-color); border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--role-color) 45%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  font-size: var(--fm-font-label); font-weight: 850;
}
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-center { display: grid; gap: 5px; min-width: 0; }
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-row .team-rating-bar-label {
  display: block; width: auto; max-width: none; padding: 0;
  border: 0; border-radius: 0; background: transparent; text-align: left;
  color: var(--ink); font-size: var(--fm-font-data); font-weight: 700;
}
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-track {
  height: 15px; overflow: hidden; background: #091712; transform: skewX(-12deg);
}
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-fill {
  display: block; height: 100%; border-radius: 0; box-shadow: none;
  background: repeating-linear-gradient(90deg, var(--role-color) 0, var(--role-color) 14px, #142820 14px, #142820 17px);
  transition: width .24s ease;
}
:is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-value {
  color: var(--role-color); font-size: 22px; font-weight: 850;
  text-align: right; font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  :is(.team-rating-grid, .team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-fill { transition: none; }
}

.team-dashboard-identity-strength { --role-color: var(--stadium-overall-color); }
.team-rating-stat-card[data-role="OVERALL"] .stadium-rating-row { --role-color: var(--stadium-overall-color); }

/* Live appearance is a browser preference, separate from the saved match. */
.live-appearance-help { color: var(--muted); font-size: var(--fm-font-label); }
.live-appearance-help summary { display: flex; align-items: center; min-height: 32px; color: var(--lime); cursor: pointer; }
.live-appearance-help p { margin: 6px 0; line-height: 1.5; }
.game-menu-panel { max-height: calc(100dvh - 90px); overflow-y: auto; }

/* Spieltagkarte mit Stadionanzeigen und direktem Zugang zur Partie. */
.dashboard-match-overview.is-first-match { grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); }
.dashboard-season-start { margin: 12px 0; color: var(--muted); font-size: var(--fm-font-text); }
.dashboard-club-link { border: 0; padding: 4px 2px; background: transparent; color: var(--ink); font: inherit; font-weight: 850; cursor: pointer; }
.dashboard-club-link:hover { color: var(--lime); text-decoration: underline; }
.dashboard-club-link:focus-visible, .dashboard-report-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.dashboard-match-block-result .dashboard-match-block-content { position: relative; padding-top: 0; }
.dashboard-report-link { position: static; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto; padding: 6px; border: 0; border-radius: 0; background: transparent; color: var(--lime); cursor: pointer; }
.dashboard-report-link svg { width: 18px; height: 18px; }
@media (pointer: coarse) { .dashboard-report-link { width: 44px; height: 44px; } .dashboard-club-link { min-height: 44px; } }
.dashboard-club-status { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.dashboard-club-status h3 { margin: 0 0 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dashboard-status-ok { display: flex; align-items: center; gap: 9px; min-height: 32px; margin: 0; color: var(--lime); font-size: 13px; }
.dashboard-status-ok-icon, .dashboard-status-topic-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.dashboard-status-ok-icon svg, .dashboard-status-topic-icon svg { display: block; width: 100%; height: 100%; }
.dashboard-status-list { display: grid; gap: 2px; }
.dashboard-status-alert { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 4px 2px; border: 0; border-radius: 4px; background: transparent; color: var(--gold); font: inherit; text-align: left; cursor: pointer; }
.dashboard-status-alert:hover { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.dashboard-status-alert:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.dashboard-status-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; min-width: 0; line-height: 1.25; }
.dashboard-status-copy strong { color: var(--ink); font-size: 12px; font-weight: 850; }
.dashboard-status-copy > span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.dashboard-status-chevron { width: 14px; height: 14px; flex: 0 0 14px; margin-left: auto; opacity: .72; }
.dashboard-status-alert:hover .dashboard-status-chevron { opacity: 1; }
@media (pointer: coarse) { .dashboard-status-alert { min-height: 44px; } }
@media (min-width: 901px) { .dashboard-team-slide, .dashboard-match-overview-card { min-height: 420px; } }
.dashboard-match-overview .dashboard-match-block[hidden], .dashboard-match-divider[hidden], .dashboard-open-match[hidden] { display: none; }
.dashboard-match-overview .dashboard-fixture-team { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.dashboard-match-overview .dashboard-fixture-team-crest { width: 52px; height: 58px; flex: 0 0 58px; }
.dashboard-match-overview .fixture-team-copy { width: 100%; min-width: 0; }
.dashboard-match-overview .fixture-team-name { display: block; font-size: 13px; line-height: 1.25; }
.dashboard-match-overview .fixture-team-meta { justify-content: center; margin-top: 7px; }
.dashboard-match-overview .dashboard-fixture-score strong { font-size: 22px; color: var(--muted); }
.dashboard-match-block-upcoming .dashboard-fixture-score strong { letter-spacing: .06em; font-size: 17px; }
.dashboard-stadium-strength { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 7px; align-items: center; width: min(100%, 150px); }
.dashboard-stadium-track { display: block; height: 9px; background: #091712; transform: skewX(-12deg); overflow: hidden; }
.dashboard-stadium-track > span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--stadium-overall-color) 0, var(--stadium-overall-color) 7px, #142820 7px, #142820 9px); }
.dashboard-stadium-strength > b { color: var(--stadium-overall-color); font-size: 14px; font-variant-numeric: tabular-nums; }
.dashboard-open-match { min-height: 44px; margin-top: 14px; width: 100%; }
.dashboard-club-summary { width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.dashboard-club-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 0; margin: 0 0 14px; }
.dashboard-club-metrics > div { min-width: 0; padding-right: 12px; }
.dashboard-club-metrics > div:nth-child(even) { padding-left: 14px; padding-right: 0; border-left: 1px solid var(--line); }
.dashboard-club-metrics dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dashboard-club-metrics svg, .dashboard-readiness-hint svg { width: 15px; height: 15px; flex: 0 0 15px; }
.dashboard-club-metrics svg { color: var(--lime); }
.dashboard-club-metrics > div:first-child svg { color: var(--role-def); }
.dashboard-club-metrics > div:nth-child(2) svg { color: var(--role-mid); }
.dashboard-club-metrics dd { margin: 3px 0 0; color: var(--lime); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-readiness-hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--gold); font-size: 12px; }
.dashboard-club-metrics .roster-meter { width: min(100%, 150px); max-width: 150px; }
.dashboard-match-block-result .dashboard-fixture-team-crest { width: 34px; height: 38px; flex-basis: 38px; }
.dashboard-match-block-result .dashboard-fixture-team { gap: 4px; }
@media (max-width: 420px) {
  .dashboard-match-overview .dashboard-fixture-pairing { grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr); gap: 5px; }
  .dashboard-match-overview .fixture-team-name { font-size: 12px; }
}

/* Vereinsauswahl: Liste und ausgewähltes Vereinsprofil. */
.start-team-focus-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.start-team-panel .start-team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.start-team-panel .start-team-card { display: block; min-height: 0; padding: 0; border: 1px solid transparent; background: transparent; box-shadow: none; border-radius: 8px; }
.start-team-panel .start-team-card.selected { border-color: rgba(195, 230, 106, .6); background: rgba(195, 230, 106, .10); box-shadow: none; }
.start-team-panel .start-team-select { display: grid; grid-template-columns: 34px minmax(0, 1fr) 32px; width: 100%; min-height: 43px; gap: 10px; padding: 5px 9px; }
.start-team-panel .start-team-crest { width: 32px; height: 32px; }
.start-team-panel .start-team-card-heading strong { font-size: 15px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.start-team-list-strength { color: var(--ink); font-size: 18px; font-weight: 850; text-align: right; font-variant-numeric: tabular-nums; }
.start-team-focus { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(ellipse at 100% 0%, rgba(195, 230, 106, 0.075), transparent 52%), linear-gradient(145deg, #213b2e, #14271f); }
#start-team-focus-content { position: relative; z-index: 1; }
.start-team-focus-watermark {
  position: absolute; z-index: -1; top: -20px; right: -22px; display: block;
  width: 220px; height: 240px; opacity: var(--team-watermark-opacity); pointer-events: none; user-select: none;
}
.start-team-focus-watermark .start-team-crest { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.start-team-focus-watermark img { width: 100%; height: 100%; object-fit: contain; }
.start-team-focus .start-team-focus-crest { width: 92px; height: 101px; margin: 0; }
.start-team-focus-head { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 16px; text-align: left; }
.start-team-focus-head-copy { display: block; min-width: 0; }
.start-team-focus h3 { margin: 0 0 4px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; text-align: left; overflow-wrap: anywhere; }
.start-team-focus-note {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  justify-content: flex-start; padding: 0; margin: 2px 0 0; border: 0; border-radius: 0;
  background: transparent; color: #d2dfd3; font-size: 13px; font-weight: 750;
  line-height: 1.35; letter-spacing: .025em; text-align: left; overflow-wrap: anywhere;
}
.start-team-focus-note > .league-stage-badge { position: static; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.start-team-focus-strength { --role-color: var(--stadium-overall-color); width: calc(100% - 108px); margin: 10px 0 0 108px; }
.start-team-focus-strength .stadium-rating-value { font-size: 24px; }
.start-team-focus-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 10px 0 0; margin: 14px 0 0; border: 0; border-top: 1px solid rgba(137, 164, 153, 0.28); border-radius: 0; background: transparent; box-shadow: none; }
.start-team-focus-metrics > div { min-width: 0; padding: 3px 12px; }
.start-team-focus-metrics > div + div { border-left: 1px solid rgba(137, 164, 153, 0.22); }
.start-team-focus-metrics > div:first-child { padding-left: 0; }
.start-team-focus-metrics dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.075em; line-height: 1.3; text-transform: uppercase; }
.start-team-focus-metrics dd { margin: 6px 0 0; color: var(--lime); font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; }
.start-team-focus-metrics > div:last-child { grid-column: auto; }
.start-team-focus-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; margin-top: 22px; }
.start-team-focus-actions .control-button { width: 100%; min-width: 0; min-height: 44px; align-self: stretch; }
@media (max-width: 700px) {
  .start-team-focus-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .start-team-focus { grid-row: 1; padding: 16px; }
  .start-team-focus .start-team-focus-crest { float: none; width: 70px; height: 82px; margin: 0; }
  .start-team-focus-head { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
  .start-team-focus-strength { width: calc(100% - 82px); margin: 12px 0 0 82px; }
  .start-team-focus-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 6px; }
  .start-team-focus-metrics > div:last-child { grid-column: 1 / -1; margin-top: 10px; padding: 10px 12px 2px; border-top: 1px solid rgba(137, 164, 153, 0.22); border-left: 0; }
  .start-team-focus-actions { margin-top: 16px; }
  .start-team-panel .start-team-actions > button { width: auto; }
}

@media (max-width: 420px) {
  .start-team-focus { padding: 16px; }
  .start-team-focus h3 { font-size: 20px; }
  .start-team-focus-watermark { top: -14px; right: -18px; width: 180px; height: 200px; }
}
@media (max-width: 340px) {
  .start-team-focus-metrics { grid-template-columns: minmax(0, 1fr); padding: 8px 6px; }
  .start-team-focus-metrics > div + div { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(137, 164, 153, 0.22); border-left: 0; }
  .start-team-focus-metrics > div:last-child { grid-column: auto; }
}
/* Ruhiger Spielerkopf: Identität, Marktwert, eine Kennzahlenreihe. */
.player-profile-heading { grid-template-columns: 144px minmax(0, 1fr); gap: 20px; padding: 14px; border: 1px solid rgba(195,230,106,.25); border-radius: 16px; background: radial-gradient(ellipse at 10% 0%, rgba(195,230,106,.07), transparent 70%), #172a22; }
.player-profile-heading .player-profile-avatar-column { grid-column: 1; grid-row: 1; align-self: stretch; }
.player-profile-heading .profile-avatar { width: 100%; height: 100%; min-height: 190px; border: 0; background: transparent; box-shadow: none; overflow: hidden; }
.player-profile-header-summary { position: relative; grid-column: 2; grid-row: 1; width: 100%; max-width: none; grid-template-columns: minmax(0,1fr); padding: 4px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.player-profile-header-metrics .player-profile-team-link { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 32px; padding: 0; }
.player-profile-header-metrics .player-profile-team-crest { position: static; flex: 0 0 26px; width: 26px; height: 28px; border: 0; border-radius: 0; background: transparent; }
.player-profile-header-metrics .player-profile-team-crest img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.player-profile-header-ges-stat > strong { position: relative; padding-bottom: 3px; color: var(--stat-overall-bright); }
.player-profile-header-metrics { grid-template-columns: max-content max-content minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 0 12px; }
.player-profile-header-identity { padding: 0 36px 0 0; border: 0; }
.player-profile-header-name { font-size: 22px; }
.player-profile-header-metrics .player-profile-identity { display: grid; grid-column: 1 / -1; grid-row: 2; justify-items: start; gap: 1px; margin: 4px 0 0; border: 0; }
.player-profile-header-metrics .player-profile-team-link { color: var(--muted); }
.player-profile-injury-status { display: inline-flex; max-width: 100%; align-items: center; gap: 5px; margin-top: 3px; padding: 3px 7px; border: 1px solid rgba(239, 141, 123, 0.4); border-radius: 7px 9px 7px 9px; background: rgba(239, 141, 123, 0.1); color: var(--red); font-size: var(--fm-font-label); font-weight: 850; line-height: 1.2; }
.player-profile-injury-status::before { content: "🩹"; line-height: 1; }
.player-profile-injury-status[hidden] { display: none; }
.player-profile-header-market-stat { grid-row: 3; padding: 10px 0 14px; background: transparent; border-bottom: 1px solid var(--line); }
.player-profile-header-market-stat .player-profile-header-stat-heading { color: var(--muted); overflow: visible; }
.player-profile-header-market-value > strong { font-size: 28px; line-height: 1.1; }
.player-profile-header-stat:not(.player-profile-header-market-stat) { grid-row: 4; border: 0; padding: 10px 0 0; min-height: 0; }
.player-profile-header-stat:not(.player-profile-header-market-stat) .player-profile-header-stat-value { font-size: 13px; }
.player-profile-header-talent-stat > .player-profile-header-stat-heading, .player-profile-header-age-stat > .player-profile-header-stat-heading { display: none; }
.player-profile-header-ges-stat { display: flex; gap: 5px; align-items: center; }
@media (max-width:699px) { .player-profile-header-name { font-size:20px; } .player-profile-header-market-value > strong { font-size:26px; } }
@media (max-width: 520px) {
  .player-profile-heading { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .player-profile-heading .profile-avatar { min-height: 140px; object-position: center; }
  .player-profile-header-metrics { grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; }
  .player-profile-header-ges-stat { grid-column: 1 / -1; grid-row: 5 !important; }
  .player-profile-header-name { white-space: normal; overflow-wrap: anywhere; font-size: 19px; }
  .player-profile-header-metrics .player-profile-team-link { white-space: normal; text-align: left; }
  .player-profile-header-metrics .player-profile-team-link strong { white-space: normal; }
}

/* Tabellenbalken behalten auch beim horizontalen Scrollen lesbare Werte. */
.training-table-condition .roster-meter { min-width: 100px; }

/* Spielerakte: Profil und Auswahl links, die aktive Detailansicht rechts. */
#player-profile > .player-profile-dialog { position: relative; isolation: isolate; width: min(1080px, 100%); height: min(640px, calc(100dvh - 32px)); max-height: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
#player-profile .player-profile-toolbar, #player-profile .player-profile-workspace { position: relative; z-index: 1; }
#player-profile .player-profile-workspace { display: grid; grid-template-columns: minmax(400px, 0.9fr) minmax(0, 1.1fr); gap: 14px; min-width: 0; min-height: 0; }
#player-profile .player-profile-sidebar { display: grid; grid-template-rows: auto auto; align-content: start; gap: 10px; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#player-profile .player-profile-heading { grid-template-columns: minmax(112px, 0.62fr) minmax(0, 1fr); grid-template-rows: minmax(176px, auto); align-items: stretch; gap: 10px; margin: 0; padding: 12px; }
#player-profile .player-profile-heading .player-profile-avatar-column { grid-column: 1; grid-row: 1; min-height: 176px; margin-bottom: -12px; }
#player-profile .player-profile-heading .profile-avatar { width: 100%; height: 100%; min-height: 176px; object-position: center; border-radius: 0; }
#player-profile .player-profile-heading .profile-avatar > img { object-position: center bottom; border-radius: 0; }
#player-profile .player-profile-header-summary { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); align-self: stretch; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#player-profile .player-profile-header-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; align-content: start; gap: 0 6px; }
#player-profile .player-profile-header-identity { grid-column: 1 / -1; grid-row: 1; min-height: 28px; padding: 0 36px 1px 0; }
#player-profile .player-profile-identity { grid-column: 1 / -1; grid-row: 2; display: block; margin: 0; padding: 0; }
#player-profile .player-profile-identity .player-profile-team-link { min-height: 26px; }
#player-profile .player-profile-header-market-stat { grid-column: 1 / -1; grid-row: 3; justify-items: start; padding: 9px 0 10px; border-bottom: 1px solid var(--line); text-align: left; }
#player-profile .player-profile-header-stat:not(.player-profile-header-market-stat) { min-height: 0; justify-items: start; padding: 8px 0 0; border: 0; text-align: left; }
#player-profile .player-profile-header-talent-stat { grid-column: 1; grid-row: 4; }
#player-profile .player-profile-header-age-stat { grid-column: 2; grid-row: 4; }
#player-profile .player-profile-header-ges-stat { grid-column: 3; grid-row: 4; }
#player-profile .player-profile-header-market-value > strong { font-size: 18px; }
#player-profile .profile-main-tabs { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 4px; }
#player-profile .profile-main-tab { flex: 0 0 auto; width: 100%; min-height: 42px; padding: 8px 12px; text-align: left; }
#player-profile .player-profile-detail-content { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
#player-profile .player-profile-detail-content > .profile-main-panel,
#player-profile .player-profile-detail-content > .profile-statistics-section,
#player-profile .player-profile-detail-content > .profile-contract-tab-panel { grid-area: 1 / 1; min-width: 0; min-height: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#player-profile .player-profile-detail-content > .profile-contract-tab-panel { padding: 6px 12px 10px; border: 0; border-radius: 0; background: transparent; }
#player-profile .player-profile-detail-content > .profile-main-panel { display: grid; align-content: start; gap: 10px; }
#player-profile .player-profile-detail-content > .profile-main-panel[hidden],
#player-profile .player-profile-detail-content > .profile-statistics-section[hidden],
#player-profile .player-profile-detail-content > .profile-contract-tab-panel[hidden] { display: none; }
#player-profile .profile-current-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "development" "stats" "condition"; gap: 10px; }
#player-profile .profile-current-column-main .profile-stats-section { grid-area: stats; }
#player-profile .profile-current-column-side .profile-condition-section { grid-area: condition; }
#player-profile .profile-current-column-side .profile-development-section { grid-area: development; }

@media (max-width: 760px) {
  #player-profile > .player-profile-dialog { height: min(760px, calc(100dvh - 24px)); gap: 8px; }
  #player-profile .player-profile-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  #player-profile .player-profile-sidebar { grid-template-rows: auto auto; gap: 8px; overflow: visible; }
  #player-profile .player-profile-heading { grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr); grid-template-rows: minmax(144px, auto); gap: 8px 12px; padding: 10px; }
  #player-profile .player-profile-heading .player-profile-avatar-column,
  #player-profile .player-profile-heading .profile-avatar { min-height: 144px; }
  #player-profile .player-profile-heading .player-profile-avatar-column { margin-bottom: -10px; }
  #player-profile .profile-main-tabs { flex-direction: row; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  #player-profile .profile-main-tab { flex: 1 0 88px; width: auto; min-height: 40px; text-align: center; }
  #player-profile .player-profile-detail-content { min-height: 0; }
}

@media (max-width: 520px) {
  #player-profile .player-profile-heading { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 8px; }
  #player-profile .player-profile-heading .player-profile-avatar-column,
  #player-profile .player-profile-heading .profile-avatar { min-height: 132px; }
  #player-profile .player-profile-heading .player-profile-avatar-column { margin-bottom: -8px; }
  #player-profile .player-profile-header-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 4px; }
  #player-profile .player-profile-header-ges-stat { grid-column: 3; grid-row: 4 !important; }
  #player-profile .player-profile-header-name { font-size: 18px; }

}

/* Spielerakte: klare Zeilen statt verschachtelter Karten */
#player-profile .profile-current-layout { gap: 0; }
#player-profile .profile-current-layout .profile-section { padding: 10px 2px; border: 0; border-radius: 0; background: transparent; }
#player-profile .profile-current-layout .profile-stats-section,
#player-profile .profile-current-layout .profile-condition-section { border-top: 1px solid rgba(244, 241, 233, 0.12); }
#player-profile .profile-current-layout .profile-development-section { border-top: 0; }
#player-profile .profile-current-layout .profile-section .card-title-row { margin-bottom: 6px; }
#player-profile .profile-stat-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
#player-profile :is(.profile-stat-list, .profile-development-main, .profile-status-meters) { width: calc((100% - 14px) / 2); }
#player-profile .profile-stat { --profile-row-accent: var(--cyan); min-width: 0; }
#player-profile .profile-stat-speed { --profile-row-accent: var(--stat-speed); }
#player-profile .profile-stat-duels { --profile-row-accent: var(--stat-duels); }
#player-profile .profile-stat-shot { --profile-row-accent: var(--stat-shot); }
#player-profile .profile-stat-passing { --profile-row-accent: var(--stat-passing); }
#player-profile .profile-stat-ballControl { --profile-row-accent: var(--stat-ball-control); }
#player-profile .profile-stat-list .profile-rating-bar-stat,
#player-profile .profile-status-meter-condition .profile-rating-bar-condition,
#player-profile .profile-development-main .profile-rating-bar-experience {
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--profile-bar-color) 20%, transparent) 0 4px, transparent 4px);
  box-shadow: none;
}
#player-profile .profile-stat-list .profile-rating-bar-stat > span:first-child,
#player-profile .profile-status-meter-condition .profile-rating-bar-condition > span:first-child,
#player-profile .profile-development-main .profile-rating-bar-experience > span:first-child {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px !important;
  border-radius: 999px;
  box-shadow: none;
}
#player-profile .profile-stat-list .team-rating-bar-copy-fill,
#player-profile .profile-status-meter-condition .profile-rating-bar-condition .team-rating-bar-copy-fill,
#player-profile .profile-development-main .profile-rating-bar-experience .team-rating-bar-copy-fill { display: none; }
#player-profile .profile-stat-list .team-rating-bar-copy-rest,
#player-profile .profile-status-meter-condition .profile-rating-bar-condition .team-rating-bar-copy-rest,
#player-profile .profile-development-main .profile-rating-bar-experience .team-rating-bar-copy-rest {
  inset: 0 0 8px;
  gap: 7px;
  padding: 0;
  clip-path: none;
  color: var(--ink);
}
#player-profile .profile-stat-list .team-rating-stat-code { border-color: var(--profile-row-accent); background: color-mix(in srgb, var(--profile-row-accent) 13%, rgba(8, 18, 15, 0.85)); color: var(--profile-row-accent); }
#player-profile .profile-stat-list .team-rating-bar-label,
#player-profile .profile-status-meter-condition .profile-rating-bar-condition .team-rating-bar-label,
#player-profile .profile-development-main .profile-rating-bar-experience .team-rating-bar-label {
  min-width: 0;
  max-width: none;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
#player-profile .profile-stat-list .profile-rating-value,
#player-profile .profile-status-meter-condition .profile-rating-bar-condition .profile-rating-value,
#player-profile .profile-development-main .profile-rating-bar-experience .profile-rating-value { color: var(--ink); font-size: var(--fm-font-label); }
#player-profile .profile-status-meter-compact { gap: 0; min-height: 0; padding: 0; }
#player-profile .profile-status-meter-compact .profile-status-meter-notes { height: auto; min-height: 0; margin-top: 0; overflow: visible; }
#player-profile .profile-status-meter-compact .profile-status-meter-notes:empty { display: none; }
#player-profile .profile-development-strip { padding: 0; }

@media (max-width: 520px) {
  #player-profile :is(.profile-stat-list, .profile-development-main, .profile-status-meters) { width: 100%; }
  #player-profile .profile-stat-list { gap: 3px; }
}

/* Spielerakte: kompakte, gleichmäßige Reiternavigation */
#player-profile .profile-main-tabs {
  align-content: start;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
#player-profile .profile-main-tab {
  position: relative;
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
#player-profile .profile-main-tab::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
  content: "";
  opacity: 0;
  transition: opacity 140ms ease;
}
#player-profile .profile-main-tab-icon { display: block; flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
#player-profile .profile-main-tab > span { min-width: 0; }
#player-profile .profile-main-tab:hover:not(.active) { border-color: rgba(195, 230, 106, 0.18); background: rgba(255, 255, 255, 0.035); color: var(--ink); }
#player-profile .profile-main-tab:focus-visible { border-color: rgba(195, 230, 106, 0.5); outline: 2px solid rgba(195, 230, 106, 0.55); outline-offset: 2px; color: var(--ink); }
#player-profile .profile-main-tab.active { border-color: rgba(195, 230, 106, 0.25); background: rgba(195, 230, 106, 0.075); color: var(--lime); }
#player-profile .profile-main-tab.active::before { opacity: 1; }

@media (max-width: 760px) {
  #player-profile .profile-main-tabs { flex-direction: row; gap: 5px; padding: 0; overflow: visible; }
  #player-profile .profile-main-tab { flex: 1 1 0; width: auto; min-width: 0; min-height: 42px; padding: 0 5px; justify-content: center; gap: 7px; text-align: center; }
  #player-profile .profile-main-tab::before { top: auto; right: 8px; bottom: 0; left: 8px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
}

@media (max-width: 400px) {
  #player-profile .profile-main-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Spielerakte: Statistik als ruhige Zeilen statt verschachtelter Rahmen */
#player-profile .player-profile-detail-content > .profile-statistics-section { padding: 4px 0; border: 0; border-radius: 0; background: transparent; }
#player-profile .profile-statistics-comparison-wrap { width: 100%; max-width: none; margin: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
#player-profile .profile-statistics-comparison th,
#player-profile .profile-statistics-comparison td { padding: 6px 8px; border-bottom: 1px solid rgba(244, 241, 233, 0.09); }
#player-profile .profile-statistics-comparison tbody tr:nth-child(even) { background: transparent; }
#player-profile .profile-statistics-comparison tbody tr:last-child th,
#player-profile .profile-statistics-comparison tbody tr:last-child td { border-bottom: 0; }
#player-profile .profile-statistics-comparison-label-cell .profile-statistics-comparison-icon { background: transparent; box-shadow: none; }
#player-profile .profile-statistics-comparison-value strong { min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
#player-profile .profile-career-history { width: 100%; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(244, 241, 233, 0.12); }
#player-profile .profile-career-history-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
#player-profile .profile-career-history-empty { padding: 4px 0 0; border: 0; border-radius: 0; background: transparent; }

/* Gesamtstaerke Hauptkennzahl */
.start-team-list-strength { color: var(--stat-overall-bright); }
:is(.team-dashboard-identity-strength, .start-team-focus-strength) .stadium-rating-value,
.team-rating-stat-card[data-role=OVERALL] .stadium-rating-value {
  position: relative; display: inline-block; width: max-content; justify-self: end;
  padding: 0 0 3px; color: var(--stat-overall-bright);
  background: linear-gradient(var(--lime), var(--lime)) right bottom / 22px 2px no-repeat;
}
.player-profile-header-ges-stat > strong { background: linear-gradient(var(--lime), var(--lime)) right bottom / 18px 2px no-repeat; }

/* Level identity; EXP remains the secondary progress measure. */
#player-profile .profile-development-main .profile-rating-bar-experience .profile-rating-value { font-weight: 650; color: var(--muted); }
@media (max-width: 480px) { #player-profile .profile-development-main .profile-rating-bar-experience { height: 50px; } #player-profile .profile-development-main .profile-rating-bar-experience .team-rating-bar-copy-rest { flex-wrap: wrap; gap: 4px 8px; } }

.mailbox-development-entry .mailbox-level-achievement { color: var(--stat-experience); font-size: 18px; line-height: 1.25; }

/* KON shares the condition state color with its value and meter. */

/* Current own contract: compact cost overview; offers retain their comparison. */
#player-profile .profile-contract-comparison.is-renewal-overview .profile-contract-comparison-head,
#player-profile .profile-contract-comparison.is-renewal-overview .profile-contract-labels { display: none; }
#player-profile .profile-contract-comparison.is-renewal-overview .profile-contract-comparison-grid { display: block; }
#player-profile .contract-summary { display: grid; gap: 20px; padding: 18px; }
.contract-summary-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink); }
.contract-summary-status > span { color: var(--lime); font-size: 12px; font-weight: 800; }
.contract-summary-annual { display: grid; gap: 6px; }
.contract-summary small { color: var(--muted); font-size: 12px; font-weight: 750; }
.contract-summary-annual > strong { color: var(--ink); font-size: clamp(28px, 5vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.contract-summary-bonuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contract-summary-bonuses > div { display: grid; gap: 6px; padding: 12px; border-radius: 8px; background: rgba(244,241,233,.045); }
.contract-summary-bonuses strong { color: var(--ink); font-size: 17px; }
#player-profile-contract-panel .profile-contract-action-list .profile-contract-action-button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 360px) { .contract-summary-bonuses { grid-template-columns: 1fr; } }

#player-profile .profile-development-main .profile-rating-bar-experience .profile-rating-code { padding: 3px 6px; border: 1px solid rgba(183,139,234,.55); border-radius: 5px; background: rgba(183,139,234,.08); color: #d5b2ff; font: 750 11px/1 system-ui, sans-serif; white-space: nowrap; }

/* Structured player identity and a distinct paper contract dossier. */
#player-profile .player-profile-header-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 8px; }
#player-profile .player-profile-header-talent-stat { grid-column: 1; }
#player-profile .player-profile-header-age-stat { grid-column: 2; }
#player-profile .player-profile-header-level-stat { grid-column: 3; grid-row: 4; }
#player-profile .player-profile-header-ges-stat { grid-column: 4; grid-row: 4 !important; }
#player-profile .player-profile-header-stat:not(.player-profile-header-market-stat) { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 12px 0 2px; }
#player-profile .player-profile-header-stat:not(.player-profile-header-market-stat) > .player-profile-header-stat-heading { display: block; font-size: 9px; letter-spacing: .05em; color: var(--muted); }
#player-profile .player-profile-header-stat:not(.player-profile-header-market-stat) .player-profile-header-stat-value { font-size: 17px; line-height: 1.2; }
#player-profile .player-profile-header-stat.player-profile-header-level-stat .player-profile-header-stat-value.level-mark { color: var(--ink); font-size: 15px; font-weight: 700; }
#player-profile .profile-development-main .profile-rating-bar-experience { --profile-bar-color: var(--stat-experience); }
#player-profile .profile-development-main .profile-rating-bar-experience .profile-rating-code { color: var(--stat-experience); border-color: #f1c65b80; background: #f1c65b0d; }
#player-profile .player-contract-document:has(.contract-summary) { border: 0; border-radius: 3px 12px 12px 3px; background: #e7e0ce; color: #26382e; box-shadow: 5px 7px 0 #07171055; overflow: hidden; }
#player-profile .player-contract-document:has(.contract-summary) .player-contract-document-heading { padding: 18px 20px; border: 0; border-bottom: 2px solid #26382e; background: #dcd3bb; }
#player-profile .player-contract-document:has(.contract-summary) .player-contract-document-heading p { color: #42614d; letter-spacing: .07em; font-size: 10px; }
#player-profile .player-contract-document:has(.contract-summary) .player-contract-document-heading h3 { color: #26382e; font-size: 20px; }
#player-profile .contract-summary { gap: 22px; padding: 20px; background: repeating-linear-gradient(0deg,transparent 0 27px,#26382e06 27px 28px); }
#player-profile .contract-summary-status { color: #26382e; border-bottom: 1px solid #26382e35; padding-bottom: 15px; }
#player-profile .contract-summary-status > span { color: #42614d; border: 2px solid #42614d; padding: 4px 10px; transform: rotate(-4deg); text-transform: uppercase; letter-spacing: .12em; }
#player-profile .contract-summary-status > strong { font-size: 19px; }
#player-profile .contract-summary small { color: #526054; text-transform: uppercase; letter-spacing: .07em; font-size: 10px; }
#player-profile .contract-summary-annual > strong { color: #26382e; font-size: clamp(32px,5vw,42px); letter-spacing: -.04em; }
#player-profile .contract-summary-annual::after { content: 'pro Saison'; color: #526054; font-size: 11px; }
#player-profile .contract-summary-bonuses { gap: 16px; border-top: 1px solid #26382e35; padding-top: 16px; }
#player-profile .contract-summary-bonuses > div { border-radius: 0; background: transparent; padding: 0; gap: 8px; }
#player-profile .contract-summary-bonuses strong { color: #26382e; font-size: 23px; }
#player-profile-contract-panel .profile-contract-actions { box-sizing: border-box; width: auto; margin: 16px 0 0; padding: 0; border: 0; background: transparent; }
#player-profile-contract-panel .profile-contract-action-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:600px) { #player-profile-contract-panel .profile-contract-action-list { grid-template-columns: 1fr; } #player-profile .contract-summary { padding: 16px; } }

@media (max-width: 700px) { .team-dashboard-player-list { grid-template-columns: minmax(0, 1fr); } }


#player-profile-contract-panel .contract-document-crest { width: 52px; height: 58px; flex-basis: 52px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#player-profile-contract-panel .contract-document-crest img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
#player-profile .contract-summary-bonuses small { display: flex; align-items: center; gap: 7px; }
#player-profile .contract-summary-bonuses small .fm-symbol { width: 18px; height: 18px; flex: 0 0 18px; color: #42614d; }

#player-profile-team-link #player-profile-team-crest { display: none; }

#player-profile #player-profile-transfer-value > strong { color: var(--lime); }

.field-player-marker-strength .roster-strength-tag.overall-mark { width: auto; min-width: 22px; height: 21px; min-height: 21px; padding: 0 1px 3px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: 900 15px/1 system-ui,sans-serif; text-shadow: 0 1px 3px #071710, 0 0 2px #071710; }

.match-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px 10px; }
.live-field-column > .match-controls { padding: 10px 12px; border-color: transparent; border-radius: 10px; background: rgba(26, 42, 37, 0.45); }
.match-view-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; }
.match-view-settings .game-menu-section-heading { margin: 0; font-size: 10px; }
.match-view-settings select { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; min-height: 36px; padding: 6px 10px; border-radius: 6px; }
.match-controls:not(.is-finished) .simulation-switch { grid-column: 2; width: 100%; min-width: 0; min-height: 36px; box-sizing: border-box; flex-basis: auto; margin: 0; padding: 5px 0 5px 8px; border: 0; background: transparent; }
.match-controls > :is(.kickoff-button, .skip-match-button) { min-height: 44px; width: 100%; }
.match-controls .speed-controls { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); justify-content: flex-end; flex-wrap: nowrap; }
.match-controls .speed-controls #match-pause { display: inline-grid; place-items: center; margin-right: 0; min-width: 36px; }
.match-controls .speed-button { min-height: 32px; min-width: 36px; padding: 5px 9px; border-radius: 6px; }
.match-controls > :is(.kickoff-button, .skip-match-button) { border-radius: 7px; }
.match-controls.is-finished .match-view-settings { grid-column: 1 / -1; }
@media(max-width:480px) { .match-controls { gap: 10px; } .match-controls .match-view-settings { grid-column: 1 / -1; } .match-controls:not(.is-finished) .simulation-switch { grid-column: 1 / -1; } }
@media(max-width:600px) { .match-controls .speed-button, .match-controls .match-view-settings select, .match-controls:not(.is-finished) .simulation-switch { min-height: 44px; } .match-controls .speed-button, .match-controls .speed-controls #match-pause { min-width: 44px; } }

.start-page-header .start-progress { box-sizing: border-box; border: 1px solid rgba(195, 230, 106, 0.42); }

#player-profile .profile-status-meter-condition .team-rating-stat-code { border-color: var(--item-accent); color: var(--item-accent); background: color-mix(in srgb, var(--item-accent) 13%, rgba(8,18,15,.85)); }

.sponsor-current-copy:has(.sponsor-heading-logo:not([hidden])) { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
.sponsor-heading-logo { grid-column: 1; grid-row: 1 / 4; align-self: center; width: 56px; height: 56px; }
.sponsor-heading-logo[hidden] { display: none; }
.sponsor-current-copy:has(.sponsor-heading-logo:not([hidden])) > :not(.sponsor-heading-logo) { grid-column: 2; }
.sponsor-heading-logo .sponsor-logo img { border-radius: 0; }

/* Die SVG-Kontur entspricht --stat-experience (#f1c65b); Data-URI-SVGs können den CSS-Token nicht direkt lesen. */
.level-mark { display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; color: #f4f1e9; font: 850 15px/1 system-ui, sans-serif; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 1.5 25 7.75V20.25L14 26.5 3 20.25V7.75Z' fill='%2310231d' stroke='%23f1c65b' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.mailbox-level-achievement { display: flex; align-items: center; gap: 7px; }

#start-manager-back, #start-manager-next, #start-team-back, #start-team-info, #start-youth-next { font-size: 13px; }
#start-manager-back, #start-team-back { width: 94.32px; }

/* Compact lineup display; other stadium-rating consumers retain their layout. */
#roster-surface .team-rating-card--compact { container-type: inline-size; padding: 18px; }
#roster-surface .team-rating-card--compact .team-rating-summary-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#roster-surface .team-rating-card--compact .team-rating-formation { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
#roster-surface .team-rating-card--compact .formation-options { padding: 3px; gap: 8px; }
#roster-surface .team-rating-card--compact .team-rating-grid { grid-template-columns: 126px repeat(3,minmax(0,1fr)); gap: 16px; align-items: center; }
#roster-surface .team-rating-card--compact .team-rating-grid .stadium-rating-row { grid-template-columns: minmax(0,1fr) max-content; gap: 8px; min-height: 0; }
#roster-surface .team-rating-card--compact .stadium-rating-code { padding: 0; border: 0; background: transparent; box-shadow: none; justify-self: start; font-size: 11px; }
#roster-surface .team-rating-card--compact .stadium-rating-value { grid-column: 2; grid-row: 1; color: var(--ink); font-size: 24px; padding: 0; }
#roster-surface .team-rating-card--compact .team-rating-grid .stadium-rating-center { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; }
#roster-surface .team-rating-card--compact .team-rating-grid .team-rating-stat-card .team-rating-bar-label { width: auto; flex: initial; order: 1; font-size: 11px; }
#roster-surface .team-rating-card--compact .stadium-rating-track { height: 10px; order: 0; }
#roster-surface .team-rating-card--compact .stadium-rating-fill { background: repeating-linear-gradient(90deg,var(--role-color) 0 7px,#142820 7px 10px); }
#roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-row { grid-template-areas: "label label" "value code"; grid-template-columns: max-content minmax(0,1fr); gap: 5px 8px; }
#roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-center { grid-area: label; }
#roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-value { grid-area: value; font-size: 48px; line-height: 1.1; justify-self: start; background: none; color: var(--stat-overall-bright); }
#roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-code { grid-area: code; color: var(--muted); align-self: end; padding-bottom: 6px; }
#roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-track { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@container (max-width: 480px) {
  #roster-surface .team-rating-card--compact .team-rating-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  #roster-surface .team-rating-card--compact .team-rating-stat-overall { grid-column: 1 / -1; }
  #roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-row { grid-template-areas: "label value code"; grid-template-columns: minmax(0,1fr) max-content max-content; gap: 8px; align-items: center; }
  #roster-surface .team-rating-card--compact .team-rating-stat-overall .stadium-rating-value { font-size: 40px; }
}
@container (max-width: 360px) {
  #roster-surface .team-rating-card--compact .team-rating-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  #roster-surface .team-rating-card--compact .team-rating-grid .team-rating-stat-card:not([data-role="OVERALL"]) .stadium-rating-row { grid-template-columns: 36px minmax(0,1fr) 34px; }
  #roster-surface .team-rating-card--compact .team-rating-stat-card:not([data-role="OVERALL"]) .stadium-rating-center { grid-column: 2; grid-row: 1; }
  #roster-surface .team-rating-card--compact .team-rating-stat-card:not([data-role="OVERALL"]) .stadium-rating-value { grid-column: 3; grid-row: 1; }
}

.training-assignment-table .training-table-level .level-mark { width: 24px; height: 24px; font-size: 11px; font-weight: 700; vertical-align: middle; }

:is(.squad-table, .contracts-overview-table) .level-mark { flex: 0 0 24px; width: 24px; height: 24px; font-size: 12px; font-weight: 700; vertical-align: middle; }
.squad-table .squad-level .level-mark { font-size: 11px; }
:is(.squad-table .squad-overall-cell, .contracts-overview-table .contract-overall-cell, .progress-table .progress-overall) > .overall-mark.overall-mark-normal { min-height: 0; padding: 0 0 3px; border: 0; border-radius: 0; background: linear-gradient(var(--lime), var(--lime)) right bottom / 18px 2px no-repeat; box-shadow: none; color: var(--stat-overall-bright); }
:is(.squad-table .squad-overall-cell, .contracts-overview-table .contract-overall-cell, .progress-table .progress-overall) .overall-mark-current { color: var(--stat-overall-bright); font-size: var(--fm-font-data); font-weight: 900; }

.contract-renewal-row-label { display: none; }
.contract-renewal-comparison .profile-contract-value-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contract-renewal-comparison .contract-renewal-row-label { display: block; color: var(--muted); font-size: var(--fm-font-label); line-height: 1.3; }
@media (max-width: 480px) { .contract-renewal-comparison .profile-contract-value-row { flex-wrap: wrap; } .contract-renewal-comparison .profile-contract-value { margin-left: auto; } }

#player-profile .profile-stats-section { position: relative; }
#player-profile .profile-radar { position: absolute; right: 0; top: 30px; display: grid; place-items: center; width: calc((100% - 14px) / 2); height: 200px; color: var(--muted); }
#player-profile .profile-radar[hidden] { display: none; }
#player-profile .profile-radar svg { width: min(100%, 220px); height: auto; overflow: visible; }
@media (max-width: 520px) { #player-profile .profile-radar { position: static; width: 100%; height: auto; margin-top: 12px; } }

/* Die 2D-Fläche bleibt als Größenanker und Rückfallfläche bestehen. */
#live-3d-canvas { position: absolute; z-index: 2; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); touch-action: none; cursor: grab; }
#live-3d-canvas:active { cursor: grabbing; }
.live-3d-camera-controls { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; flex-wrap: wrap; justify-content: end; max-width: calc(100% - 24px); gap: 3px; align-items: start; }
.live-3d-camera-controls[hidden] { display: none; }
#live-3d-camera-controls:not([hidden]) ~ .live-player-hover-card { top: 68px; }

.live-3d-camera-controls button:is([data-camera-action="pitch"], [data-camera-action="stadium"]) { width: auto; min-width: 52px; padding: 0 10px; font: 700 12px/1.2 system-ui,sans-serif; }
.live-3d-camera-controls button { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1px solid #668276; border-radius: 5px; background: #10231dee; color: var(--lime); font: 600 19px/1 system-ui,sans-serif; cursor: pointer; }
.live-3d-camera-controls button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media(max-width:600px) { .live-3d-camera-controls { top: 8px; right: 8px; gap: 1px; } .live-3d-camera-controls button { width: 44px; height: 44px; } }
@media(max-width:600px) {
  .audio-settings-panel { position: fixed; top: 124px; right: 16px; max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; }
}
#live-3d-canvas[hidden], .live-3d-status[hidden] { display: none; }
.live-3d-status { position: absolute; z-index: 3; bottom: 12px; left: 12px; padding: 4px 7px; border-radius: 4px; background: #10231de6; color: var(--muted); font: 600 10px/1.3 system-ui,sans-serif; pointer-events: none; }

#live-3d-canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }

/* Independent voice switch beside the existing dialog continuation. */
.ponzelar-welcome-toolbar-actions :is(.ponzelar-voice-toggle, .ponzelar-chat-continue, .profile-close, .ponzelar-welcome-sponsor-link) { width: 100%; max-width: none; min-width: 0; min-height: 44px; height: auto; padding: 6px 12px; font-size: var(--fm-font-control); line-height: 1.3; white-space: normal; }

.transfer-market-position-button { isolation: isolate; overflow: hidden; border-radius: 9px; }
.transfer-market-position-button:hover { background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--position-accent) 23%, transparent), transparent 58%), linear-gradient(150deg, color-mix(in srgb, var(--position-accent) 13%, rgba(18, 33, 27, .96)), rgba(12, 24, 20, .82)); }


/* Compact active-match toolbar: actions, then view / speed / simulation. */
.live-field-column > .match-controls { background: rgb(23 46 36 / .80); }
.match-controls:not(.is-finished) { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; }
.match-controls:not(.is-finished) > .kickoff-button { grid-column: 1 / 4; grid-row: 1; }
.match-controls:not(.is-finished) > .skip-match-button { grid-column: 4 / 7; grid-row: 1; }
.match-controls:not(.is-finished) .match-view-settings { grid-column: 1 / 3; grid-row: 2; display: block; }
.match-controls:not(.is-finished) .match-view-settings .game-menu-section-heading { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.match-controls:not(.is-finished) .match-view-settings select { min-height: 36px; }
.match-controls:not(.is-finished) .speed-controls { grid-column: 3 / 5; grid-row: 2; padding: 0; border: 0; justify-content: center; gap: 4px; }
.match-controls:not(.is-finished) .speed-controls > span { display: none; }
.match-controls:not(.is-finished) .simulation-switch { grid-column: 5 / 7; grid-row: 2; padding: 0; gap: 6px; }
@media (max-width: 600px) {
  .match-controls:not(.is-finished) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .match-controls:not(.is-finished) > .kickoff-button { grid-column: 1; }
  .match-controls:not(.is-finished) > .skip-match-button { grid-column: 2; }
  .match-controls:not(.is-finished) .match-view-settings { grid-column: 1; grid-row: 2; }
  .match-controls:not(.is-finished) .speed-controls { grid-column: 2; grid-row: 2; }
  .match-controls:not(.is-finished) .simulation-switch { grid-column: 1 / -1; grid-row: 3; min-height: 44px; }
  .match-controls:not(.is-finished) .match-view-settings select { min-height: 44px; }
}

/* Finance controls and content form a single workspace. */
.finance-workspace { min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.finance-workspace .finance-view-controls { align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 10px 16px; }
.finance-workspace .finance-view-controls > div { background: #10231c; border: 1px solid #71887355; border-radius: 9px; padding: 3px; gap: 3px; box-sizing: border-box; }
.finance-workspace .finance-view-controls > div:has([data-finance-period]) { width: 220px; }
.finance-workspace .finance-view-controls button { min-height: 36px; border: 0; border-radius: 6px; padding: 8px 10px; font-family: var(--fm-font-heading-family); font-size: 12px; }
.finance-workspace .finance-view-controls button[aria-pressed='true'] { background: #30411f; color: #e5efbf; }
.finance-workspace .finance-view-controls button:hover { background: #294335; }
.finance-workspace .finance-view-controls [data-finance-display]:is(:first-child,:last-child) { border-radius: 6px; }
.finance-workspace .finance-selected-view { border: 0; border-radius: 0 0 12px 12px; padding: 12px 16px; }
.finance-workspace .finance-chart-layout { display: flex; flex-direction: column; gap: 6px; }
.finance-workspace .finance-chart-layout > .finance-chart-legend { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-right: 28px; }
.finance-workspace .finance-chart-legend button { min-height: 32px; padding: 4px 0; }
.finance-workspace .finance-chart-layout > .finance-chart { width: 100%; margin: 0; }
.finance-workspace .finance-combination-chart svg { height: auto; min-height: 0; max-height: none; }
@media (max-width:600px) {
  .finance-workspace .finance-view-controls { flex-direction: column; align-items: stretch; padding: 10px; }
  .finance-workspace .finance-view-controls > div:has([data-finance-period]) { width: 100%; }
  .finance-workspace .finance-view-controls button { min-height: 44px; }
  .finance-workspace .finance-selected-view { padding: 10px; }

}

/* Spielmenü: gemeinsame Karten- und Hilfsbutton-Hierarchie. */
.game-menu-panel { box-sizing: border-box; padding: 16px; gap: 12px; border-radius: 12px; border-color: #71805a; background: linear-gradient(145deg, #203a2e, #10231c); }
.game-menu-panel .game-menu-settings { gap: 12px; padding: 0; }
.game-menu-panel .game-menu-section-heading { margin: 0; color: #d5c38b; }
.game-menu-panel .game-menu-action { min-height: 36px; padding: 6px 9px; font-family: var(--fm-font-body-family); }
.game-menu-panel .game-menu-close { top: 12px; right: 12px; width: 36px; height: 36px; }
.game-menu-panel :is(.game-menu-action, .game-menu-close):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.game-menu-panel .game-menu-save-status:empty { display: none; }
@media (pointer: coarse), (max-width: 600px) {
  .game-menu-panel .game-menu-close { width: 44px; height: 44px; }
  .game-menu-heading { min-height: 36px; }
}

/* Einheitliches kompaktes Maß für die Unterauswahl der Kopfmenüs. */
:is(.audio-settings-panel, .game-menu-panel) { box-sizing: border-box; width: min(286px, calc(100vw - 32px)); padding: 12px; gap: 10px; border-radius: 12px; }
.audio-settings-panel .settings-panel-heading { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
:is(.audio-settings-panel, .game-menu-panel, .faq-dialog) :is(.audio-panel-sound-toggle, .game-menu-action, .faq-topic-button) { box-sizing: border-box; min-height: 36px; font-family: var(--fm-font-body-family); font-size: 12px; line-height: 1.35; }
.game-menu-panel .game-menu-settings { gap: 10px; }
.game-menu-panel .game-menu-action :is(strong, small) { font-size: 12px; line-height: 1.35; }
.faq-dialog { border-radius: 12px; }
.faq-dialog .faq-topic-button { padding: 5px 8px; }
.faq-dialog .faq-topic-icon { border: 0; background: transparent; color: #d5c38b; box-shadow: none; border-radius: 0; }
:is(.audio-settings-panel, .faq-dialog) :is(.audio-panel-sound-toggle, .faq-topic-button):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.audio-settings-panel input[type="range"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
@media (pointer: coarse), (max-width: 600px) {
  :is(.audio-settings-panel, .game-menu-panel, .faq-dialog) :is(.audio-panel-sound-toggle, .game-menu-action, .faq-topic-button) { min-height: 44px; }
  .audio-settings-panel .audio-volume-setting { min-height: 44px; }
}

/* Spieltagsbegegnungen aller vier Ligastufen: Namen und Angaben größer. */
#matchday-fixtures :is(.fixture-team-name, .fixture-team-meta) {
  font-size: calc(var(--fm-font-label) + 2px);
}
@media (max-width: 760px) {
  #matchday-fixtures .fixture-team-meta { flex-wrap: wrap; overflow: visible; }
}

/* Leichteres Euro-Zeichen nur in der Hauptnavigation. */
.manager-main-visual-finance .fm-symbol-euro text { font-weight: 500; }

.field-player-marker-strength .field-player-condition-drop { position: absolute; left: calc(100% + 1px); top: 50%; transform: translateY(-50%); color: #f47769; font: 700 9px/1 system-ui, sans-serif; text-shadow: 0 1px 2px #071710; }

.profile-rating-bar-awareness { --profile-bar-color: var(--stat-awareness); }
.squad-stat-value.stat-awareness { color: var(--stat-awareness); }
#player-profile .profile-stat-awareness { --profile-row-accent: var(--stat-awareness); }




/* Spielerakte: ruhige Zahlen, Funktionsfarben nur zur Orientierung. */
#player-profile .profile-statistics-comparison-value { color: var(--ink); }
#player-profile .profile-statistics-comparison-value strong { color: var(--ink); }
#player-profile .profile-statistics-comparison tr[data-stat-section="goalkeeping"] { --stat-accent: var(--gold); }
#player-profile .profile-statistics-comparison tr[data-stat-section="usage"] { --stat-accent: var(--muted); }
#player-profile .profile-statistics-comparison tr[data-stat-section="attack"] { --stat-accent: var(--gold); }
#player-profile .profile-statistics-comparison tr[data-stat-section="passing"] { --stat-accent: var(--stat-passing); }
#player-profile .profile-statistics-comparison tr[data-stat-section="defence"] { --stat-accent: var(--cyan); }
#player-profile .profile-statistics-comparison tr[data-stat-section="availability"] { --stat-accent: var(--muted); }
#player-profile .profile-statistics-comparison tr:not([data-stat-section="discipline"]) .profile-statistics-comparison-label-cell { --stat-accent: inherit; }
#player-profile .profile-statistics-comparison .profile-statistics-group-start > * { border-top: 1px solid rgba(244, 241, 233, .2); padding-top: 10px; }

/* Short landscape windows need room below the fixed club header. */
@media (max-height: 520px) {
  .team-dashboard-overlay { padding: 8px; }
  .team-dashboard-dialog { height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); padding: 10px 12px; }
  .team-dashboard-identity { padding: 8px 10px; gap: 6px 12px; }
  .team-crest.team-dashboard-crest { width: 48px; height: 52px; }
  .team-dashboard-summary-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
}

.stadium-unavailable { padding: 16px; max-height: 65dvh; overflow: auto; }
.stadium-block-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 8px; margin-top: 16px; }
.stadium-block-list-button { min-height: 44px; }

#start-team-profile .team-dashboard-player-link { grid-template-columns: minmax(0, 1fr) 44px; cursor: default; }


.match-event-timeline-milestone {display:flex;justify-content:center;position:relative;padding:5px 0;list-style:none;}

.sponsor-preview-offers .sponsor-option {min-width:0;}
.sponsor-preview-offers .sponsor-offer-card {width:100%;height:100%;min-height:0;padding:12px;}
.sponsor-preview-offers .sponsor-offer-heading {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:110px minmax(72px,auto);align-items:start;gap:8px;}
.sponsor-preview-offers .sponsor-option-logo {width:40px;height:40px;}
.sponsor-preview-offers .sponsor-offer-heading-copy {min-width:0;}
.sponsor-preview-offers .sponsor-offer-values {display:grid;gap:10px;margin-top:12px;}
.sponsor-preview-offers .sponsor-offer-values>span {display:grid;gap:4px;}
.sponsor-preview-offers .sponsor-option.is-selected .sponsor-offer-card {border-color:var(--sponsor-card-accent);box-shadow:inset 0 0 0 1px var(--sponsor-card-accent);}
@media(max-width:600px){.sponsor-preview-offers {grid-template-columns:1fr;}.sponsor-preview-offers .sponsor-offer-heading {flex-wrap:nowrap;}.sponsor-preview-offers .sponsor-offer-values {grid-template-columns:1fr;}}

@media(min-width:901px){
 .sponsor-main-card:not(.has-selected-sponsor) {grid-template-areas:"copy visual" "offers visual" "action .";grid-template-rows:auto 1fr auto;align-items:stretch;}
 .sponsor-main-card:not(.has-selected-sponsor) .sponsor-preview-offers {align-self:stretch;}
 .sponsor-main-card:not(.has-selected-sponsor) .sponsor-option {align-content:stretch;}
 .sponsor-main-card:not(.has-selected-sponsor) .sponsor-visual {height:100%;max-height:none;box-sizing:border-box;}
}

.sponsor-preview-offers .sponsor-offer-heading {width:100%;}
.sponsor-offer-image {position:relative;display:block;width:100%;height:110px;overflow:hidden;border-radius:7px;background:#142d24;}
.sponsor-offer-scene {display:block;width:100%;height:100%;object-fit:cover;}
.sponsor-offer-image .sponsor-option-logo {position:absolute;bottom:6px;left:6px;width:34px;height:34px;padding:3px;border-radius:6px;background:#10251fd9;box-sizing:content-box;}
.sponsor-preview-offers .sponsor-offer-heading strong {white-space:normal;text-overflow:clip;}
.sponsor-preview-offers .sponsor-offer-card {border-color:color-mix(in srgb,var(--sponsor-card-accent) 40%,var(--line));}
.sponsor-preview-offers .sponsor-offer-values strong {color:var(--sponsor-card-accent);}
@media(max-width:900px){.sponsor-offer-image {height:140px;}.sponsor-preview-offers .sponsor-offer-heading {grid-template-rows:140px auto;}}

.sponsor-main-card.has-selected-sponsor .sponsor-current-copy {
 min-height:210px;box-sizing:border-box;padding:22px 18px;border-radius:10px;overflow:hidden;
 background-image:linear-gradient(90deg,rgba(9,28,21,.94) 0%,rgba(9,28,21,.82) 43%,rgba(9,28,21,.28) 76%,rgba(9,28,21,.08) 100%),var(--sponsor-hero-image,none);
 background-size:cover;background-position:center;align-content:center;
}
.sponsor-main-card.has-selected-sponsor .sponsor-current-copy p:last-child {color:#e0e8dc;max-width:38ch;text-shadow:0 1px 3px #000;}
.sponsor-main-card.has-selected-sponsor .sponsor-current-copy h3 {text-shadow:0 1px 4px #000;}
.sponsor-main-card.has-selected-sponsor .sponsor-heading-logo {width:64px;height:64px;}
.sponsor-main-card.has-selected-sponsor .sponsor-current-copy:has(.sponsor-heading-logo:not([hidden])) {grid-template-columns:64px minmax(0,1fr);}
@media(max-width:600px){.sponsor-main-card.has-selected-sponsor .sponsor-current-copy {min-height:190px;padding:16px 12px;gap:7px;background-image:linear-gradient(90deg,rgba(9,28,21,.94),rgba(9,28,21,.74) 65%,rgba(9,28,21,.28)),var(--sponsor-hero-image,none);}}

.live-appearance-buttons {display:flex;gap:6px;align-items:center;}
.live-appearance-buttons button {min-width:52px;min-height:44px;}
.live-appearance-buttons button:focus-visible {outline:2px solid var(--lime);outline-offset:2px;}

@media(min-width:1101px){
 .tactics-controls {align-self:stretch;align-content:stretch;grid-template-rows:repeat(2,minmax(min-content,1fr));}
}

/* League metric colors apply to icons; labels stay readable in every state. */
.league-stat-metric-button { --metric-icon: #d4dad7; color: #fff8ea; }
.league-stat-metric-button:hover, .league-stat-metric-button[aria-pressed="true"] { color: #fff8ea; }
.league-stat-metric-button > span { color: var(--metric-icon); }
.league-stat-metric-button[data-league-stat-metric="goals"], .league-stat-metric-button[data-league-stat-metric="assists"], .league-stat-metric-button[data-league-stat-metric="shots"] { --metric-icon: #f3c75f; }
.league-stat-metric-button[data-league-stat-metric="passes"] { --metric-icon: #69c4b0; }
.league-stat-metric-button[data-league-stat-metric="duels"], .league-stat-metric-button[data-league-stat-metric="interceptions"], .league-stat-metric-button[data-league-stat-metric="blocks"] { --metric-icon: #74b9ee; }
.league-stat-metric-button[data-league-stat-metric="saves"], .league-stat-metric-button[data-league-stat-metric="cleanSheets"] { --metric-icon: #bf9aef; }
.league-stat-metric-button[data-league-stat-metric="yellowCards"] { --metric-icon: #f5d45a; }
.league-stat-metric-button[data-league-stat-metric="redCards"] { --metric-icon: #ef8185; }
.league-stat-metric-button[data-league-stat-metric="injuryMatches"] { --metric-icon: #9ca9a4; }

/* Shared alignment for the live match controls, including halftime. */
[data-panel="match"] .match-controls:not(.is-finished) { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
[data-panel="match"] .halftime-live-actions { grid-column: 1 / -1; grid-row: 1; width: 100%; }
[data-panel="match"] .halftime-live-actions > button { width: 100%; min-height: 44px; }
[data-panel="match"] .match-controls :is(.speed-button,[data-live-appearance]) { box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
[data-panel="match"] .match-controls .speed-controls #match-pause { width: 44px; min-width: 44px; }
[data-panel="match"] .match-controls:not(.is-finished) .match-view-settings { grid-column: 1 / 3; grid-row: 2; }
[data-panel="match"] .match-controls:not(.is-finished) .speed-controls { grid-column: 3 / 5; grid-row: 2; justify-content: center; gap: 6px; }
[data-panel="match"] .match-controls:not(.is-finished) .simulation-switch { grid-column: 5 / 7; grid-row: 2; justify-self: end; justify-content: flex-start; width: max-content; max-width: 100%; min-height: 44px; padding: 0; gap: 8px; }
@media(max-width:600px) {
 [data-panel="match"] .match-controls:not(.is-finished) { grid-template-columns: minmax(88px,1fr) minmax(144px,1.4fr); }
 [data-panel="match"] .match-controls:not(.is-finished) .match-view-settings { grid-column: 1; }
 [data-panel="match"] .match-controls:not(.is-finished) .speed-controls { grid-column: 2; justify-content: flex-end; }
 [data-panel="match"] .match-controls:not(.is-finished) .simulation-switch { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}

[data-panel="match"] .scoreboard { box-sizing: border-box; border: 1px solid var(--line); }

.match-controls :is(#replay-match, #open-last-progress, #match-complete) { font-size: 15px; font-weight: 600; white-space: normal; }

.match-controls :is(#match-kickoff, #skip-match) { font-size: 15px; font-weight: 600; white-space: normal; }
.match-controls :is([data-live-appearance], [data-speed]) { font-size: 13px; }
.match-controls .simulation-switch { font-weight: 600; }

/* Four equal league tabs: the statistics block ends at tab three. */
#league-subview-player-stats { width: calc(75% - var(--fm-manager-tab-gap) * .25); min-width: 0; }
#league-player-statistics-controls #league-player-stat-group-select { max-width: none; }
@media (min-width: 761px) {
  #league-player-stat-metrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #league-subview-player-stats { width: 100%; }
}

.live-player-hover-card .field-player-detail-card { background-color: #14271f; }

.live-field-card>.canvas-wrap {container-type:inline-size;}
#live-3d-camera-controls {flex-wrap:nowrap;align-items:start;gap:6px;}
#live-3d-camera-controls [data-camera-panel] {display:flex;gap:4px;padding:4px;background:#10231df5;border:1px solid var(--line);border-radius:8px;animation:camera-slide .18s ease-out;}
#live-3d-camera-controls [data-camera-panel][hidden] {display:none!important;}
body #live-3d-camera-controls [data-camera-toggle] {display:grid;place-items:center;align-self:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;}
#live-3d-camera-controls [data-camera-toggle] svg {display:block;width:20px;height:20px;pointer-events:none;}
body #live-3d-camera-controls [data-camera-panel] button {width:44px;min-width:44px;height:44px;min-height:44px;}
body #live-3d-camera-controls [data-camera-panel] button:is([data-camera-action="pitch"],[data-camera-action="stadium"]) {width:64px;min-width:64px;}
@keyframes camera-slide {from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}
@container(max-width:460px){#live-3d-camera-controls [data-camera-panel] {position:absolute;right:0;top:50px;display:grid;grid-template-columns:repeat(4,44px);gap:4px;}body #live-3d-camera-controls [data-camera-action="pitch"],body #live-3d-camera-controls [data-camera-action="stadium"] {grid-column:span 2;width:100%!important;}#live-3d-camera-controls.is-open ~ .live-player-hover-card {top:180px;}}
@media(prefers-reduced-motion:reduce){#live-3d-camera-controls [data-camera-panel]{animation:none;}}

.cup-fixture-winner {display:block;margin-top:4px;color:var(--lime);font:700 11px/1.3 var(--fm-font-body-family,sans-serif);white-space:normal;overflow-wrap:anywhere;}

/* Longer English penalty results wrap within the existing fixture layout. */
html[lang="en"] .cup-fixture-card:not(.is-bye) .fixture-card { grid-template-columns: minmax(0, 1fr) minmax(112px, 148px) minmax(0, 1fr) 34px; }
html[lang="en"] .cup-fixture-card .fixture-score { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  html[lang="en"] .cup-fixture-card:not(.is-bye) .fixture-card { grid-template-columns: minmax(0, 1fr) 96px minmax(30px, 44px); }
}

/* The desktop title figure reaches the viewport edge without enlarging it.
   Setup pages and scrolling mobile/short layouts keep their normal footer flow. */
@media (min-width: 761px) and (min-height: 601px) {
  .start-page:not(:has(.start-hero.is-setup)) .start-hero {
    overflow: visible;
  }
  .start-page:not(:has(.start-hero.is-setup)) .start-hero-visual {
    overflow: visible;
  }
  .start-page:not(:has(.start-hero.is-setup)) .start-hero-visual .start-ponzelar {
    transform: translateY(var(--start-figure-footer-offset, 0px));
  }
  .start-page:not(:has(.start-hero.is-setup)) > .language-choice.start-language-choice {
    position: relative;
    z-index: 2;
    justify-self: start;
  }
}
