:root {
    --green: #173f2a;
    --green-light: #245b3e;
    --action-blue: #0057a8;
    --action-blue-dark: #003f7a;
    --panel: #eeeeec;
    --line: #c9ccc6;
    --text: #1c241f;
    --muted: #667069;
    --danger: #8f2d2d;
    --gold: #fff1a8;
    --blue: #dceafa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #d8d9d3;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

body.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

a {
    color: #103f72;
    font-weight: 700;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    color: #fff;
    background: var(--green);
    border-bottom: 4px solid #0d2418;
}

body.career-page .topbar {
    position: relative;
    min-height: 108px;
    padding: 18px 28px;
    background:
        linear-gradient(90deg, rgba(0, 34, 68, 0.72) 0%, rgba(0, 53, 104, 0.44) 38%, rgba(0, 87, 168, 0.14) 100%),
        url('/assets/header-career.png?v=2') center center / cover no-repeat;
    border-bottom: 3px solid var(--action-blue-dark);
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0;
}

.topbar p {
    margin: 4px 0 0;
    color: #dce7dd;
}

.topbar a {
    color: #fff;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand > div {
    min-width: 0;
}

.brand > div:first-of-type {
    flex: 1 1 auto;
}

.topbar-user-badge {
    display: grid;
    gap: 2px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    min-width: 0;
    flex: 0 0 auto;
    justify-items: start;
}

.topbar-user-badge span,
.topbar-user-badge small {
    color: #dce7dd;
    line-height: 1.1;
    white-space: nowrap;
}

.topbar-user-badge strong {
    font-size: 15px;
    line-height: 1.15;
    white-space: nowrap;
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
}

.star-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-family: "Arial Unicode MS", "DejaVu Sans", system-ui, sans-serif;
    line-height: 1;
    letter-spacing: 0;
}

.star-rating-star {
    position: relative;
    display: inline-block;
    font-size: 18px;
    letter-spacing: 0;
    width: 1em;
    line-height: 1;
}

.star-rating-star-empty {
    color: #bcc2ba;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.star-rating-star-full {
    color: #9f6a00;
    text-shadow: 0 1px 0 rgba(255, 247, 205, 0.7);
}

.star-rating-star-half {
    color: #bcc2ba;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.star-rating-star-half::before {
    content: "★";
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
    color: #9f6a00;
    text-shadow: 0 1px 0 rgba(255, 247, 205, 0.7);
}

.star-rating-value {
    color: #4e5a52;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .brand {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .topbar-user-badge {
        width: 100%;
    }
}

.brand-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
}

.container {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 18px;
}

.container.wide {
    max-width: 1480px;
}

.panel,
.stats {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.panel {
    padding: 18px;
}

.league-overview {
    margin-bottom: 18px;
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.login-box {
    width: min(420px, calc(100vw - 32px));
}

.login-box h1 {
    margin: 0;
    color: var(--green);
    font-size: 28px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.login-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.muted {
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

label {
    display: grid;
    gap: 5px;
    font-weight: 700;
}

input,
select,
button {
    min-height: 36px;
    border: 1px solid #8d958f;
    font: inherit;
}

input,
select {
    padding: 7px 9px;
    background: #fff;
}

.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}

button {
    padding: 7px 14px;
    color: #fff;
    background: var(--action-blue);
    border-color: var(--action-blue-dark);
    font-weight: 800;
    cursor: pointer;
}

.danger button {
    background: var(--danger);
    border-color: #5d1b1b;
}

.links {
    margin-bottom: 0;
}

.link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.admin-external-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.external-team-card {
    margin: 0;
}

.external-team-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 8px;
    border-left: 6px solid var(--green);
    background: #fff;
}

.external-team-title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.external-team-title strong {
    color: #102118;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
    word-break: break-word;
}

.external-team-title span {
    color: #5f6b64;
    font-size: 12px;
    font-weight: 700;
}

.external-team-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

.external-team-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    color: #173f2a;
    background: #f5f7f3;
    border: 1px solid #c7d1c6;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.external-team-subtitle {
    padding: 0 14px 10px;
    color: #5b645d;
    font-size: 12px;
    font-weight: 700;
}

.external-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 14px 12px;
    background: var(--line);
}

.external-team-grid div {
    min-width: 0;
    padding: 10px 12px;
    background: var(--panel);
}

.external-team-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.external-team-grid strong {
    display: block;
    margin-top: 4px;
    color: #152019;
    font-size: 14px;
    font-weight: 900;
    word-break: break-word;
}

.external-team-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 14px 14px;
}

.notice {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid;
    font-weight: 700;
}

.notice.success {
    background: #e3f2e7;
    border-color: #78a884;
}

.notice.error {
    background: #f6dddd;
    border-color: #b16f6f;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 18px;
    background: var(--line);
}

.compact-stats {
    margin-bottom: 0;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 13px;
    color: #fff !important;
    background: var(--action-blue);
    border: 1px solid var(--action-blue-dark);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.button-link:visited {
    color: #fff !important;
}

.button-link:hover,
.topbar nav a:hover {
    filter: brightness(1.08);
}

.button-link.secondary {
    color: #103f72 !important;
    background: #fff;
    border-color: #9aa7b2;
}

.stats div {
    padding: 12px;
    background: var(--panel);
}

.stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.stats strong {
    display: block;
    margin-top: 3px;
    font-size: 16px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sort-form label {
    grid-template-columns: auto auto;
    align-items: center;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 7px 8px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

th {
    color: #fff;
    background: var(--green);
    font-size: 12px;
    text-transform: uppercase;
}

th .sort-link,
th .sort-link:link,
th .sort-link:visited,
th .sort-link:active {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
}

th .sort-link:hover,
th .sort-link:focus {
    color: #fff4b8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

th .sort-link:focus-visible {
    outline: 2px solid #fff4b8;
    outline-offset: 2px;
}

.info-tip {
    position: relative;
    display: inline-grid;
    width: 17px;
    height: 17px;
    margin-left: 4px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    vertical-align: 1px;
}

.info-tip::after {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 8px);
    left: 50%;
    width: min(360px, calc(100vw - 36px));
    padding: 10px 12px;
    color: #ffffff;
    background: #18241d;
    border: 1px solid #fff4b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    content: attr(data-tip);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    white-space: normal;
    transform: translateX(-50%);
}

.info-tip::before {
    position: absolute;
    z-index: 21;
    bottom: calc(100% + 3px);
    left: 50%;
    width: 9px;
    height: 9px;
    background: #18241d;
    border-right: 1px solid #fff4b8;
    border-bottom: 1px solid #fff4b8;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.info-tip::before,
.info-tip::after {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.info-tip:hover::before,
.info-tip:hover::after,
.info-tip:focus::before,
.info-tip:focus::after {
    opacity: 1;
    visibility: visible;
}

.stats .info-tip::after {
    bottom: auto;
    top: calc(100% + 8px);
}

.stats .info-tip::before {
    bottom: auto;
    top: calc(100% + 3px);
    transform: translateX(-50%) rotate(225deg);
}

tbody tr:nth-child(even) {
    background: #f6f6f3;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

.badge {
    display: inline-block;
    width: 18px;
    height: 12px;
    margin-right: 6px;
    background: linear-gradient(90deg, var(--primary) 0 50%, var(--secondary) 50% 100%);
    border: 1px solid #333;
    vertical-align: -1px;
}

.squad {
    max-width: calc(100vw - 88px);
    margin-top: 10px;
    overflow-x: auto;
}

.players {
    font-size: 13px;
}

.players tr.u21 {
    background: #eaf5e9;
}

.players tr.best-overall td {
    font-weight: 800;
}

.players tr.best-potential td:nth-child(10) {
    background: var(--gold);
}

.players tr.goalkeeper td:nth-child(4) {
    background: var(--blue);
    font-weight: 800;
}

.players tr.expiring td:nth-child(13) {
    color: #8b1e1e;
    font-weight: 800;
}

.player-details summary {
    font-weight: 700;
}

.attributes {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 3px 10px;
    min-width: 260px;
    margin: 8px 0 0;
    padding: 8px;
    background: #f1f1ee;
    border: 1px solid var(--line);
}

.attributes dt {
    color: var(--muted);
}

.attributes dd {
    margin: 0;
    font-weight: 800;
}

.player-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.player-hero h2 {
    margin-bottom: 4px;
    font-size: 26px;
}

.player-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.hero-meta {
    display: grid;
    gap: 4px;
    text-align: right;
}

.hero-meta span {
    color: var(--muted);
    font-weight: 800;
}

.hero-meta strong {
    font-size: 24px;
    letter-spacing: 0;
}

.player-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
}

.summary-grid div {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.summary-grid strong {
    display: block;
    margin-top: 3px;
}

.split-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.split-lists h3,
.attribute-columns h3 {
    margin: 0 0 8px;
}

.attribute-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.attribute-grid {
    display: grid;
    gap: 4px;
}

.attribute-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    background: #fff;
    border-left: 4px solid #aeb4ad;
}

.attribute-row span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.attribute-row strong {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.attribute-row.is-key span::after {
    color: #174a2c;
    content: "";
}

.attr-very-low {
    border-left-color: #8f2d2d;
    opacity: 0.78;
}

.attr-low {
    border-left-color: #ba6d2a;
}

.attr-mid {
    border-left-color: #9c9c74;
}

.attr-good {
    border-left-color: #437b55;
    font-weight: 700;
}

.attr-very-good {
    border-left-color: #1f684a;
    background: #edf6ef;
    font-weight: 800;
}

.attr-excellent,
.attr-elite {
    border-left-color: #0c4d32;
    background: #e0f1e6;
    font-weight: 900;
}

.attr-elite strong::before {
    content: "!";
    margin-right: 3px;
}

.position-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.position-pill {
    display: grid;
    gap: 2px;
    min-width: 118px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
}

.position-pill span {
    color: var(--muted);
    font-size: 12px;
}

.compact-dl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
    margin: 0;
}

.compact-dl dt {
    color: var(--muted);
    font-weight: 800;
}

.compact-dl dd {
    margin: 0;
}

.match-setup h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.league-match-panel {
    margin-bottom: 18px;
}

.league-match-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.match-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rating-admin-form {
    display: grid;
    gap: 16px;
}

.rating-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rating-settings-grid label {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.rating-settings-grid span {
    color: #23362b;
    font-weight: 900;
}

.rating-settings-grid small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.formula-box {
    overflow: auto;
    padding: 12px;
    color: #fff;
    background: #101914;
    border: 2px solid #0d2418;
    font-size: 13px;
    line-height: 1.45;
}

.setup-team {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.setup-team > label {
    margin-bottom: 10px;
}

.tactics-grid,
.match-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.match-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

.match-board {
    display: grid;
    gap: 14px;
}

.scoreboard {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 120px minmax(180px, 1fr) 74px;
    align-items: center;
    gap: 1px;
    color: #fff;
    background: #0d2418;
    border: 1px solid #0d2418;
    min-width: 0;
}

.match-result-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #102016;
    background: #fff6cf;
    border: 2px solid #b98f00;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.match-result-strip span,
.match-result-strip em {
    color: #6b4b00;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.match-result-strip strong {
    font-size: 20px;
    font-weight: 950;
    text-align: center;
}

.match-player {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 12px;
    background: #101914;
    border: 2px solid #0d2418;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.match-time-display {
    display: grid;
    place-items: center;
    padding: 10px;
    color: #fff;
    background: #173f2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.match-time-display span {
    color: #dce7dd;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.match-time-display strong {
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.match-player-main {
    display: grid;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

.match-progress {
    height: 12px;
    overflow: hidden;
    background: #d8d9d3;
    border: 1px solid #ffffff;
}

.match-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--home-color), var(--away-color));
    transition: width 180ms linear;
}

.team-name,
.score,
.clock {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: var(--green);
    font-weight: 900;
    min-width: 0;
}

.team-name.home {
    background: var(--home-color);
    border-bottom: 5px solid var(--home-secondary);
}

.team-name.away {
    justify-content: flex-end;
    background: var(--away-color);
    border-bottom: 5px solid var(--away-secondary);
}

.team-color-chip {
    width: 28px;
    height: 18px;
    flex: 0 0 28px;
    background: linear-gradient(90deg, var(--home-color) 0 50%, var(--home-secondary) 50% 100%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.team-name.away .team-color-chip {
    background: linear-gradient(90deg, var(--away-secondary) 0 50%, var(--away-color) 50% 100%);
}

.team-name.away {
    text-align: right;
}

.score,
.clock {
    justify-content: center;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
}

.score {
    color: #111a14;
    background: #fff6cf;
    font-size: 34px;
    font-weight: 950;
}

.clock {
    font-size: 20px;
}

.match-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.match-controls button {
    min-width: 78px;
    color: #fff;
    background: #245b3e;
    border: 1px solid #0d2418;
    border-right-width: 0;
}

.match-controls button:first-child {
    border-radius: 4px 0 0 4px;
}

.match-controls button:last-child {
    border-right-width: 1px;
    border-radius: 0 4px 4px 0;
}

.match-controls button.is-active {
    color: #111a14;
    background: #fff6cf;
}

.match-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 14px;
}

.lineup-panel,
.live-panel,
.match-stats {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.lineup-panel {
    padding: 14px;
}

.lineup-panel h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.lineup-panel ol {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.lineup-panel li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.62);
    border-left: 3px solid #aeb4ad;
    font-size: 13px;
}

.bench-player {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.38);
}

.lineup-player-text {
    width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-overflow: ellipsis;
    text-align: left;
    white-space: nowrap;
}

.player-card-trigger {
    cursor: pointer;
}

.player-card-trigger:hover,
.player-card-trigger:focus {
    color: #0b4a2a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.player-card-trigger:focus-visible {
    outline: 2px solid #0b4a2a;
    outline-offset: 2px;
}

.match-rating-badge {
    display: inline-grid;
    min-width: 34px;
    height: 24px;
    place-items: center;
    color: #111a14;
    background: #f2f0d8;
    border: 1px solid #9aa39c;
    font-size: 12px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.match-rating-badge.rating-good {
    color: #07361e;
    background: #d8f7e1;
    border-color: #168a4a;
}

.match-rating-badge.rating-elite {
    color: #fff;
    background: #0b4a2a;
    border-color: #0d2418;
}

.match-rating-badge.rating-poor {
    color: #7b1818;
    background: #f7dede;
    border-color: #b31f1f;
}

.match-rating-badge[data-final-rating] {
    display: none;
}

.match-board.ratings-visible .match-rating-badge[data-final-rating] {
    display: inline-grid;
}

.player-event-icons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
}

.player-event-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #9aa39c;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
}

.player-event-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.player-event-icon small {
    position: absolute;
    right: -5px;
    bottom: -5px;
    min-width: 13px;
    height: 13px;
    padding: 0 2px;
    color: #fff;
    background: #0d2418;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 950;
    line-height: 13px;
}

.player-event-goals,
.player-event-assists {
    border-color: #168a4a;
    background: #d8f7e1;
}

.player-event-yellow {
    border-color: #c6a900;
    background: #fff2a8;
}

.player-event-red,
.player-event-injury {
    border-color: #b31f1f;
    background: #f7dede;
}

.player-event-sub_out,
.player-event-sub_in {
    border-color: #2e659b;
    background: #e3effc;
}

.live-panel {
    min-height: 540px;
    display: grid;
    grid-template-rows: auto auto minmax(260px, 1fr);
}

.match-pitch-shell {
    position: relative;
    padding: 10px 12px 12px;
    background: #101914;
    border-bottom: 4px solid #0d2418;
}

.match-pitch {
    display: block;
    width: 100%;
    height: clamp(260px, 34vw, 340px);
    max-height: 340px;
    background: #155b36;
    border: 2px solid #d7e6d9;
}

.pitch-grass {
    fill: #17633a;
}

.pitch-line,
.pitch-mark,
.pitch-goal {
    fill: none;
    stroke: rgba(245, 255, 246, 0.88);
    stroke-width: 0.75;
    vector-effect: non-scaling-stroke;
}

.pitch-mark {
    fill: rgba(245, 255, 246, 0.88);
}

.pitch-goal {
    fill: rgba(255, 255, 255, 0.2);
}

.pitch-side-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(220px, calc(50% - 18px));
    min-height: 26px;
    padding: 4px 7px;
    color: #fff;
    background: #0d2418;
    border: 2px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.38);
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
}

.pitch-side-badge strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 950;
}

.pitch-side-color {
    width: 16px;
    height: 12px;
    flex: 0 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.pitch-side-away {
    top: 18px;
    right: 20px;
    background: var(--away-team-color);
}

.pitch-side-away .pitch-side-color {
    background: var(--away-secondary);
}

.pitch-side-home {
    left: 20px;
    bottom: 48px;
    background: var(--home-team-color);
}

.pitch-side-home .pitch-side-color {
    background: var(--home-secondary);
}

.pitch-zone {
    fill: rgba(255, 255, 255, 0.015);
    stroke: rgba(255, 255, 255, 0.23);
    stroke-width: 0.35;
    vector-effect: non-scaling-stroke;
    transition: fill 140ms ease, stroke 140ms ease, opacity 140ms ease;
}

.pitch-zone-danger {
    stroke-dasharray: 2 1.5;
}

.pitch-zone.is-active {
    stroke: #fff6cf;
    stroke-width: 1.15;
    opacity: 1;
    animation: pitch-zone-pulse 520ms ease-out 1;
}

.pitch-zone.is-home {
    fill: var(--home-team-color);
    fill-opacity: 0.62;
}

.pitch-zone.is-away {
    fill: var(--away-team-color);
    fill-opacity: 0.62;
}

.pitch-zone.is-danger-high {
    stroke: var(--danger-color, #ffd04a);
    stroke-width: 1.5;
}

.pitch-zone.is-danger-critical {
    fill: var(--critical-color, #e33939);
    fill-opacity: 0.55;
    stroke: var(--critical-color, #e33939);
    stroke-width: 2;
    animation-duration: 760ms;
}

.pitch-ball {
    display: none;
    fill: #fff6cf;
    stroke: #0d2418;
    stroke-width: 0.55;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45));
    transition: cx 180ms linear, cy 180ms linear;
}

.pitch-ball.is-visible {
    display: block;
}

.pitch-zone-number {
    fill: #fff6cf;
    stroke: #0d2418;
    stroke-width: 0.25;
    paint-order: stroke;
    font-size: 5px;
    font-weight: 950;
    text-anchor: middle;
    dominant-baseline: middle;
}

.pitch-live-text {
    margin-top: 8px;
    color: #ecf8ef;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pitch-debug {
    margin-top: 6px;
    padding: 6px 8px;
    color: #111a14;
    background: #fff6cf;
    border: 1px solid #dacb82;
    font-size: 12px;
    font-weight: 900;
}

@keyframes pitch-zone-pulse {
    0% {
        opacity: 0.48;
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: 0.86;
    }
}

.field-zone {
    display: grid;
    place-items: center;
    color: #ecf8ef;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(#1d6a3e, #185636);
    background-size: 25% 100%, 100% 100%;
    border-bottom: 4px solid #0d2418;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0;
    transition: background 180ms ease, color 180ms ease;
}

.field-zone.attack-home {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(var(--home-color), var(--home-color));
    background-size: 25% 100%, 100% 100%;
    border-bottom-color: var(--home-secondary);
}

.field-zone.attack-away {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(var(--away-color), var(--away-color));
    background-size: 25% 100%, 100% 100%;
    border-bottom-color: var(--away-secondary);
}

.commentary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.25;
}

.commentary strong {
    font-weight: 950;
}

.commentary-major {
    color: #0b4a2a;
    background: #ddf4e4;
}

.commentary-danger {
    color: #7b1818;
    background: #f8d7d7;
}

.commentary-warning {
    color: #6b4b00;
    background: #fff0ba;
}

.commentary-keeper {
    color: #163f70;
    background: #dceafa;
}

.commentary-attack {
    color: #5b2d00;
    background: #ffe2bf;
}

.commentary-neutral {
    color: #18241d;
    background: #f6f6f3;
}

.event-emoji {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 24px;
    font-weight: 900;
}

.event-emoji img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.timeline {
    display: grid;
    align-content: start;
    gap: 10px;
    max-height: 360px;
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 54px 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 9px 11px;
    background: #fff;
    border: 2px solid #aeb4ad;
    border-left-width: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.event-minute {
    color: #0d2418;
    font-size: 18px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.event-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 20px;
}

.event-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.event-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.event-label {
    color: inherit;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.event-text {
    color: #18241d;
    font-size: 15px;
    font-weight: 900;
}

.timeline .event-goal {
    color: #064a28;
    border-color: #168a4a;
    background: #d8f7e1;
    font-weight: 900;
}

.timeline .event-penalty {
    color: #0b4a2a;
    border-color: #0e6b3d;
    background: #d4f0dd;
    font-weight: 900;
}

.timeline .event-yellow_card,
.timeline .event-foul {
    border-color: #c6a900;
    background: #fff7d1;
    color: #5a4100;
}

.timeline .event-red_card {
    color: #7b1818;
    border-color: #b31f1f;
    background: #f7dede;
    font-weight: 900;
}

.timeline .event-injury {
    color: #7b1818;
    border-color: #b31f1f;
    background: #fde5e5;
    font-weight: 900;
}

.timeline .event-save {
    color: #163f70;
    border-color: #2e659b;
    background: #e3effc;
    font-weight: 800;
}

.timeline .event-shot,
.timeline .event-corner,
.timeline .event-free_kick {
    color: #5b2d00;
    border-color: #b96a1e;
    background: #fff0df;
}

.timeline .event-substitution,
.timeline .event-offside,
.timeline .event-half_time,
.timeline .event-full_time {
    color: #26312b;
    border-color: #7a8080;
    background: #f5f5f1;
}

.match-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 2px;
    background: #0d2418;
    border: 2px solid #0d2418;
}

.player-card-overlay[hidden] {
    display: none;
}

.player-card-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

.player-card-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 16, 0.74);
}

.player-card-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(760px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 28px));
    background: #e7e8e3;
    border: 3px solid #0d2418;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28);
}

.player-card-dialog.is-dragging {
    user-select: none;
}

.has-player-card-open {
    overflow: hidden;
}

.player-card-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    color: #fff;
    background: #173f2a;
    border-bottom: 3px solid #0d2418;
    cursor: move;
    touch-action: none;
}

.player-card-dialog-head h2 {
    margin: 0;
    font-size: 18px;
}

.player-card-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: #111a14;
    background: #fff6cf;
    border: 2px solid #0d2418;
    font-size: 28px;
    line-height: 1;
}

.player-card-dialog-body {
    min-height: 180px;
    padding: 10px;
    overflow: auto;
}

.player-card-loading,
.player-card-error {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 900;
}

.player-card-error {
    color: #7b1818;
    background: #f8d7d7;
}

.player-card {
    display: grid;
    gap: 10px;
}

.player-card-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 8px solid #173f2a;
}

.player-card-hero h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.player-card-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.player-card-facts {
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.player-card-box {
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
}

.player-card-box-wide {
    grid-column: 1 / -1;
}

.player-card-box h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.player-card-box p {
    margin: 0;
    color: #28352e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.player-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.player-card-tags li {
    padding: 4px 6px;
    background: #e5f1e8;
    border-left: 3px solid #173f2a;
    font-size: 12px;
    font-weight: 900;
}

.player-card-key-attrs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.player-card-key-attr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    background: #f6f6f3;
    border-left: 4px solid #173f2a;
    font-size: 13px;
}

.player-card-key-attr span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-card-key-attr strong {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr minmax(78px, 1.2fr) 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    background: #f9faf6;
    text-align: center;
}

.career-panel h3 {
    margin: 24px 0 2px;
    padding: 10px 12px;
    color: #fff;
    background: #173f2a;
    border-left: 8px solid #b8a13a;
    font-size: 18px;
}

.career-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.career-form label {
    display: grid;
    gap: 7px;
    color: #173f2a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.career-form select,
.career-form input {
    width: 100%;
    color: #101914;
    background: #fff;
    border-color: #aeb8b0;
    font-weight: 650;
}

.career-create-panel {
    border-top: 6px solid #173f2a;
}

.career-create-panel > h2 {
    margin-bottom: 14px;
    color: #0d2418;
    font-size: 28px;
}

.career-create-panel .form-grid label {
    padding: 10px;
    background: #f7f7f1;
    border: 1px solid #d4d8d2;
    border-left: 5px solid #72976d;
}

.career-create-panel .career-form > label {
    padding: 9px 10px;
    background: #eef4ec;
    border: 1px solid #c4d2c3;
    border-left: 4px solid #1d6a43;
    font-size: 13px;
}

.career-create-panel select {
    min-height: 34px;
    padding: 6px 8px;
    color: #0d2418;
    background: #fff;
    border: 1px solid #b8a13a;
    font-size: 13px;
    font-weight: 550;
}

.career-create-panel input:focus,
.career-create-panel select:focus {
    outline: 3px solid rgba(184, 161, 58, 0.32);
    border-color: #173f2a;
}

.career-create-panel button[type="submit"] {
    justify-self: start;
    min-width: 190px;
    color: #fff;
    background: #173f2a;
    border-color: #0d2418;
}

.career-create-panel button[type="submit"]:hover,
.career-create-panel button[type="submit"]:focus {
    color: #111a14;
    background: #fff6cf;
}

.career-avatar-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 82px));
    gap: 10px;
}

.career-avatar-choice {
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 8px;
    background: #fff;
    border: 2px solid #cfd5cf;
    cursor: pointer;
}

.career-avatar-choice:has(input:checked) {
    border-color: #173f2a;
    outline: 3px solid rgba(184, 161, 58, 0.38);
}

.career-avatar-choice input {
    margin: 0;
}

.career-avatar-choice img {
    display: block;
    width: 58px;
    height: 58px;
    max-width: 100%;
    object-fit: cover;
    border: 2px solid #0d2418;
}

.career-club-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.career-club-choice {
    display: grid;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 2px solid #cfd5cf;
    cursor: pointer;
}

.career-club-choice:has(input:checked) {
    border-color: #173f2a;
    outline: 3px solid rgba(184, 161, 58, 0.38);
}

.career-rarity-common {
    border-color: #d7d9d4;
}

.career-rarity-promising {
    border-color: #2f6fca;
}

.career-rarity-formative {
    border-color: #2f8f5b;
}

.career-rarity-competitive {
    border-color: #d4a820;
}

.career-rarity-professional {
    border-color: #d97827;
}

.career-rarity-prestigious {
    border-color: #b43131;
}

.career-rarity-elite {
    border-color: #c9a22b;
}

.career-rarity-legendary {
    border-color: #7c4ac9;
}

.career-club-choice input {
    margin: 0;
}

.career-club-choice span,
.career-club-choice small,
.career-club-choice em {
    color: #53615a;
    font-style: normal;
    font-weight: 800;
}

.career-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.career-profile-hero {
    align-items: flex-start;
    border-top: 5px solid #173f2a;
}

.career-profile-side {
    display: grid;
    gap: 8px;
    width: 112px;
    flex: 0 0 112px;
}

.career-photo-facts {
    display: grid;
    gap: 1px;
    background: #cbd2ca;
    border: 1px solid #cbd2ca;
}

.career-photo-facts > div {
    display: grid;
    gap: 2px;
    padding: 6px 7px;
    background: #fff;
}

.career-photo-facts span {
    color: #667069;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.career-photo-facts strong {
    color: #102118;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.career-profile-main {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(360px, 1.25fr);
    align-items: stretch;
    gap: 18px;
    min-width: 0;
    flex: 1 1 auto;
}

.career-profile-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.career-profile-kicker {
    width: fit-content;
    padding: 4px 8px;
    color: #3f3105;
    background: #fff1a8;
    border: 1px solid #c9a22b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.career-profile-main h2 {
    margin: 0;
    color: #102118;
    font-size: 30px;
    line-height: 1.05;
}

.career-profile-main h2 span {
    color: #145834;
}

.career-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.career-profile-badges > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 9px;
    color: #173f2a;
    background: #f8faf6;
    border: 1px solid #cbd2ca;
    font-weight: 800;
    line-height: 1.25;
}

.career-profile-badges .career-profile-team {
    color: #fff;
    background: #173f2a;
    border-color: #0d2418;
}

.career-profile-badges .career-profile-role {
    color: #3f3105;
    background: #fff1a8;
    border-color: #c9a22b;
}

.career-growth-timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.career-growth-timeline li {
    position: relative;
    display: grid;
    grid-template-rows: 28px auto;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    color: #7a827c;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.career-growth-timeline li::before,
.career-growth-timeline li::after {
    content: "";
    position: absolute;
    top: 13px;
    height: 3px;
    background: #cbd2ca;
    z-index: 0;
}

.career-growth-timeline li::before {
    left: 0;
    right: 50%;
}

.career-growth-timeline li::after {
    left: 50%;
    right: 0;
}

.career-growth-timeline li:first-child::before,
.career-growth-timeline li:last-child::after {
    display: none;
}

.career-growth-timeline li.is-completed::before,
.career-growth-timeline li.is-completed::after,
.career-growth-timeline li.is-current::before {
    background: #173f2a;
}

.career-growth-dot {
    position: relative;
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: #cbd2ca;
    border: 2px solid #cbd2ca;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
}

.career-growth-timeline li.is-completed {
    color: #173f2a;
}

.career-growth-timeline li.is-completed .career-growth-dot {
    background: #173f2a;
    border-color: #173f2a;
}

.career-growth-timeline li.is-current {
    color: #102118;
}

.career-growth-timeline li.is-current .career-growth-dot {
    background: #fff1a8;
    border-color: #c9a22b;
    box-shadow: 0 0 0 4px rgba(201, 162, 43, 0.26);
}

.career-growth-timeline li.is-current strong {
    color: #102118;
    font-weight: 950;
}

.career-growth-timeline li.is-future .career-growth-dot {
    background: #f1f2ee;
}

.career-growth-timeline li.is-future strong {
    color: #7d8580;
    font-style: italic;
    font-weight: 950;
}

.career-growth-timeline strong {
    display: block;
    max-width: 92px;
    line-height: 1.15;
}

.career-next-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.career-next-steps > div {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 6px;
    min-height: 92px;
    padding: 12px;
    background: #fff;
    border: 1px solid #cbd2ca;
    border-left: 4px solid #173f2a;
    min-width: 0;
}

.career-next-steps span {
    color: #667069;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.career-next-steps strong {
    color: #102118;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.career-next-steps small {
    color: #53615a;
    font-weight: 700;
    line-height: 1.35;
}

.career-next-steps .is-mystery {
    background: #fff8d8;
    border-color: #c9a22b;
}

.career-next-steps .is-mystery strong {
    color: #8f2d2d;
    letter-spacing: 0;
}

.career-profile-photo {
    display: block;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    max-width: 112px;
    object-fit: cover;
    background: #fff;
    border: 4px solid #b8a13a;
}

.career-silhouette {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    place-items: center;
    color: #fff6cf;
    background: #0d2418;
    border: 4px solid #b8a13a;
    font-size: 24px;
    font-weight: 950;
}

.career-silhouette.has-team-logo {
    background: #fff;
}

.career-hero-logo {
    display: block;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
}

.youth-team-field {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.youth-team-logo,
.team-logo {
    display: inline-block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
    vertical-align: middle;
}

.team-logo-small {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.youth-team-logo-large {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.career-final-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.career-final-meta > span + span::before {
    content: "·";
    margin-right: 6px;
}

.career-final-team {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

.field-help {
    display: block;
    margin-top: 4px;
    color: #5f6b64;
    font-size: 12px;
    font-weight: 800;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.career-tags li {
    padding: 6px 8px;
    background: #e5f1e8;
    border-left: 4px solid #173f2a;
    font-weight: 900;
}

.career-timeline {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.career-timeline li {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: #fff;
    border-left: 5px solid #173f2a;
}

.career-timeline span {
    color: #28352e;
    font-weight: 700;
}

.career-save-list {
    display: grid;
    gap: 10px;
}

.career-home-section {
    width: min(100%, 860px);
    margin-right: auto;
    margin-left: auto;
}

.career-save-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #cfd5cf;
    border-left: 5px solid #173f2a;
}

.career-save-avatar {
    display: block;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    max-width: 54px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #173f2a;
}

.career-save-card > div:not(.career-save-meta) {
    min-width: 0;
}

.career-save-card h3,
.career-save-card p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.career-save-card p {
    margin-top: 4px;
    color: #53615a;
    font-weight: 800;
}

.career-save-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: max-content;
}

.career-save-meta span {
    padding: 5px 7px;
    color: #fff;
    background: #173f2a;
    font-size: 12px;
    font-weight: 950;
}

.career-event {
    max-width: 840px;
}

.career-event-special {
    border-color: #c9a22b;
    box-shadow: 0 0 0 3px rgba(201, 162, 43, 0.28), 0 2px 0 rgba(0, 0, 0, 0.15);
}

.event-special-subtitle {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 0 12px;
    padding: 4px 9px;
    color: #3f3105;
    background: #fff1a8;
    border: 1px solid #c9a22b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-report-form {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 10px;
}

.event-report-form button {
    padding: 7px 10px;
    color: #7a1f1f;
    background: #fff8f0;
    border: 1px solid #c7894b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.event-report-form button:hover,
.event-report-form button:focus {
    color: #fff;
    background: #9b2b2b;
    border-color: #7a1f1f;
}

.career-event-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.career-event-rarity-badge {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    vertical-align: middle;
}

.career-event p {
    max-width: 76ch;
    color: #304238;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
}

.career-text-highlight {
    display: inline;
    color: #123722;
    font-weight: 800;
    background: linear-gradient(transparent 58%, rgba(184, 161, 58, 0.28) 58%);
}

.event-db-id {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    color: #5b4a13;
    background: #fff1a8;
    border: 1px solid #d7bf55;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    vertical-align: middle;
}

.scout-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 4px;
}

.scout-offer-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: #fffaf0;
    border: 1px solid #d7bf55;
    border-left: 5px solid #c9a22b;
}

.scout-offer-card strong {
    color: #102118;
    font-weight: 850;
}

.scout-offer-card span,
.scout-offer-card small {
    color: #59655e;
    font-weight: 600;
}

.choice-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.choice-list button {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 13px 15px;
    color: #1c241f;
    background: #fbfcfa;
    border: 1px solid #c6cec8;
    border-left: 4px solid #b4bdb6;
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.choice-list button strong {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

.choice-list button:hover,
.choice-list button:focus {
    color: #fff;
    background: #173f2a;
    border-color: #0d2418;
    transform: translateY(-1px);
}

.choice-list button span {
    font-size: 13px;
    font-weight: 450;
    line-height: 1.45;
    color: #59655e;
}

.choice-list button:hover span,
.choice-list button:focus span {
    color: #dce7dd;
}

.event-rating-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 6px;
    padding: 12px;
    background: #fffaf0;
    border: 1px solid #d7bf55;
}

.event-rating-form > span {
    color: #3d463f;
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
}

.event-rating-stars {
    display: inline-flex;
    gap: 2px;
}

.event-rating-stars button {
    display: grid;
    place-items: center;
    gap: 1px;
    width: 42px;
    min-height: 48px;
    padding: 0;
    color: #b8bfb9;
    background: #fff;
    border: 1px solid #c6cec8;
    border-radius: 8px;
    text-align: center;
}

.event-rating-number {
    color: #263229;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.event-rating-star {
    font-size: 20px;
    line-height: 1;
}

.event-rating-stars button:hover,
.event-rating-stars button:focus,
.event-rating-stars button.is-selected {
    color: #7a5b00;
    background: #fff1a8;
    border-color: #c9a22b;
}

.event-rating-stars button:hover .event-rating-number,
.event-rating-stars button:focus .event-rating-number,
.event-rating-stars button.is-selected .event-rating-number {
    color: #5f4800;
}

.image-choice-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.image-choice-list .image-choice-card {
    display: grid;
    grid-template-rows: 160px 1fr;
    gap: 0;
    min-height: 270px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-left-width: 1px;
}

.image-choice-list button:not(.image-choice-card) {
    grid-column: 1 / -1;
}

.image-choice-card img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #e3e7e1;
    border-bottom: 1px solid #c6cec8;
}

.image-choice-copy {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 13px 14px;
}

.image-choice-list .image-choice-card:hover,
.image-choice-list .image-choice-card:focus {
    color: #102118;
    background: #fffaf0;
    border-color: #c9a22b;
    box-shadow: 0 0 0 3px rgba(201, 162, 43, 0.22);
}

.image-choice-list .image-choice-card:hover span,
.image-choice-list .image-choice-card:focus span {
    color: #59655e;
}

.image-choice-list .image-choice-card:hover .image-choice-copy > strong,
.image-choice-list .image-choice-card:focus .image-choice-copy > strong {
    color: #173f2a;
}

.career-admin-team-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 8px;
    border: 1px solid #cfd5cf;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #fff;
    background: #173f2a;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table td small {
    display: block;
    color: #5f6b64;
    font-weight: 700;
}

.admin-api-football-table {
    table-layout: fixed;
}

.admin-api-football-table th,
.admin-api-football-table td {
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.3;
    vertical-align: top;
}

.admin-api-football-table th:nth-child(1),
.admin-api-football-table td:nth-child(1) {
    width: 58px;
    text-align: center;
}

.admin-api-football-table th:nth-child(2),
.admin-api-football-table td:nth-child(2) {
    width: 72px;
}

.admin-api-football-table th:nth-child(3),
.admin-api-football-table td:nth-child(3) {
    width: 190px;
}

.admin-api-football-table th:nth-child(4),
.admin-api-football-table td:nth-child(4) {
    width: 120px;
}

.admin-api-football-table th:nth-child(5),
.admin-api-football-table td:nth-child(5) {
    width: 88px;
}

.admin-api-football-table th:nth-child(6),
.admin-api-football-table td:nth-child(6) {
    width: 96px;
}

.admin-api-football-table th:nth-child(7),
.admin-api-football-table td:nth-child(7) {
    width: 64px;
}

.admin-api-football-table th:nth-child(8),
.admin-api-football-table td:nth-child(8) {
    width: 210px;
}

.admin-api-football-table th:nth-child(9),
.admin-api-football-table td:nth-child(9) {
    width: 62px;
    text-align: center;
}

.admin-api-football-table th:nth-child(10),
.admin-api-football-table td:nth-child(10) {
    width: 82px;
}

.admin-api-football-table th:nth-child(11),
.admin-api-football-table td:nth-child(11) {
    width: 84px;
}

.admin-api-football-table th:nth-child(12),
.admin-api-football-table td:nth-child(12) {
    width: 126px;
}

.admin-api-football-table td:nth-child(3),
.admin-api-football-table td:nth-child(8) {
    word-break: break-word;
}

.admin-api-football-table td:nth-child(4) .star-rating {
    justify-content: flex-start;
}

.admin-api-football-table td strong {
    display: block;
}

.api-football-feed-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 6px;
    border: 1px solid #d4a820;
    background: #fff4bf;
    color: #5f4600;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: help;
}

.admin-team-link {
    color: #173f2a;
    text-decoration: none;
}

.admin-team-link:hover {
    text-decoration: underline;
}

.api-football-action-stack {
    display: grid;
    gap: 8px;
    min-width: 110px;
}

.api-football-inline-form,
.api-football-import-form {
    display: grid;
    gap: 6px;
    margin: 0;
}

.api-football-inline-form .button-link,
.api-football-import-form button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.api-football-refresh-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #173f2a;
}

.api-football-refresh-option input {
    margin: 0;
}

@media (max-width: 1200px) {
    .admin-api-football-table {
        table-layout: auto;
    }
}

.admin-rarity-row {
    border-left: 6px solid #d7d9d4;
}

.admin-rarity-row > td:first-child {
    border-left-width: 0;
}

.admin-rarity-common {
    border-left-color: #d7d9d4;
}

.admin-rarity-promising {
    border-left-color: #2f6fca;
    background: #f4f8ff;
}

.admin-rarity-formative {
    border-left-color: #2f8f5b;
    background: #f3fbf6;
}

.admin-rarity-competitive {
    border-left-color: #d4a820;
    background: #fffaf0;
}

.admin-rarity-professional {
    border-left-color: #d97827;
    background: #fff6ed;
}

.admin-rarity-prestigious {
    border-left-color: #b43131;
    background: #fff3f3;
}

.admin-rarity-elite {
    border-left-color: #c9a22b;
    background: #fff8d8;
}

.admin-rarity-legendary {
    border-left-color: #7c4ac9;
    background: #f8f3ff;
}

.rarity-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #102118;
    background: #f4f5f1;
    border: 1px solid #cfd5cf;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.rarity-pill-promising {
    color: #103f72;
    background: #eaf2ff;
    border-color: #2f6fca;
}

.rarity-pill-formative {
    color: #0f4f31;
    background: #e9f8ef;
    border-color: #2f8f5b;
}

.rarity-pill-competitive {
    color: #5c4400;
    background: #fff3bd;
    border-color: #d4a820;
}

.rarity-pill-professional {
    color: #713507;
    background: #ffe4c9;
    border-color: #d97827;
}

.rarity-pill-prestigious {
    color: #7f1515;
    background: #ffe1e1;
    border-color: #b43131;
}

.rarity-pill-elite {
    color: #5b4300;
    background: #fff1a8;
    border-color: #c9a22b;
}

.rarity-pill-legendary {
    color: #4b2788;
    background: #efe3ff;
    border-color: #7c4ac9;
}

.career-admin-list {
    display: grid;
    gap: 12px;
}

.career-admin-card {
    background: #fff;
    border: 1px solid #cfd5cf;
    border-left: 6px solid #173f2a;
}

.career-admin-card[open] {
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.career-admin-summary {
    display: grid;
    grid-template-columns: 18px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
}

.career-admin-summary::-webkit-details-marker {
    display: none;
}

.career-admin-expand {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #173f2a;
    transition: transform 140ms ease;
}

.career-admin-card[open] .career-admin-expand {
    transform: rotate(90deg);
}

.career-admin-avatar {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    max-width: 46px;
    object-fit: cover;
    background: #fff;
    border: 2px solid #173f2a;
}

.career-admin-summary-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.career-admin-summary-main strong,
.career-admin-summary-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.career-admin-summary-main strong {
    color: #102118;
    font-size: 15px;
    font-weight: 900;
}

.career-admin-summary-main span {
    color: #5f6b64;
    font-size: 13px;
    font-weight: 700;
}

.career-admin-summary-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3f4f45;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.career-admin-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px 76px;
    border-top: 1px solid #e0e4e0;
}

.career-admin-status {
    padding: 5px 7px;
    color: #fff;
    background: #173f2a;
    font-size: 12px;
    font-weight: 950;
}

.career-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.career-admin-actions form {
    margin: 0;
}

.career-admin-debug {
    margin-top: 4px;
}

.danger-button {
    color: #fff;
    background: #8e2f2f;
    border-color: #5d1d1d;
}

.danger-button:hover,
.danger-button:focus {
    background: #6f2222;
}

.admin-debug-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.admin-debug-grid pre {
    min-height: 120px;
    max-height: 280px;
    margin: 0;
    padding: 10px;
    overflow: auto;
    color: #f6f6f3;
    background: #101914;
    border: 1px solid #0d2418;
    font-size: 12px;
    white-space: pre-wrap;
}

.admin-hub {
    border-left: 6px solid #b8a13a;
}

.career-json-import-form {
    display: grid;
    gap: 12px;
}

.career-json-import-form textarea {
    width: 100%;
    min-height: 360px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    tab-size: 2;
}

.admin-collapsible-panel {
    padding: 0;
}

.admin-collapsible-panel summary {
    cursor: pointer;
    padding: 16px 18px;
    color: #102118;
    font-size: 18px;
    font-weight: 950;
    list-style-position: inside;
}

.admin-collapsible-panel > :not(summary) {
    margin-inline: 18px;
}

.admin-collapsible-panel > :last-child {
    margin-bottom: 18px;
}

.admin-collapsible-panel .career-json-import-form textarea {
    min-height: 260px;
}

.admin-events-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.admin-events-layout > .panel {
    overflow: auto;
}

.admin-event-table {
    min-width: 1280px;
}

.admin-account-table {
    min-width: 900px;
}

.admin-account-table tr.is-active {
    outline: 3px solid rgba(23, 63, 42, 0.24);
    outline-offset: -3px;
    background: #f1f7f3;
}

.admin-account-table td:first-child {
    display: grid;
    gap: 3px;
}

.account-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #cfd5cf;
    background: #fff;
    color: #18251d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.account-role-userplus {
    color: #12305f;
    background: #e8f0ff;
    border-color: #7ca1df;
}

.account-role-admin {
    color: #5b170f;
    background: #fff1e8;
    border-color: #d28a55;
}

.account-role-career {
    color: #0f3b22;
    background: #e3f2e7;
    border-color: #78a987;
}

.account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #cfd5cf;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.account-status-active {
    color: #0f3b22;
    background: #e3f2e7;
    border-color: #78a987;
}

.account-status-disabled {
    color: #7a1f1f;
    background: #fff1e6;
    border-color: #c7894b;
}

.admin-account-actions {
    white-space: nowrap;
}

.admin-event-inline-editor {
    display: none;
}

.admin-event-table tr.is-active {
    outline: 3px solid rgba(23, 63, 42, 0.28);
    outline-offset: -3px;
}

.event-report-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    padding: 2px 8px;
    color: #4f5c54;
    background: #eef1ee;
    border: 1px solid #cfd5cf;
    font-weight: 850;
}

.event-report-count.has-reports {
    color: #7a1f1f;
    background: #fff1e6;
    border-color: #c7894b;
}

.admin-event-title-link {
    display: grid;
    gap: 3px;
    color: #102118;
    text-decoration: none;
}

.admin-event-title-link:hover,
.admin-event-title-link:focus {
    color: #0b4a2a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-preview-outcomes {
    display: grid;
    gap: 12px;
}

.admin-preview-outcome {
    position: relative;
    padding-top: 34px;
}

.admin-preview-outcome h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.admin-preview-choice-code {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 7px;
    color: #5f4300;
    background: #fff6cf;
    border: 1px solid #d2b84d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 900;
}

.admin-image-path-box {
    display: grid;
    gap: 4px;
    margin: 8px 0 12px;
    padding: 8px 10px;
    background: #f8faf6;
    border: 1px solid #cfd7cf;
}

.admin-image-path-box span {
    color: #5f6b64;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-image-path-box code {
    overflow-wrap: anywhere;
    color: #102016;
    font-size: 12px;
    font-weight: 850;
}

.admin-image-path-box small {
    color: #5f6b64;
    font-weight: 800;
}

.career-event-outcome-image {
    margin: 14px 0 0;
    background: #101914;
    border: 2px solid #173f2a;
}

.career-event-outcome-image img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: contain;
}

.admin-event-list {
    display: grid;
    gap: 6px;
    max-height: 720px;
    overflow: auto;
}

.admin-event-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.admin-event-list-row > a:first-child {
    display: grid;
    gap: 3px;
    padding: 8px;
    color: #111a14;
    background: #fff;
    border: 1px solid #cfd5cf;
    text-decoration: none;
}

.admin-event-list-row.is-active > a:first-child,
.admin-event-list-row > a:first-child:hover,
.admin-event-list-row > a:first-child:focus {
    color: #fff;
    background: #173f2a;
    border-color: #0d2418;
}

.compact-button {
    display: inline-grid;
    min-width: 74px;
    place-items: center;
    padding: 7px 9px;
    font-size: 12px;
}

.admin-event-row-actions {
    display: grid;
    gap: 6px;
}

.admin-event-list span {
    font-size: 12px;
    font-weight: 800;
}

.career-choice-admin-form {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px;
    background: #f7f7f1;
    border: 1px solid #d4d8d2;
    border-left: 5px solid #173f2a;
}

.choice-identity-row {
    display: grid;
    grid-template-columns: minmax(160px, auto) minmax(110px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    background: #eef4ec;
    border: 1px solid #c4d2c3;
}

.choice-identity-row span {
    display: block;
    color: #5f6b64;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.choice-identity-row strong {
    color: #0d2418;
    font-weight: 950;
}

.danger-check {
    color: #7b1818;
}

.event-identity-box {
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(90px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff6cf;
    border: 1px solid #dacb82;
    border-left: 6px solid #b8a13a;
}

.event-identity-box span {
    display: block;
    color: #5f6b64;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.event-identity-box strong,
.event-identity-box code {
    color: #0d2418;
    font-weight: 950;
}

.event-identity-box p {
    margin: 0;
    color: #26352c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.career-admin-team-form textarea,
.career-choice-admin-form textarea {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    font: inherit;
}

.career-welcome {
    display: grid;
    gap: 14px;
    max-width: 860px;
    width: min(100%, 860px);
    margin: 0 auto;
}

.career-welcome-banner {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    border: 0;
    padding: 0;
}

.career-welcome-panel {
    border-left: 8px solid #b8a13a;
    width: 100%;
}

.career-alpha-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 8px;
    color: #fff;
    background: #8e2f2f;
    border: 2px solid #5d1d1d;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.career-welcome-panel h2 {
    margin-top: 0;
    font-size: 30px;
}

.career-welcome-panel p {
    max-width: 860px;
    color: #26352c;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
}

.stat-row strong {
    color: #0d2418;
    font-size: 20px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.stat-row span {
    color: #425047;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.career-special-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 8px;
    color: #102016;
    background: #fff6cf;
    border: 1px solid #b98f00;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.career-pro-offers {
    display: grid;
    gap: 18px;
    border-top: 5px solid #b98f00;
}

.career-pro-offers-intro {
    max-width: 820px;
}

.career-pro-offers-intro h2,
.career-coming-soon-head h2 {
    margin: 0 0 8px;
}

.career-pro-offers-intro p,
.career-coming-soon-head p {
    margin: 0;
    color: #35443a;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
}

.career-pro-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.career-pro-offer-card {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 2px solid #c8d0c9;
    border-left: 8px solid var(--offer-color);
    box-shadow: inset 0 4px 0 var(--offer-secondary), 0 2px 0 rgba(0, 0, 0, 0.12);
}

.career-pro-offer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #5f6b64;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.career-pro-offer-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.career-pro-offer-card h3 {
    margin: 2px 0 0;
    font-size: 24px;
}

.career-pro-offer-card p {
    margin: 0;
    color: #425047;
    font-weight: 750;
}

.career-pro-offer-details {
    display: grid;
    gap: 7px;
}

.career-pro-offer-details div {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f4f6f1;
    border: 1px solid #d2d8d2;
}

.career-pro-offer-details span {
    display: block;
    color: #5f6b64;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.career-pro-offer-details strong {
    display: block;
    color: #102016;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    min-width: 0;
}

.career-pro-offer-colors {
    display: flex;
    width: 84px;
    height: 14px;
    overflow: hidden;
    border: 1px solid #102016;
}

.career-pro-offer-colors span:first-child {
    flex: 1;
    background: var(--offer-color);
}

.career-pro-offer-colors span:last-child {
    flex: 1;
    background: var(--offer-secondary);
}

.career-graduation-hero h2 {
    margin-top: 0;
}

.career-alpha-disclaimer {
    border-top: 5px solid #b98f00;
}

.career-alpha-disclaimer h2 {
    margin: 0 0 12px;
}

.career-alpha-disclaimer p {
    max-width: 960px;
    margin: 0 0 10px;
    color: #26352c;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.55;
}

.career-alpha-disclaimer p:last-child {
    margin-bottom: 0;
}

.career-final-match-board {
    padding: 0;
    background: transparent;
    border: 0;
}

.career-final-match-layout {
    grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.career-final-match-layout .lineup-panel li {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.career-final-match-layout .lineup-player-text {
    display: block;
    overflow: hidden;
    min-width: 0;
    color: #102016;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.career-final-star-player {
    background: #e2f5e8;
    border-left-color: #1f7a44;
}

.career-final-goal-icons {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    color: #0f4f31;
    font-size: 13px;
    letter-spacing: -2px;
    white-space: nowrap;
}

.career-final-live-panel {
    min-height: 0;
    grid-template-rows: auto auto minmax(180px, 1fr);
}

.career-final-static-pitch {
    position: relative;
    min-height: 330px;
    margin: 10px 12px 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 16.66% 100%,
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
        #17633a;
    border: 2px solid #d7e6d9;
}

.career-final-static-pitch::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 2px solid rgba(245, 255, 246, 0.78);
}

.career-final-pitch-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    min-width: 58px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    color: #fff;
    background: var(--home-color);
    border: 2px solid rgba(255, 255, 255, 0.88);
    font-weight: 950;
}

.career-final-pitch-badge.is-home {
    left: 22px;
    bottom: 18px;
}

.career-final-pitch-badge.is-away {
    top: 18px;
    right: 22px;
    background: var(--away-color);
}

.career-final-commentary {
    color: #0f4f31;
    background: #dff4e5;
    border-top: 2px solid #bdd9c7;
}

.career-final-timeline {
    padding: 10px 14px 14px;
    background: #eef0eb;
}

.career-final-timeline li {
    display: grid;
    grid-template-columns: 44px 48px 86px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 0 0 8px;
    padding: 10px;
    background: #fff;
    border: 2px solid #c9d0c9;
}

.career-final-timeline li.is-goal {
    border-color: #1f7a44;
    background: #eaf8ef;
}

.career-final-timeline li.is-away {
    border-color: var(--away-color);
    background: #fff1e8;
}

.career-final-timeline li.is-final {
    border-color: #8a8f8b;
    background: #f7f7f5;
}

.career-final-timeline .timeline-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 17px;
}

.career-final-timeline strong,
.career-final-timeline em {
    color: #102016;
    font-style: normal;
    font-weight: 950;
}

.career-final-timeline p {
    margin: 0;
    color: #102016;
    font-weight: 750;
    line-height: 1.3;
}

.career-coming-soon-match {
    display: grid;
    gap: 14px;
    overflow: hidden;
    background: #e9ece6;
}

.career-coming-soon-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.career-coming-soon-head > strong {
    padding: 12px 18px;
    color: #102016;
    background: #fff6cf;
    border: 2px solid #b98f00;
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.career-final-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
    align-items: stretch;
    background: #0d2418;
    border: 2px solid #0d2418;
}

.career-final-team-score,
.career-final-score {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    color: #fff;
    background: var(--home-color);
    border-bottom: 5px solid var(--home-secondary);
    font-weight: 950;
    min-width: 0;
}

.career-final-team-score strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.career-final-team-score.is-away {
    justify-content: flex-end;
    text-align: right;
    background: var(--away-color);
    border-bottom-color: var(--away-secondary);
}

.career-final-team-score .team-color-chip {
    background: linear-gradient(90deg, var(--home-color) 0 50%, var(--home-secondary) 50% 100%);
}

.career-final-team-score.is-away .team-color-chip {
    background: linear-gradient(90deg, var(--away-secondary) 0 50%, var(--away-color) 50% 100%);
}

.career-final-score {
    justify-content: center;
    color: #102016;
    background: #fff6cf;
    border-bottom-color: #b98f00;
    font-size: 28px;
}

.career-final-match-scene {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 14px;
}

.career-final-pitch {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 16.66% 100%,
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
        #17633a;
    border: 3px solid #d7e6d9;
}

.career-final-pitch::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px solid rgba(245, 255, 246, 0.78);
}

.career-final-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    border: 2px solid rgba(245, 255, 246, 0.72);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.career-final-goal,
.career-final-box {
    position: absolute;
    border: 2px solid rgba(245, 255, 246, 0.72);
}

.career-final-goal-a,
.career-final-goal-b {
    top: 42%;
    width: 16px;
    height: 58px;
    background: rgba(255, 255, 255, 0.14);
}

.career-final-goal-a {
    left: 2px;
}

.career-final-goal-b {
    right: 2px;
}

.career-final-box-left,
.career-final-box-right {
    top: 30%;
    width: 112px;
    height: 132px;
}

.career-final-box-left {
    left: 18px;
}

.career-final-box-right {
    right: 18px;
}

.career-final-player-marker {
    position: absolute;
    right: 88px;
    top: 44%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #102016;
    background: #fff6cf;
    border: 4px solid var(--home-color);
    border-radius: 50%;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
    font-size: 20px;
    font-weight: 950;
}

.career-final-ball {
    position: absolute;
    right: 42px;
    top: 48%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #102016;
    border-radius: 50%;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.career-final-goals {
    display: grid;
    align-content: start;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.career-final-goals li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-left: 5px solid #b98f00;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.career-final-goals strong {
    color: #173f2a;
    font-size: 20px;
    font-weight: 950;
}

.career-final-goals span {
    color: #243128;
    font-weight: 750;
    line-height: 1.35;
}

.preseason-hero {
    border-top: 5px solid #b99722;
}

.preseason-fixtures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.preseason-card {
    background: #fbfcfa;
    border: 1px solid #c8d0c8;
    border-left: 5px solid #1d5f3c;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.preseason-source {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 24px;
    padding: 3px 8px;
    color: #5b4300;
    background: #fff1a8;
    border: 1px solid #c9a22b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.preseason-card-head,
.preseason-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.preseason-card-head > span,
.preseason-meta > span,
.preseason-decision > span {
    text-transform: uppercase;
    font-size: 0.74rem;
    color: #5b665e;
}

.preseason-card-head strong {
    font-size: 1.05rem;
}

.preseason-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.preseason-teams > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.preseason-teams strong {
    overflow-wrap: anywhere;
}

.preseason-teams > span {
    color: #8b6c0f;
    font-weight: 900;
}

.preseason-decision {
    background: #f1f4f1;
    border: 1px solid #d7ddd7;
    padding: 12px;
}

.preseason-decision strong {
    display: block;
    font-size: 1.25rem;
    color: #0d261b;
}

.preseason-decision small,
.preseason-decision p {
    display: block;
    margin-top: 6px;
    color: #425047;
}

.preseason-actions {
    display: grid;
    gap: 6px;
}

.preseason-actions form {
    margin: 0;
}

.preseason-actions button {
    width: 100%;
}

.preseason-actions button:disabled {
    color: #6b7280;
    background: #e6e8e6;
    border-color: #c5cbc5;
    cursor: not-allowed;
}

.preseason-actions small {
    color: #5b665e;
}

.preseason-decision-starter {
    border-left-color: #1d8b4c;
}

.preseason-decision-bench-in {
    border-left-color: #b99722;
}

.preseason-decision-bench {
    border-left-color: #6b7280;
}

.preseason-decision-out {
    border-left-color: #9b2c2c;
}

@media (max-width: 900px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    body.career-page .topbar {
        min-height: 96px;
        padding: 14px 16px;
        background:
            linear-gradient(90deg, rgba(0, 34, 68, 0.78) 0%, rgba(0, 53, 104, 0.52) 48%, rgba(0, 87, 168, 0.22) 100%),
            url('/assets/header-career-mobile.png?v=1') center center / cover no-repeat;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-meta {
        text-align: left;
    }

    .player-facts,
    .summary-grid,
    .detail-grid,
    .attribute-columns,
    .split-lists,
    .match-config-grid,
    .tactics-grid,
    .match-options,
    .league-match-form,
    .match-layout,
    .match-stats,
    .admin-events-layout {
        grid-template-columns: 1fr;
    }

    .career-pro-offer-grid,
    .career-final-match-scene,
    .career-final-scoreboard,
    .career-coming-soon-head,
    .career-final-match-layout {
        grid-template-columns: 1fr;
    }

    .career-final-team-score.is-away {
        justify-content: flex-start;
        text-align: left;
    }

    .career-final-score {
        min-height: 48px;
    }

    .career-final-pitch {
        min-height: 240px;
    }

    .career-final-static-pitch {
        min-height: 240px;
    }

    .career-final-timeline li {
        grid-template-columns: 38px 44px minmax(0, 1fr);
    }

    .career-final-timeline em {
        display: none;
    }

    .career-final-box-left,
    .career-final-box-right {
        width: 82px;
        height: 96px;
    }

    .career-final-player-marker {
        right: 58px;
    }

    .career-pro-offer-details {
        grid-template-columns: 1fr;
    }

    .career-pro-offer-details div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .career-admin-summary {
        grid-template-columns: 18px 42px minmax(0, 1fr);
    }

    .career-admin-summary-meta {
        grid-column: 3;
        flex-wrap: wrap;
        white-space: normal;
    }

    .career-admin-body {
        padding-left: 12px;
    }

    .scoreboard {
        grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr) 54px;
        font-size: 12px;
    }

    .match-result-strip {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .match-player {
        grid-template-columns: 1fr;
    }

    .match-time-display strong {
        font-size: 34px;
    }

    .match-controls button {
        min-width: 58px;
        flex: 1 1 auto;
        padding-inline: 8px;
    }

    .team-name.away {
        text-align: right;
    }

    .team-name,
    .score,
    .clock {
        min-height: 48px;
        padding: 8px;
    }

    .score {
        font-size: 24px;
    }

    .clock {
        font-size: 16px;
    }

    .career-final-match-board .scoreboard {
        grid-template-columns: 1fr;
    }

    .career-final-match-board .team-name.home,
    .career-final-match-board .team-name.away,
    .career-final-match-board .score,
    .career-final-match-board .clock {
        grid-column: 1;
        width: 100%;
        min-height: 48px;
        justify-content: center;
        text-align: center;
    }

    .career-final-match-board .team-name.home {
        grid-row: 1;
    }

    .career-final-match-board .score {
        grid-row: 2;
        min-height: 64px;
        font-size: 38px;
    }

    .career-final-match-board .team-name.away {
        grid-row: 3;
    }

    .career-final-match-board .clock {
        grid-row: 4;
        min-height: 42px;
    }

    .live-panel {
        min-height: 420px;
    }

    .match-pitch {
        height: 250px;
    }

    .player-card-overlay {
        padding: 8px;
    }

    .player-card-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .player-card-dialog-body {
        padding: 10px;
    }

    .player-card-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-card-facts,
    .player-card-grid,
    .player-card-key-attrs,
    .rating-settings-grid {
        grid-template-columns: 1fr;
    }

    .career-welcome-banner {
        height: clamp(160px, 38vw, 260px);
        max-height: 260px;
    }

    .career-save-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }

    .career-club-choice-grid {
        grid-template-columns: 1fr;
    }

    .preseason-fixtures {
        grid-template-columns: 1fr;
    }

    .career-profile-hero {
        flex-direction: column;
    }

    .career-profile-side {
        width: 100%;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: stretch;
    }

    .career-profile-side .career-profile-photo {
        width: 72px;
        height: 72px;
        max-width: 72px;
        flex-basis: 72px;
        border-width: 3px;
    }

    .career-photo-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .career-profile-main {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .career-growth-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        overflow-x: visible;
        padding: 2px 0;
    }

    .career-growth-timeline li {
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-rows: auto;
        justify-items: start;
        align-items: center;
        gap: 10px;
        min-height: 42px;
        text-align: left;
    }

    .career-growth-timeline li::before,
    .career-growth-timeline li::after {
        left: 13px;
        right: auto;
        width: 3px;
        height: 50%;
    }

    .career-growth-timeline li::before {
        top: 0;
    }

    .career-growth-timeline li::after {
        top: 50%;
    }

    .career-growth-timeline strong {
        max-width: none;
    }

    .career-next-steps {
        grid-template-columns: 1fr;
    }

    .image-choice-list {
        grid-template-columns: 1fr;
    }

    .image-choice-list .image-choice-card {
        grid-template-rows: 132px auto;
        min-height: 0;
    }

    .image-choice-card img {
        height: 132px;
    }

    .career-save-avatar {
        width: 48px;
        height: 48px;
        max-width: 48px;
        flex-basis: 48px;
    }

    .career-save-meta {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        min-width: 0;
    }

    .career-welcome-panel h2 {
        font-size: 26px;
    }

    .career-welcome-panel p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pitch-zone.is-active {
        animation: none;
    }

    .pitch-ball,
    .pitch-zone {
        transition-duration: 40ms;
    }
}

/* Career home - nuova funzionalità preseason */
.career-new-feature-blink {
    display: inline-block;
    margin: 12px 0 14px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #ffb703;
    color: #1b1b1b;
    border: 2px solid #7a3f00;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(255, 183, 3, 0.75);
    animation-name: careerFeatureBlink;
    animation-duration: 0.9s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.career-new-feature-blink strong {
    color: #6b0000;
}

@keyframes careerFeatureBlink {
    0% {
        background: #ffb703;
        color: #1b1b1b;
        box-shadow: 0 0 14px rgba(255, 183, 3, 0.75);
    }

    50% {
        background: #fff1a8;
        color: #6b0000;
        box-shadow: 0 0 26px rgba(255, 183, 3, 1);
    }

    100% {
        background: #ffb703;
        color: #1b1b1b;
        box-shadow: 0 0 14px rgba(255, 183, 3, 0.75);
    }
}
