/* The accepted Classic product style, scoped to secondary screens. */
.tm-classic-secondary { font-family:var(--tm-body-font); color:var(--tm-brand-ink); background:var(--tm-brand-bg); margin:0; line-height:1.45; }
.tm-classic-secondary :is(div,span,p,a,td,th,font,label,input,select,textarea,button,h1,h2,h3,h4,small,strong,b,i) { font-family:var(--tm-body-font)!important; box-sizing:border-box; }
.tm-classic-secondary :is(td,th,font) { font-variant-numeric:tabular-nums; }
.tm-secondary-content { width:100%; max-width:var(--tm-content-width); margin-inline:auto; padding:24px var(--tm-content-gutter); box-sizing:border-box; overflow-x:auto; }
.tm-secondary-content :is(.page-shell,.page,.friendly-container,.auth-container,.auth-card,.register-container,.error-container) { width:100%; max-width:100%; min-width:0; margin-inline:auto; padding-inline:0; box-sizing:border-box; }
.tm-secondary-content :is(h1,.auth-title,.friendly-title) { font-size:24px; line-height:1.25; margin:0 0 16px; font-weight:800; color:var(--tm-brand-ink); }
.tm-secondary-content h2 { font-size:18px; line-height:1.3; margin:20px 0 12px; }
.tm-secondary-content :is(h3,h4) { font-size:15px; line-height:1.4; }
.tm-secondary-content :is(td,th) { padding:6px; font-size:13px; line-height:1.4; vertical-align:middle; }
.tm-secondary-content table { max-width:100%; border-spacing:0; }
/* Zebra must not cover rows that carry a state colour: CLLibrary::games marks
   tips as tr.bold (correct), tr.black (wrong) and tr.lightgrey (cancelled). */
.tm-secondary-content :is(table>tbody>tr:nth-child(even),table>tr:nth-child(even)):not(.bold,.black,.lightgrey) { background:var(--tm-match-alt); }
.tm-secondary-content :is(th,td) :is(font[size="1"],font[size="2"]) { font-size:inherit; }
.tm-secondary-content :is(font[size="3"],font[size="4"]) { font-size:18px; }
.tm-secondary-content :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea,button) { border:1px solid var(--tm-brand-line); border-radius:8px; padding:8px 12px; max-width:100%; min-width:0; background:var(--tm-match-surface); color:var(--tm-brand-ink); font-size:14px!important; line-height:1.4; }
.tm-secondary-content :is(input[type=submit],input[type=button],button[type=submit],.auth-submit) { background:var(--tm-brand-yellow); color:var(--tm-brand-ink); border-color:var(--tm-brand-yellow); border-radius:999px; font-weight:700; cursor:pointer; }
.tm-secondary-content :is(input[type=radio],input[type=checkbox]) { accent-color:var(--tm-brand-ink); width:18px; height:18px; margin:4px; vertical-align:middle; }
.tm-secondary-content .form-group { margin-bottom:16px; }
.tm-secondary-content .form-group>label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.tm-secondary-content :is(.form-group>input,.form-group>select,.form-group>textarea,.auth-submit) { width:100%; }
.tm-secondary-content :is(.form-row,.auth-links,.friendly-actions) { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.tm-secondary-content :is(.auth-message,.error-message) { padding:12px 16px; border:1px solid var(--tm-brand-line); border-radius:8px; background:var(--tm-match-alt); }
.tm-classic-secondary :focus-visible { outline:3px solid var(--tm-brand-yellow); outline-offset:3px; }
.tm-secondary-content .auth-container { max-width:560px; background:transparent; border:0; box-shadow:none; }
.tm-secondary-content .friendly-container { background:transparent; border:0; box-shadow:none; }
.tm-secondary-content .friendly-header { padding:0; background:transparent; color:var(--tm-brand-ink); }
.tm-secondary-content .friendly-subtitle { font-size:14px; color:var(--tm-match-muted); }
.tm-secondary-footer { max-width:var(--tm-content-width); width:100%; margin-inline:auto; padding:16px var(--tm-content-gutter) 24px; border-top:1px solid var(--tm-brand-line); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; box-sizing:border-box; }
.tm-secondary-footer-brand { display:inline-flex; align-items:center; min-height:44px; }
.tm-secondary-footer-brand img { width:auto; height:28px; }
.tm-secondary-footer nav { display:flex; flex-wrap:wrap; gap:4px 20px; }
.tm-secondary-footer nav a { color:var(--tm-match-muted); text-decoration:none; display:inline-flex; align-items:center; min-height:44px; font-size:13px; }
.tm-secondary-footer nav a:hover { color:var(--tm-brand-ink); text-decoration:underline; }
@media(max-width:768px) {
 .tm-secondary-content { padding:16px var(--tm-content-gutter); }
 .tm-secondary-content :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea,button) { min-height:44px; font-size:16px!important; }
 .tm-secondary-content :is(td,th) { padding:5px 4px; }
 .tm-secondary-content :is(h1,.auth-title,.friendly-title) { font-size:20px; }
 .tm-secondary-content .friendly-nav { display:flex; flex-wrap:wrap; gap:8px; }
 .tm-secondary-content .friendly-nav a { padding:8px 12px; min-height:44px; }
}
@media print {
 .tm-classic-secondary { background:var(--tm-match-surface); }
 .tm-classic-secondary .tm-brand-bar,.tm-secondary-footer { display:none!important; }
 .tm-secondary-content { max-width:none; padding:0; overflow:visible; }
 .tm-secondary-content :is(td,th,font) { font-size:9pt!important; padding:2pt; }
 .tm-secondary-content table { max-width:100%; break-inside:auto; }
 .tm-secondary-content tr { break-inside:avoid; }
}

/* Printable form keeps quotes and write-in space aligned without a pre block. */
.tm-secondary-content .classic-print-table { width:100%; table-layout:fixed; }
.tm-secondary-content .classic-print-table :is(th,td) { width:32px; text-align:center; }
.tm-secondary-content .classic-print-table :is(th,td):nth-child(2) { width:auto; text-align:left; }
.tm-secondary-content .classic-print-table :is(th,td):last-child { width:48px; }
.classic-print-fixture { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.classic-print-blank { display:block; height:28px; border:1px solid var(--tm-brand-line); border-radius:6px; background:var(--tm-match-surface); }
@media print { .classic-print-fixture { white-space:normal; overflow:visible; } .classic-print-blank { border-color:var(--tm-brand-ink); } }

/* React uses the same frame; atomic Tamagui width/padding values stay local. */
.tm-classic-react { min-width:0; width:100%; background:var(--tm-brand-bg); }
.tm-classic-react .tm-secondary-content { max-width:var(--tm-content-width)!important; padding:24px var(--tm-content-gutter)!important; min-width:0; gap:16px; }
.tm-classic-react .classic-page-title { font-size:24px!important; font-weight:800; line-height:1.25; color:var(--tm-brand-ink); }
.tm-classic-react .classic-page-subtitle { font-size:14px!important; color:var(--tm-match-muted); }
.tm-classic-react .classic-data-table { overflow-x:auto; max-width:100%; }
.tm-classic-react .classic-data-table>div { min-width:max-content; }
@media(max-width:768px) { .tm-classic-react .tm-secondary-content { padding:16px var(--tm-content-gutter)!important; } .tm-classic-react .classic-page-title { font-size:20px!important; } }

/* Retire the old mobile dark form palette inside the Classic light frame. */
body.tm-classic-secondary { background:var(--tm-brand-bg)!important; color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content :is(label,.auth-subtitle,.form-hint,.auth-message,.auth-links p,.auth-link,.teaser-text,.kontakt-liste,.mail-field,.filter-group,.search-group) { color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content :is(.form-hint,.auth-subtitle) { color:var(--tm-match-muted)!important; }
.tm-classic-secondary .tm-secondary-content :is(.auth-submit,input[type=submit],button[type=submit]) { background:var(--tm-brand-yellow)!important; color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content :is(.auth-links,.auth-link,.auth-message) a { color:var(--tm-brand-ink)!important; text-decoration:underline; text-underline-offset:3px; }
.tm-classic-secondary .tm-secondary-content .form-row:has(>select[name=gb1]) { display:grid; grid-template-columns:1fr 1fr 1.35fr; gap:8px; }
.tm-classic-secondary .tm-secondary-content .form-row:has(>select[name=gb1]) select { width:100%; padding-inline:8px; }

.classic-email-card { max-width:560px; margin-inline:auto; padding:20px; border:1px solid var(--tm-brand-line); border-radius:12px; background:var(--tm-match-surface); }

/* The approved stacked-mobile / horizontal-wide pairing, including tip sums. */
.classic-secondary-pair { display:grid; grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr); align-items:center; gap:8px; padding:10px; }
.classic-pair-team { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:700; }
.classic-pair-name { display:block; overflow:hidden; text-overflow:ellipsis; }
.classic-pair-team small { display:block; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:500; color:var(--tm-match-muted); }
.classic-pair-home { grid-column:1; grid-row:1; text-align:right; }
.classic-pair-home-score { grid-column:2; grid-row:1; }
.classic-pair-away-score { grid-column:3; grid-row:1; flex-direction:row-reverse; }
.classic-pair-away { grid-column:4; grid-row:1; }
.classic-pair-numbers { display:flex; align-items:center; gap:5px; }
.classic-pair-goals,.classic-pair-sum { display:inline-flex; align-items:center; justify-content:center; height:36px; width:36px; flex-shrink:0; border:1px solid var(--tm-brand-line); border-radius:9px; background:var(--tm-match-alt); font-variant-numeric:tabular-nums; }
.classic-pair-goals { font-size:19px; font-weight:800; }
.classic-cup-card--live .classic-pair-goals { color:var(--tm-red,#dc2626); }
.classic-pair-sum { font-size:13px; font-weight:600; }
.classic-cup-pair { grid-template-columns:minmax(0,1fr) auto; }
.classic-cup-pair :is(.classic-pair-home,.classic-pair-away) { grid-column:1; text-align:left; }
.classic-cup-pair :is(.classic-pair-home-score,.classic-pair-away-score) { grid-column:2; flex-direction:row; }
.classic-cup-pair :is(.classic-pair-away,.classic-pair-away-score) { grid-row:2; }
@media(max-width:639px) {
 .classic-secondary-pair { grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; }
 .classic-pair-home,.classic-pair-away { grid-column:1; text-align:left; }
 .classic-pair-home-score,.classic-pair-away-score { grid-column:2; flex-direction:row; }
 .classic-pair-away,.classic-pair-away-score { grid-row:2; }
 .classic-pair-goals { width:40px; height:40px; }
 .classic-pair-sum { width:44px; height:40px; }
}

.classic-pair-winner { background:var(--tm-brand-yellow); }
@media(min-width:640px) {
 .tm-classic-react .classic-cup-round { width:520px; }
 .classic-cup-pair { grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr); }
 .classic-cup-pair .classic-pair-home { grid-column:1; grid-row:1; text-align:right; }
 .classic-cup-pair .classic-pair-home-score { grid-column:2; grid-row:1; }
 .classic-cup-pair .classic-pair-away-score { grid-column:3; grid-row:1; flex-direction:row-reverse; }
 .classic-cup-pair .classic-pair-away { grid-column:4; grid-row:1; }
}
.tm-classic-secondary .tm-secondary-content :is(.faq-container,.rules-container,.impressum-container,.password-container) { max-width:75ch; margin-inline:auto; background:transparent; color:var(--tm-brand-ink); border:0; box-shadow:none; padding:0; }
.tm-classic-secondary .tm-secondary-content :is(.faq-question,.faq-container h1,.rules-container h1,.friendly-links a,.friendly-search h2,.offers-title,.friendly-message,.no-offers,.friendly-search p,.auth-message) { color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content :is(.friendly-search,.friendly-offers,.offer-card,.friendly-message,.auth-teaser) { background:var(--tm-match-alt); border:1px solid var(--tm-brand-line); border-radius:10px; padding:12px; }
.tm-classic-secondary .tm-secondary-content :is(.kontakt-liste,ul,ol) { padding-inline-start:22px; }
.tm-classic-secondary .tm-brand-bar .tm-brand-lockup { color:var(--tm-brand-bg)!important; }
.tm-classic-secondary .tm-brand-bar .tm-brand-lockup img { width:32px!important; height:32px!important; border:0; margin:0; }
.tm-classic-secondary .tm-secondary-content table[border] { border:1px solid var(--tm-brand-line); }
.tm-classic-secondary .tm-secondary-content :is(td[bgcolor],tr[bgcolor],table[bgcolor]) { background:var(--tm-match-alt); }
.tm-classic-secondary .tm-secondary-content .auth-submit { border-radius:999px!important; }

.tm-secondary-footer > font { display:contents; }

.classic-cup-list { display:grid; gap:6px; }
.classic-cup-card { border:1px solid var(--tm-brand-line); border-radius:10px; background:var(--tm-match-surface); overflow:hidden; }
.classic-cup-card:nth-child(even) { background:var(--tm-match-alt); }
.classic-cup-card a { color:var(--tm-brand-ink); text-decoration:none; }
.classic-pair-team-line { display:flex; align-items:baseline; gap:7px; min-width:0; }
.classic-pair-rank { flex-shrink:0; width:20px; color:var(--tm-match-muted); font-size:11px; font-weight:600; }
.classic-pair-name { min-width:0; }
.classic-pair-note { font-size:11px; color:var(--tm-match-muted); text-align:center; margin:0 0 6px; }
@media(min-width:640px) { .classic-pair-home .classic-pair-team-line { justify-content:flex-end; } }

.classic-standings-scroll { overflow-x:auto; width:100%; }
.tm-secondary-content .classic-standings-table { width:100%; min-width:360px; border-collapse:collapse; table-layout:fixed; }
.tm-secondary-content .classic-standings-table :is(th,td) { padding:5px 3px; text-align:center; font-size:11px; width:24px; white-space:nowrap; }
.tm-secondary-content .classic-standings-table :is(th,td):nth-child(2) { width:auto; text-align:left; }
.tm-secondary-content .classic-standings-table :is(th,td):nth-child(7) { width:38px; }
.tm-secondary-content .classic-standings-table :is(th,td):nth-child(8) { width:30px; }
.tm-secondary-content .classic-standings-table :is(th,td):last-child { width:30px; font-weight:800; }
.classic-standing-team span,.classic-standing-team a { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--tm-brand-ink); }
.classic-standing-team span { font-size:13px; font-weight:600; }
.classic-standing-team a { font-size:11px; color:var(--tm-match-muted); text-decoration:none; }
.tm-secondary-content .classic-standings-table .classic-standing-rank { vertical-align:top; padding-top:6px; color:var(--tm-match-muted); }
.tm-secondary-content .classic-standings-table tr { border-bottom:1px solid var(--tm-brand-line); }
@media(max-width:359px) {
 .tm-secondary-content .classic-standings-table { min-width:0; }
 .tm-secondary-content .classic-standings-table :is(th,td):is(:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(8)) { display:none; }
 .tm-secondary-content .classic-standings-table :is(th,td) { padding-inline:2px; width:22px; }
 .tm-secondary-content .classic-standings-table :is(th,td):nth-child(7) { width:44px; }
 .tm-secondary-content .classic-standings-table :is(th,td):nth-child(2) { min-width:0; }
}
@media(min-width:640px) { .tm-secondary-content .classic-standings-table :is(th,td) { font-size:13px; padding:7px 6px; width:40px; } .tm-secondary-content .classic-standings-table :is(th,td):nth-child(2) { width:auto; } .tm-secondary-content .classic-standings-table :is(th,td):nth-child(7) { width:60px; } }

.classic-section-nav { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin:0 0 16px; font-family:var(--tm-body-font); }
.classic-section-nav a { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:6px 10px; border-radius:7px; color:var(--tm-brand-ink); font-size:12px; font-weight:600; text-decoration:none; }
.classic-section-nav a:hover { background:var(--tm-match-alt); }
.tm-secondary-footer-brand { gap:9px; font-weight:800; color:var(--tm-brand-ink); text-decoration:none; }
.classic-pair-team:has(.classic-pair-rank) small { padding-left:27px; }
@media(max-width:639px) { .classic-section-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); } .classic-section-nav a { padding-inline:2px; font-size:11px; min-height:40px; } }

.tm-secondary-content { overflow-wrap:break-word; }

.tm-secondary-content > .page-shell { padding-block:0; }
.tm-secondary-content .classic-european-row { display:grid; grid-template-columns:minmax(0,1fr) 80px 80px minmax(0,1fr); align-items:center; gap:6px; margin-block:6px; border:1px solid var(--tm-brand-line); border-radius:10px; padding:8px; background:var(--tm-match-surface)!important; }
.tm-secondary-content .classic-european-row:nth-of-type(even) { background:var(--tm-match-alt)!important; }
.tm-secondary-content .classic-european-row > td { min-width:0; padding:0; }
.classic-european-row > td:nth-child(1) { grid-column:1; grid-row:1; }
.classic-european-row > td:nth-child(2) { display:none; }
.classic-european-row > td:nth-child(3) { grid-column:4; grid-row:1; }
.classic-european-row > td:nth-child(4) { grid-column:2; grid-row:1; }
.classic-european-row > td:nth-child(5) { grid-column:3; grid-row:1; }
.classic-european-row > td:nth-child(6) { grid-column:2 / span 2; grid-row:2; text-align:center; }
.classic-european-row > td:nth-child(7) { grid-column:4; grid-row:2; text-align:right; }
.classic-european-row > td:is(:nth-child(4),:nth-child(5)) { border:1px solid var(--tm-brand-line); border-radius:8px; background:var(--tm-match-alt); text-align:center; padding:5px!important; }
.classic-european-row > td:is(:first-child,:nth-child(3)) a { display:inline-block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }
@media(max-width:639px) {
 .tm-secondary-content .classic-european-row { grid-template-columns:minmax(0,1fr) 78px; }
 .classic-european-row > td:nth-child(1) { text-align:left; }
 .classic-european-row > td:nth-child(3) { grid-column:1; grid-row:2; }
 .classic-european-row > td:nth-child(4) { grid-column:2; grid-row:1; }
 .classic-european-row > td:nth-child(5) { grid-column:2; grid-row:2; }
 .classic-european-row > td:nth-child(4)::before { content:'Hin'; font-size:10px; display:block; color:var(--tm-match-muted); }
 .classic-european-row > td:nth-child(5)::before { content:'Rück'; font-size:10px; display:block; color:var(--tm-match-muted); }
 .classic-european-row > td:nth-child(6) { grid-column:1; grid-row:3; }
 .classic-european-row > td:nth-child(7) { grid-column:2; grid-row:3; }
}

.classic-print-blank { font-size:10px; white-space:nowrap; line-height:26px; }
.tm-secondary-content a { overflow-wrap:anywhere; }

@media(min-width:640px) {
 .classic-pair-home-score,.classic-cup-pair .classic-pair-home-score { flex-direction:row-reverse; }
 .classic-pair-away-score,.classic-cup-pair .classic-pair-away-score { flex-direction:row; }
}

/* Finish the light palette on pages with old inline mobile colors. */
.tm-classic-secondary .tm-secondary-content :is(.impressum-section p,.company-info p,.impressum-section h2,.company-info a,.back-link a) { color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content .company-info { background:var(--tm-match-surface); border-color:var(--tm-brand-line); border-radius:8px; }
.classic-account-panel { max-width:560px; margin-inline:auto; }
.classic-account-panel :is(input:not([type=hidden]),button) { width:100%; }
.tm-classic-react .tm-secondary-content a:not([role=button]) { color:var(--tm-brand-ink); }

/* Keep state and league boundaries visible after the shared control reset. */
.tm-classic-secondary .tm-secondary-content button.odds-btn.selected { background:var(--tm-brand-yellow); border:2px solid var(--tm-brand-ink); }
.tm-classic-secondary .tm-secondary-content .odds-btn.selected .prognose { color:var(--tm-brand-ink); }
.tm-classic-secondary .tm-secondary-content td.classic-zone-divider { background:var(--tm-brand-ink)!important; padding:0!important; height:1px; line-height:0; }
.classic-cup-card { position:relative; }
.classic-cup-hitarea { position:absolute; inset:0; z-index:1; }
.classic-cup-hitarea:focus-visible { outline-offset:-3px; }
.classic-cup-card .classic-pair-name[href] { position:relative; z-index:2; }
.classic-cup-card .classic-pair-name[href]:hover { text-decoration:underline; }

.classic-ec-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:13px; }
.classic-ec-back { display:inline-flex; align-items:center; min-height:44px; color:var(--tm-brand-ink); }

.tm-classic-react .tm-secondary-content a:not([role=button]) :is(span,p) { color:var(--tm-brand-ink)!important; }

/* Two-leg Europacup scores stay intact beside stacked opponents on phones. */
@media(max-width:639px) {
 .tm-secondary-content .cl-tie { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding:8px; }
 .tm-secondary-content .cl-side--home { grid-area:1 / 1; text-align:left; align-items:flex-start; }
 .tm-secondary-content .cl-side--away { grid-area:2 / 1; }
 .tm-secondary-content .cl-mid { grid-area:1 / 2 / span 2 / 3; min-width:96px; padding:6px; border:1px solid var(--tm-brand-line); border-radius:9px; background:var(--tm-match-alt); }
 .tm-secondary-content :is(.cl-club,.cl-coach) { max-width:100%; }
 .tm-secondary-content .cl-side--away .cl-coach { flex-direction:row; }
}

/* Signup promotion remains readable within the light Classic frame. */
.tm-secondary-content .teaser-highlight { color:var(--tm-brand-ink); }

/* Classic navigation follows the shared masthead's right edge. */
.tm-classic-secondary .classic-section-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; margin-bottom:16px; }
.tm-classic-secondary .classic-section-nav a { font-size:13px; min-height:44px; padding:8px; }
.tm-classic .tm-desktop-nav .tm-nav-list { justify-content:flex-end; }

/* The job list is one form: compact identity, facts and native priority controls. */
.tm-classic.classic-jobs-page .mobile-hamburger { position:relative; display:flex; align-items:center; justify-content:flex-end; gap:8px; height:auto; min-height:44px; padding:0; margin:0; background:transparent; border:0; box-shadow:none; }
.tm-classic.classic-jobs-page .hamburger-title { font-size:16px; text-transform:none; letter-spacing:0; }
.tm-classic.classic-jobs-page .mobile-hamburger .hamburger-btn { order:1; position:static; margin:0; width:44px; height:44px; box-shadow:none; }
body.tm-classic.classic-jobs-page .page-shell { overflow:visible; padding:8px 0 24px; }
.tm-classic.classic-jobs-page h1 { margin:0; font-size:24px; line-height:1.4; }
.tm-classic.classic-jobs-page .classic-jobs-scope { margin:4px 0 16px; font-size:14px; color:#475569; }
.tm-classic .classic-job-list { width:100%; }
.tm-classic .classic-job-row { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 8px; border-bottom:1px solid var(--tm-brand-line); background:var(--tm-match-surface); }
.tm-classic .classic-job-row:nth-child(even) { background:var(--tm-match-alt); }
.tm-classic .classic-job-row:not(:has(.classic-job-pick)) .classic-job-identity { grid-column:1 / 3; }
.tm-classic .classic-job-pick { width:44px; min-height:44px; display:flex; justify-content:center; align-items:center; cursor:pointer; margin:0; }
.tm-classic .classic-job-pick input { width:18px; height:18px; accent-color:var(--tm-brand-yellow); }
.tm-classic .classic-job-identity { min-width:0; }
.tm-classic .classic-job-identity h2 { font-size:16px; font-weight:700; line-height:24px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-classic .classic-job-identity p { margin:2px 0 0; font-size:14px; line-height:20px; color:#475569; }
.tm-classic .classic-job-stats { display:flex; flex-wrap:wrap; gap:4px 12px; }
.tm-classic .classic-job-actions { display:flex; align-items:end; gap:8px; }
.tm-classic .classic-job-priority { margin:0; display:grid; gap:4px; font-size:12px; font-weight:600; color:#475569; }
.tm-classic .classic-job-priority .priority-select { display:block; width:76px; min-height:44px; font-size:16px; padding:8px; color:var(--tm-brand-ink); background:var(--tm-match-surface); }
.tm-classic .classic-job-ranking { display:flex; min-height:44px; align-items:center; justify-content:center; font-size:13px; font-weight:600; color:var(--tm-brand-ink); text-decoration:underline; text-underline-offset:3px; }
.tm-classic .classic-job-row :focus-visible { outline:3px solid #a16207; outline-offset:2px; }
.tm-classic.classic-jobs-page .instructions-text { font-size:14px; line-height:1.6; }
@media(max-width:639px) {
 .tm-classic .classic-job-row { grid-template-columns:32px minmax(0,1fr) auto; gap:8px; padding:8px 4px; }
 .tm-classic .classic-job-pick { width:32px; min-height:44px; position:relative; }
 .tm-classic .classic-job-pick::before { content:""; position:absolute; inset:-6px; }
 .tm-classic .classic-job-actions { display:flex; align-items:end; justify-content:flex-end; gap:6px; }
 .tm-classic .classic-job-priority .priority-select { width:58px; padding:6px; }
 .tm-classic .classic-job-ranking { min-height:44px; font-size:13px; }
 .tm-classic .classic-job-identity h2 { font-size:15px; }
 .tm-classic .classic-job-identity p { font-size:13px; }
 .tm-classic .classic-job-stats { gap:0 8px; }
}
.tm-classic-secondary .classic-section-nav a { flex:0 0 auto; }
.tm-classic.classic-jobs-page .classic-jobs-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:44px; }
.tm-classic.classic-jobs-page .classic-jobs-toolbar .hamburger-btn { display:inline-flex; align-items:center; justify-content:center; position:static; margin:0; width:44px; min-height:44px; padding:0; color:var(--tm-brand-ink); background:transparent; box-shadow:none; }
.tm-classic.classic-jobs-page .classic-jobs-toolbar .hamburger-title { font-size:24px; }
.tm-classic.classic-jobs-page .classic-jobs-scope { margin:0 0 12px; }
@media(min-width:769px) { .tm-classic.classic-jobs-page .classic-jobs-toolbar .hamburger-btn { display:none; } }
@media(max-width:639px) {
 .tm-classic .classic-job-row { padding-block:8px; }
 .tm-classic .classic-job-priority { gap:0; font-size:12px; }
}
.tm-classic.classic-jobs-page .classic-job-transfers { margin:16px 0; font-size:14px; }
.tm-classic.classic-jobs-page .classic-job-transfers a { color:var(--tm-brand-ink); text-underline-offset:3px; }

/* Classic filters keep the matchday controls on one centered track. */
.tm-classic-react .classic-round-control { display:flex; width:100%; align-items:center; justify-content:center; }
.tm-classic-react .classic-round-control button { min-width:44px; min-height:44px; }
.tm-classic-react .classic-cup-selector { width:100%; max-width:640px; }
.tm-classic-react .classic-cup-group-label { font-size:13px; font-weight:700; color:var(--tm-brand-ink); }
.tm-classic-react .classic-cup-button { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 12px; border:0; border-radius:8px; background:#f3f4f6; color:#374151; font:600 13px var(--tm-body-font); cursor:pointer; }
.tm-classic-react .classic-cup-button.is-active { background:var(--tm-brand-yellow); color:var(--tm-brand-ink); }
.tm-classic-react .classic-cup-button:hover:not(.is-active) { background:#e4e4e7; }
.tm-classic-react .classic-amateur-cups { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px; }
.tm-classic-react .classic-amateur-cups > * { min-width:0; min-height:44px; align-items:center; justify-content:center; }
.tm-classic-react .classic-cup-button:focus-visible { outline:3px solid var(--tm-brand-yellow); outline-offset:2px; }
.tm-classic-react .tm-secondary-content .classic-cup-selector .classic-cup-button { background:var(--tm-match-alt); }
.tm-classic-react .tm-secondary-content .classic-cup-selector .classic-cup-button.is-active { background:var(--tm-brand-yellow); color:var(--tm-brand-ink); border-color:var(--tm-brand-yellow); }
@media(max-width:520px) { .tm-classic-react .classic-amateur-cups { grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; } }
/* friendly.pl?method=liste: responsive-v2.css still carries the old dark-theme
   colours (white team names, yellow heading/points) that vanish on the light page. */
.tm-classic-secondary.friendly-liste :is(h1,h2,.friendly-list-header h2,.friendly-scheduled h2) { color:var(--tm-brand-ink); }
.tm-classic-secondary.friendly-liste .team-name { color:var(--tm-brand-ink); }
.tm-classic-secondary.friendly-liste .team-name.own-team { color:var(--tm-red,#dc2626); }
.tm-classic-secondary.friendly-liste .match-score .points { color:var(--tm-match-muted); }
/* Desktop job board: one compact line per club, in columns (player feedback 2026-10-08:
   three lines on the left and empty space in the middle). Mobile keeps the stacked rows. */
@media(min-width:1024px) {
 .tm-classic .classic-job-list { max-width:1100px; }
 .tm-classic .classic-job-row { padding:4px 8px; gap:16px; }
 .tm-classic .classic-job-identity { display:grid; grid-template-columns:minmax(200px,2fr) minmax(160px,1.2fr) minmax(160px,1fr); align-items:center; gap:16px; }
 .tm-classic .classic-job-identity p { margin:0; }
 .tm-classic .classic-job-flag { vertical-align:-1px; }
 .tm-classic .classic-job-stats { gap:0 16px; }
 .tm-classic .classic-job-actions { align-items:center; }
 .tm-classic .classic-job-priority { display:flex; align-items:center; gap:8px; }
 .tm-classic .classic-job-priority .priority-select { min-height:36px; padding:4px 8px; }
 .tm-classic .classic-job-ranking { min-height:36px; }
}
/* Tip form (tipabgabe.pl, BTM + TMI): tighter rows, and the legacy 1px spacer rows/cells
   no longer inherit the 6px cell padding that made empty gaps under the header
   (player feedback 2026-10-08). */
.classic-tip-page .tm-secondary-content :is(td,th) { padding:2px 4px; }
.classic-tip-page .tm-secondary-content td:has(> spacer:only-child), .classic-tip-page .tm-secondary-content td:has(> img[src*="spacer"]:only-child), .classic-tip-page .tm-secondary-content td:empty { padding:0; line-height:0; font-size:0; }
.classic-tip-page .tm-secondary-content input[type=radio] { margin:2px; }
/* Club page (verein.pl): legacy cells pad text with &nbsp; on both sides, so a cell
   like "&nbsp;&nbsp;&nbsp;Viertelfinale &nbsp;&nbsp;&nbsp;" wrapped its trailing spaces
   onto a second line and sat higher than its neighbours (player feedback 2026-10-08). */
@media(min-width:769px) { .classic-club-page .tm-secondary-content td { white-space:nowrap; } }
.classic-club-page .tm-secondary-content td.sv-axis { padding:4px 2px; font-size:12px; font-weight:600; color:#475569; text-align:left; }
.classic-club-page .tm-secondary-content td.sv-tick { padding:2px 0 0; font-size:10px; line-height:1.2; color:#475569; text-align:center; }
.classic-club-page .tm-secondary-content td:has(> img[src*="/img/tab"]) { padding:0; }
.classic-club-page .tm-secondary-content td.sv-tick { padding:2px 0 0; width:10px; overflow:visible; }
/* Trainer page career list (trainer.pl): each season is two rows (club row + stats row).
   One tint per row across all columns, and a line under each season, so the pairs read
   as blocks (player feedback 2026-10-08: mixed colours, hard to see which season a row is). */
.classic-trainer-page tr:has(> td.f) > td { background-color:#eef0fb; }
.classic-trainer-page tr:has(> td.f) > td.e { font-weight:600; }
.classic-trainer-page tr:has(> td.l) > td { background-color:#fff; border-bottom:2px solid var(--tm-brand-line); }
/* Award ranking (award.pl, BTM + TMI): tighter rows, as on the tip form (player feedback 2026-10-08). */
.classic-award-page .tm-secondary-content :is(td,th) { padding:2px 6px; }
.classic-award-page .tm-secondary-content td:has(> spacer:only-child), .classic-award-page .tm-secondary-content td:has(> img[src*="spacer"]:only-child), .classic-award-page .tm-secondary-content td:empty { padding:0; line-height:0; font-size:0; }
/* Freundschaftsspiel tip table: dark-theme colours (yellow headers, pale match names) leaked onto the light page. */
.tm-classic-secondary .tm-secondary-content .tip-table th { color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content .tip-table td { color:var(--tm-brand-ink)!important; }
/* Freundschaftsspiel messages: dark-theme pale text (#f8d7da etc.) unreadable on the light page. */
.tm-classic-secondary .tm-secondary-content :is(.tip-error p,.tip-info p,.tip-info strong) { color:var(--tm-brand-ink)!important; }
.tm-classic-secondary .tm-secondary-content .tip-error h3 { color:#b91c1c!important; }
/* Freundschaftsspiel pages, whole page: responsive-v2.css still carries the old dark theme
   (white/pale text, yellow accents). Reset all text to ink, then restore deliberate accents. */
.friendly-page .tm-secondary-content :is(p,td,th,li,span,div,strong,b,label,h2,h3,h4,small,.team-name,.match-teams,.offer-match) { color:var(--tm-brand-ink)!important; }
.friendly-page .tm-secondary-content :is(.match-round,.status-waiting,.offer-status.status-waiting) { color:#92400e!important; background:#fef3c7!important; }
.friendly-page .tm-secondary-content :is(.status-done,.offer-status.status-done,.message-success,.tip-success) { color:#166534!important; }
.friendly-page .tm-secondary-content :is(.tip-error h3,.message-warning,.tip-expired,.tip-closed) { color:#b91c1c!important; }
.friendly-page .tm-secondary-content :is(.team-meta,.friendly-subtitle,.tip-subtext,.tip-note,.game-count,.friendly-count) { color:#475569!important; }
.friendly-page .tm-secondary-content :is(.btn,.btn *,.search-btn) { color:var(--tm-brand-ink)!important; }
.friendly-page .tm-secondary-content a:not(.btn) { color:#1d4ed8!important; }
.friendly-page .tm-secondary-content :is(.match-score.incomplete,.match-score.in-progress) :is(.goals,.score,.points) { color:#dc2626!important; }
/* Cup view (pokal_show.pl): own club in red, as on spiel.pl (player request 2026-10-20). */
.tm-classic-secondary .classic-pair-own :is(.classic-pair-name,a.classic-pair-name) { color:#dc2626!important; font-weight:700; }
