/* CourtOS Nachtmodus – neutrale Graustufen nach dem Vorbild von ChatGPT/Codex:
   dunkle Sidebar, ruhige Arbeitsfläche, Karten nur leicht abgesetzt, Ränder statt
   Schatten, helle Primär-Buttons mit dunkler Schrift, Auswahl als graue Fläche.
   Sportdaten behalten ihre Farben; keine Invertierung von Bildern, Videos,
   Spielfeldern oder Exporten. Alle Farben kommen aus den --d-*-Werten unten –
   einzelne Module verwenden nur diese Rollen, keine eigenen Hexwerte. */
.courtos-theme-dock{position:fixed;right:16px;bottom:58px;z-index:1000;font:600 12px/1.4 var(--cos-font,system-ui);color:var(--cos-text,#20242c)}
.courtos-theme-dock>summary{list-style:none;cursor:pointer;padding:8px 12px;border:1px solid var(--cos-border,#d8dce3);border-radius:999px;background:var(--cos-surface,#fff);box-shadow:0 3px 16px rgba(0,0,0,.12)}
.courtos-theme-dock>summary::-webkit-details-marker{display:none}
.courtos-theme-dock[open]>summary{margin-bottom:6px}
.courtos-theme-control{display:flex;gap:3px;padding:4px;border:1px solid var(--cos-border,#d8dce3);border-radius:11px;background:var(--cos-surface,#fff);box-shadow:var(--cos-shadow-sm)}
.courtos-theme-control__option{padding:8px 10px;min-height:34px;border:0;border-radius:7px;background:transparent;color:var(--cos-text-2,#5c6470);font:inherit;cursor:pointer}
.courtos-theme-control__option[aria-checked="true"]{background:var(--cos-accent,#e0a82e);color:#211907}
.courtos-theme-control__option:hover{box-shadow:inset 0 0 0 1px var(--cos-border,#d8dce3)}
.courtos-theme-dock summary:focus-visible,.courtos-theme-control__option:focus-visible{outline:2px solid var(--cos-accent,#e0a82e);outline-offset:3px}

html[data-cos-theme="dark"]{
  /* Flächen */
  --d-canvas:#212121;--d-sidebar:#171717;--d-surface:#262626;--d-raised:#2f2f2f;--d-hover:#353535;--d-selected:#3a3a3a;
  /* Linien */
  --d-line:#383838;--d-line-soft:#2d2d2d;--d-line-strong:#4a4a4a;
  /* Schrift: Kontrast auf #212121 → 14,6 : 1 / 8,7 : 1 / 6,4 : 1; auf #353535 mindestens 4,6 : 1 */
  --d-text:#ececec;--d-text-strong:#f9f9f9;--d-ink-2:#dadada;--d-text-2:#b4b4b4;--d-text-3:#a0a0a0;
  /* Primäraktion wie ChatGPT: helle Fläche, dunkle Schrift */
  --d-primary:#ececec;--d-primary-hover:#d4d4d4;--d-on-primary:#0d0d0d;
  /* CourtOS-Akzent nur sparsam (Hinweise, Markierungen) */
  --d-accent:#e9bd5b;--d-accent-bg:#2e2818;--d-accent-line:#6b5a32;--d-warn-bg:#352c1a;
  /* Status */
  --d-ok:#6fd3a5;--d-ok-text:#93e2bd;--d-ok-bg:#16302a;--d-ok-line:#2c5a49;
  --d-danger:#ff8080;--d-danger-text:#ffabab;--d-danger-bg:#3a1f20;--d-danger-line:#6d3233;
  --d-info:#8ab4f8;--d-info-bg:#1c283a;
  --d-focus:#a8a8a8;
  /* Ersatz für helle Verläufe (Bühnen, Karten): ruhige Fläche statt Glanz */
  --d-surface-fill:var(--d-surface);--d-grad-none:none;
}
html[data-cos-theme="dark"]{
  color-scheme:dark;
  --cos-surface:var(--d-surface)!important;--cos-surface-2:var(--d-canvas)!important;--cos-surface-3:var(--d-raised)!important;
  --cos-paper:var(--d-surface)!important;--cos-mist:var(--d-canvas)!important;--cos-cloud:var(--d-raised)!important;
  --cos-text:var(--d-text)!important;--cos-text-2:var(--d-text-2)!important;--cos-text-3:var(--d-text-3)!important;
  --cos-ink:var(--d-text)!important;--cos-ink-2:var(--d-ink-2)!important;--cos-graphite:var(--d-text-2)!important;--cos-graphite-2:var(--d-text-3)!important;
  --cos-border:var(--d-line)!important;--cos-border-soft:var(--d-line-soft)!important;
  --cos-brand:var(--d-primary)!important;--cos-brand-strong:var(--d-text-strong)!important;
  --cos-brand-line:var(--d-line)!important;--cos-brand-soft:var(--d-selected)!important;--cos-brand-bg:var(--d-surface)!important;
  --cos-accent-text:var(--d-accent)!important;--cos-accent-strong:var(--d-accent)!important;
  --cos-accent-soft:var(--d-warn-bg)!important;--cos-accent-bg:var(--d-accent-bg)!important;--cos-accent-line:var(--d-accent-line)!important;
  --cos-success:var(--d-ok)!important;--cos-success-text:var(--d-ok)!important;--cos-success-bg:var(--d-ok-bg)!important;--cos-success-border:var(--d-ok-line)!important;
  --cos-danger:var(--d-danger)!important;--cos-danger-text:var(--d-danger-text)!important;--cos-danger-bg:var(--d-danger-bg)!important;--cos-danger-border:var(--d-danger-line)!important;
  --cos-warn-text:var(--d-accent)!important;--cos-warn-bg:var(--d-warn-bg)!important;
  --status-ok:var(--d-ok)!important;--status-ok-bg:var(--d-ok-bg)!important;--status-ok-tx:var(--d-ok-text)!important;
  --status-danger:var(--d-danger)!important;--status-danger-bg:var(--d-danger-bg)!important;--status-danger-tx:var(--d-danger-text)!important;
  --status-warn-bg:var(--d-warn-bg)!important;--status-warn-tx:var(--d-accent)!important;--status-info-bg:var(--d-selected)!important;--status-info-tx:var(--d-primary)!important;
  --status-neutral-bg:var(--d-line-soft)!important;--status-neutral-tx:var(--d-text-2)!important;
  --cos-shadow-soft:0 16px 48px rgba(0,0,0,.45)!important;--cos-shadow-card:none!important;--cos-shadow-sm:none!important;
  /* Fehlten bisher: blieben hell bzw. navy und standen weiß auf hell oder hell auf dunkel. */
  --cos-on-brand:var(--d-on-primary)!important;--cos-on-brand-rgb:13,13,13!important;--d-on-primary-rgb:13,13,13!important;
  --cos-on-nav:var(--d-text)!important;--cos-on-nav-rgb:236,236,236!important;
  --cos-brand-rgb:160,160,160!important;--cos-brand-strong-rgb:200,200,200!important;--cos-brand-600-rgb:42,42,42!important;--cos-brand-700-rgb:27,27,27!important;
  --cos-brand-300:#a3a3a3!important;--cos-brand-400:var(--d-selected)!important;--cos-brand-500:var(--d-hover)!important;--cos-brand-600:var(--d-raised)!important;--cos-brand-700:var(--d-sidebar)!important;
  --cos-navy-deep:var(--d-primary)!important;--cos-navy-700:var(--d-primary)!important;
  --cos-line:var(--d-line)!important;--cos-neutral:var(--d-text-3)!important;
  --cos-grad-brand:var(--d-primary)!important;--cos-grad-accent:var(--d-accent)!important;
  --cos-optic-bg:var(--d-accent-bg)!important;--cos-optic-soft:var(--d-warn-bg)!important;--cos-optic-deep:var(--d-accent)!important;
  --cos-accent-light:var(--d-accent)!important;--cos-on-accent:#1a1303!important;
  --status-info:var(--d-info)!important;--status-neutral:var(--d-text-3)!important;--status-warn:var(--d-accent)!important;
  --shadow-card:none!important;--shadow-soft:0 16px 48px rgba(0,0,0,.45)!important;
  --gold-wash:rgba(233,189,91,.16)!important;--navy-mist:var(--d-text-2)!important;--navy-700:var(--d-ink-2)!important;
  --primary-light:var(--d-raised)!important;--primary-text:var(--d-accent)!important;
  /* Legacy-Namen in Scout, Readiness und den Trainer-Fachmodulen. */
  --paper:var(--cos-surface)!important;--mist:var(--cos-surface-2)!important;--cloud:var(--cos-surface-3)!important;
  --bg:var(--cos-surface-2)!important;--card:var(--cos-surface)!important;--fg:var(--cos-text)!important;--ink:var(--cos-text)!important;--ink-2:var(--d-ink-2)!important;
  --muted:var(--cos-text-2)!important;--mut-fg:var(--cos-text-2)!important;--graphite:var(--cos-text-2)!important;--graphite-2:var(--cos-text-3)!important;
  --line:var(--cos-border)!important;--border:var(--cos-border)!important;--rule:var(--cos-border)!important;--line-soft:var(--cos-border-soft)!important;
  --navy:var(--cos-brand)!important;--navy-deep:var(--cos-brand-strong)!important;--gold:var(--d-accent)!important;--optic-deep:var(--d-accent)!important;
  --page-bg:var(--cos-surface-2)!important;--bg-primary:var(--cos-surface)!important;--bg-secondary:var(--cos-surface-2)!important;--bg-tertiary:var(--cos-surface-3)!important;
  --text-primary:var(--cos-text)!important;--text-secondary:var(--cos-text-2)!important;--text-tertiary:var(--cos-text-3)!important;
  --cos-card:var(--cos-surface)!important;--courtos-header:var(--d-surface)!important;
  --cos-text-muted:var(--cos-text-2)!important;--cos-navy:var(--d-primary)!important;--cos-navy-2:var(--d-text-strong)!important;--cos-line-soft:var(--cos-border-soft)!important;
  /* Kader: Komponenten verwenden eigene Rollen für Text und Flächen. */
  --kr-bg:var(--d-canvas)!important;--kr-surface:var(--d-surface)!important;--kr-soft:var(--d-raised)!important;--kr-text:var(--d-text)!important;--kr-muted:var(--d-text-2)!important;
  --kr-navy:var(--d-primary)!important;--kr-navy-2:var(--d-text-strong)!important;--kr-line:var(--d-line)!important;--kr-line-soft:var(--d-line-soft)!important;
  --kr-ok:var(--d-ok)!important;--kr-ok-bg:var(--d-ok-bg)!important;--kr-warn:var(--d-accent)!important;--kr-warn-bg:var(--d-warn-bg)!important;--kr-danger:var(--d-danger)!important;--kr-danger-bg:var(--d-danger-bg)!important;
  --kr-info:var(--d-primary)!important;--kr-info-bg:var(--d-selected)!important;--kr-gold-deep:var(--d-accent)!important;
  /* Sichtung: eigene Begriffe, dieselben Flächen und Kontraste. */
  --flaeche:var(--cos-surface)!important;--flaeche-2:var(--d-raised)!important;--flaeche-3:var(--d-line-soft)!important;--grund:var(--cos-surface-2)!important;
  --tinte:var(--cos-text)!important;--tinte-2:var(--d-ink-2)!important;--tinte-3:var(--cos-text-2)!important;--grau-text:var(--cos-text-2)!important;--grau-hell:var(--d-hover)!important;
  --linie:var(--cos-border)!important;--linie-2:var(--cos-border-soft)!important;--fokus:var(--d-hover)!important;--aktivton:var(--d-selected)!important;--gut:var(--d-ok)!important;--schlecht:var(--d-danger)!important;
  --rot:var(--d-primary)!important;--grau:var(--d-line-strong)!important;
}
html[data-cos-theme="dark"] body{background:var(--cos-surface-2)!important;color:var(--cos-text)!important;background-image:none!important}
html[data-cos-theme="dark"].ops-shell-ready{background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"].ops-shell-ready body.ops-shell-mounted{background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"] #scr-app>.app>.main{background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"] :is(input,select,textarea){color-scheme:dark}
html[data-cos-theme="dark"] :is(.cos-input,.cos-select,.cos-textarea,input:not([type="checkbox"]):not([type="radio"]),textarea,select){background-color:var(--cos-surface-3);color:var(--cos-text);border-color:var(--cos-border)}
html[data-cos-theme="dark"] :is(input,textarea)::placeholder{color:var(--cos-text-3);opacity:1}
html[data-cos-theme="dark"] :is(h1,h2,h3,h4){color:var(--cos-text)}
html[data-cos-theme="dark"] :is(.card,.panel,.modal,.dialog,.popover,.menu,.dropdown-menu){background-color:var(--cos-surface);color:var(--cos-text);border-color:var(--cos-border)}

/* Navigation und Aktionen: Hintergrund und Schrift sind verschiedene Rollen,
   auch wenn Bestandsseiten beide mit --cos-brand-strong bezeichnet haben. */
html[data-cos-theme="dark"] :is(.trainer-shell-rail,.ops-rail,.cos-side,.courtos-sidebar,.cos-foot,.courtos-legal-bar){background:var(--d-sidebar)!important;color:var(--d-text-2)!important}
html[data-cos-theme="dark"] .footer{background:var(--d-surface)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"] :is(.trainer-tabchrome,.trainer-tabbar,.trainer-tabhost,.trainer-tabviews,.trainer-tabview){background:var(--d-canvas)!important}
html[data-cos-theme="dark"] .trainer-tab.is-active{background:var(--d-raised)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"] .trainer-today{
  --trainer-canvas:var(--d-canvas);--trainer-surface:var(--d-surface);--trainer-surface-soft:var(--d-raised);--trainer-surface-tint:var(--d-hover);
  --trainer-ink:var(--d-text);--trainer-ink-soft:var(--d-text-2);--trainer-ink-muted:var(--d-text-3);
  --trainer-line:var(--d-line);--trainer-line-strong:var(--d-line-strong);--trainer-navy:var(--d-primary);--trainer-navy-strong:var(--d-text-strong);
}
html[data-cos-theme="dark"] .trainer-today.trainer-today--empty{background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"] :is(.ctm-topbar,.trainer-today__topbar,.trainer-hub-search,.trainer-apple-calendar,.trainer-week-card,.trainer-focus-card,.trainer-readiness-card){background:var(--cos-surface)!important;background-image:none!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] .cos-glass::before,html[data-cos-theme="dark"] .cos-glass::after{display:none}
html[data-cos-theme="dark"] .trainer-apple-calendar__day-column.is-today{background:rgba(255,255,255,.035)!important}
html[data-cos-theme="dark"] :is(.cos-btn--primary,.btn.primary,.btn.dark,.primary-btn,.trainer-apple-calendar__new,.dvm-btn.acc){background:var(--d-primary)!important;color:var(--d-on-primary)!important;-webkit-text-fill-color:currentColor;border-color:var(--d-primary)!important}
html[data-cos-theme="dark"] :is(.cos-btn--ghost,.cos-btn--quiet){color:var(--cos-text);border-color:var(--cos-border)}

/* Operations: bestehende Karten, Tabellen und Menüs behalten ihre Geometrie. */
html[data-cos-theme="dark"] :is(.ops-ux-focus.ops-glass,.ops-ux-setup,.ops-ux-import-progress,.ops-subnav__more-menu){background:var(--cos-surface)!important;color:var(--cos-text);border-color:var(--cos-border)}
html[data-cos-theme="dark"] :is(.ops-ux-focus__fact,.ops-ux-focus__toggle,.ops-ux-focus__restore){background:var(--cos-surface-3)!important;color:var(--cos-text)}
html[data-cos-theme="dark"] .ops-ux-setup__step{color:var(--cos-text-2)}
html[data-cos-theme="dark"] .ops-ux-setup__step.is-complete{background:var(--cos-success-bg);color:var(--cos-success-text)}
html[data-cos-theme="dark"] .ops-glass{box-shadow:var(--cos-shadow-card)!important}
html[data-cos-theme="dark"] .ops-glass::before,html[data-cos-theme="dark"] .ops-glass::after{display:none}
html[data-cos-theme="dark"] :is(.login,#scr-login.on,#scr-loading.on,.ops-loading){background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"] :is(.login-card,.overview-stats,.overview-tasks,.overview-soon,.overview-members,.overview-activity,.ops-filter__panel,.ops-overflow__menu,.ops-switcher,.m-list,.m-attn,.t-list,.t-attn,.rp-panel,.rp-day,.rp-time-grid,.rp-resource-card){background:var(--cos-surface)!important;border-color:var(--cos-border)!important;color:var(--cos-text)!important}
html[data-cos-theme="dark"] :is(.login-card .sub,.cos-empty__text,.stat-chip__l){color:var(--cos-text-2)!important}
html[data-cos-theme="dark"] .login-card .cos-input{background:var(--cos-surface-3)!important;color:var(--cos-text)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] .overview-event time{background:var(--d-selected);color:var(--d-primary)}
html[data-cos-theme="dark"] :is(.m-card,.t-card):hover{background:var(--cos-surface-3)!important}
html[data-cos-theme="dark"] .dashboard-command__item.ok b{color:var(--cos-success-text)}
html[data-cos-theme="dark"] .dashboard-command__item.danger b{color:var(--cos-danger-text)}
html[data-cos-theme="dark"] .dashboard-command__item.warn b{color:var(--cos-warn-text)}
html[data-cos-theme="dark"] :is(.ops-modal,.modal-card,.dialog-card,.drawer,.sheet,.rp-modal){background:var(--cos-surface)!important;color:var(--cos-text)!important;border-color:var(--cos-border)!important}

/* Scout: historische helle Regeln dürfen die Panels nicht übermalen. */
html[data-cos-theme="dark"].cos-rahmen-steht :is(.cos-head,.cos-main,.cos-body,.cos-tabbar){background:var(--cos-surface-2)!important;color:var(--cos-text)}
html[data-cos-theme="dark"].cos-rahmen-steht .cos .cos-side{background:var(--d-sidebar)!important;color:var(--d-text-2)!important}
html[data-cos-theme="dark"] .cos-side :is(.cos-side-nav,.cos-side-foot,.cos-side-head){background:transparent!important;border-color:var(--d-line-soft)!important}
html[data-cos-theme="dark"] .cos-side .cos-nav:hover{background:var(--d-hover)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"] .cos-side :is(.cos-nav.on,.cos-nav[aria-current="page"]){background:var(--d-selected)!important;color:var(--d-text-strong)!important;border-left-color:transparent!important;box-shadow:none!important}
html[data-cos-theme="dark"] .cos-side :is(.cos-nav.on,.cos-nav[aria-current="page"]) .cos-nav-ic{background:transparent!important;color:inherit!important}
html[data-cos-theme="dark"] .cos-side :is(.cos-nav.on,.cos-nav[aria-current="page"])::before{display:none!important}
html[data-cos-theme="dark"].cos-rahmen-steht .cos .cos-navzeile{background:var(--d-surface)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"].cos-rahmen-steht .cos .cos-btn--primary{background:var(--d-primary)!important;color:var(--d-on-primary)!important;-webkit-text-fill-color:currentColor}
html[data-cos-theme="dark"] :is(.cos-head-more-menu,.cos-card,.cos-panel,.cos-table-wrap,.scout-home-card,.scout-file-card){background:var(--cos-surface)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] :is(.cos-table,.cos-table th,.cos-table td){color:var(--cos-text);border-color:var(--cos-border-soft)}
html[data-cos-theme="dark"] :is(.cos-table th,.cos-table tr:nth-child(even)){background:var(--cos-surface-3)}

/* Sichtung: Einstieg, Bewertung, Athletenlisten und Dialoge. */
html[data-cos-theme="dark"] .court-entry{background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"] .court-entry__hero{background:var(--cos-surface-3)!important;color:var(--cos-text)}
html[data-cos-theme="dark"] :is(.court-entry__event-list button,.court-entry__count,.topbar,.km-tafel,.km-kopf,.km-fuss){background:var(--cos-surface)!important;color:var(--cos-text)}
html[data-cos-theme="dark"] .court-entry .btn{color:var(--d-on-primary)!important;-webkit-text-fill-color:currentColor}
html[data-cos-theme="dark"] :is(.karte,.tabhuelle,.filterleiste,.z-liste,.a-kopf,.tour-karte){background:var(--cos-surface);color:var(--cos-text);border-color:var(--cos-border)}

html[data-cos-theme="dark"] body :is(.startnr,.a-nr,.km-kreis){background:var(--d-primary)!important;color:var(--d-on-primary)!important;-webkit-text-fill-color:currentColor!important}
html[data-cos-theme="dark"] body table.tab th{background:var(--d-raised)!important;color:var(--d-text)!important}

/* Druck/PDF bleibt über die bestehenden Druckstyles lesbar. Der Schalter
   gehört nicht auf Ausdrucke oder in eine Vollbild-Spielerfassung. */
@media print{.courtos-theme-dock{display:none!important}}
@media(max-width:600px){.courtos-theme-dock{right:10px;bottom:54px}}

html[data-cos-theme="dark"] :is(.kr-tabs,.kr-detail__body,.kr-table th,.kr-role-select,.kr-sync-state){background:var(--cos-surface)!important;color:var(--cos-text)!important}
html[data-cos-theme="dark"] :is(.kr-avatar,.kr-chip.is-active,.kr-solid,.kr-filter-count){background:var(--d-primary)!important;color:var(--d-on-primary)!important}
html[data-cos-theme="dark"] :is(.kr-player-row:hover,.kr-table tbody tr:hover,.kr-outline:hover,.kr-icon-button--sm:hover){background:var(--d-raised)!important}
html[data-cos-theme="dark"] .kr-fact strong{color:var(--cos-text)!important}
html[data-cos-theme="dark"] .kr-chip:not(.is-active){color:var(--cos-text-2)!important}
html[data-cos-theme="dark"] .kr-player-row.is-selected{background:var(--d-selected)!important}
/* TOUCH: Setup und Steuerflächen, das Spielfeld bleibt farblich unverändert. */
html[data-cos-theme="dark"] :is(.modal-ov .mhd,.modal-ov .mbox,.modal-ov .mbd,.saved-teams-wrap,.saved-teams-hd,.saved-team-save,.ptbl th,.ptbl tr:nth-child(even) td,.chip-l,.m-tab,.m-cancel,.vs-sams-btn){background:var(--cos-surface-3)!important;color:var(--cos-text)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] .modal-ov :is(.mhd-t,.mhd-x){color:var(--cos-text)!important}
html[data-cos-theme="dark"] .modal-ov :is(.btn-gold,.m-tab.onH,.m-save){background:var(--d-primary)!important;color:var(--d-on-primary)!important}
html[data-cos-theme="dark"] #vs-app.vsredesign{background:var(--cos-surface-2)!important}
html[data-cos-theme="dark"] #vs-app.vsredesign :is(.vs-brand,.bar,.sp-btn,.sp-ctl,.court-outer,.log-wrap){background:var(--cos-surface)!important;color:var(--cos-text)!important;border-color:var(--cos-border)!important}

html[data-cos-theme="dark"] .main-nav{background:var(--cos-surface)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] .main-nav button{color:var(--cos-text-2)!important}
html[data-cos-theme="dark"] .main-nav button[aria-current="page"]{background:var(--d-selected)!important;color:var(--d-text-strong)!important}
html[data-cos-theme="dark"] :is(.roster,.roster tr,.readiness-panel){background:var(--cos-surface)!important;color:var(--cos-text)!important}
html[data-cos-theme="dark"] #preview-note{background:var(--cos-warn-bg)!important;color:var(--cos-warn-text)!important}
/* Belegungsplan: dieselbe Zeitraster-Darstellung in Tag und Woche. */
html[data-cos-theme="dark"]{--rp-control-bg:var(--d-raised);--rp-control-text:var(--d-text);--rp-control-border:var(--d-line);--rp-navy:var(--d-text-strong);--rp-navy-2:var(--d-primary);--rp-paper:var(--d-surface);--rp-line:var(--d-line);--rp-muted:var(--d-text-2);--rp-success:var(--d-ok);--rp-danger:var(--d-danger)}
html[data-cos-theme="dark"] :is(.rp-calendar-card,.rp-cal-corner,.rp-day-head,.rp-day-column,.rp-matrix,.rp-matrix th,.rp-request-layout,.rp-resource-row,.rp-template-row,.rp-week-empty,.rp-slot,.rp-icon-btn,.rp-close,.rp-resource-tab,.rp-daytab,.rp-sum){background:var(--cos-surface)!important;color:var(--cos-text)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] .rp-calendar{background:repeating-linear-gradient(to bottom,transparent 0,transparent 14px,var(--d-line-soft) 14px,var(--d-line-soft) 15px)!important}
html[data-cos-theme="dark"] .rp-day-column{background-color:transparent!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 14px,var(--d-line-soft) 14px,var(--d-line-soft) 15px)!important}
html[data-cos-theme="dark"] :is(.rp-screen .cos-btn--quiet,.rp-modal .cos-btn--quiet,.rp-modal .cos-input,.rp-modal .cos-textarea,.rp-modal .cos-select){background:var(--d-raised)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is(.rp-warning,.rp-roster-banner,.rp-status){background:var(--cos-warn-bg)!important;color:var(--cos-warn-text)!important}
html[data-cos-theme="dark"] :is(.rp-conflictbar,.rp-conflict-line){background:var(--cos-danger-bg)!important;color:var(--cos-danger-text)!important}
html[data-cos-theme="dark"] :is(.rp-viewswitch.ops-switcher>button.is-active,.rp-resource-tab.is-active,.rp-daytab.is-active){background:var(--d-primary)!important;color:var(--d-on-primary)!important}
html[data-cos-theme="dark"] .saved-team-btns button{background:var(--d-raised)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"].ops-shell-ready body .rp-modal :is(.cos-input,.cos-select,.cos-textarea,.cos-btn--quiet){background:var(--d-raised)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"] .rp-time{background:var(--d-surface)!important;color:var(--d-text-2)!important}
html[data-cos-theme="dark"] .rp-day-head strong{color:var(--d-text)!important}
html[data-cos-theme="dark"] .rp-day-head.is-today strong{color:var(--d-on-primary)!important}
html[data-cos-theme="dark"] .rp-conflictbar button{color:var(--cos-danger-text)!important}

/* Der Einstieg sitzt in der Sidebar; das Menü liegt außerhalb der Rail,
   damit es auch bei mobilen Schubladen und overflow:auto sichtbar bleibt. */
.courtos-theme-sidebar-button{flex-shrink:0;align-self:center;display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:6px 0 10px;padding:9px;border:1px solid transparent;border-radius:12px;background:transparent;color:inherit;cursor:pointer}
.courtos-theme-sidebar-button svg{width:21px;height:21px}
.courtos-theme-sidebar-button:hover,.courtos-theme-sidebar-button[aria-expanded="true"]{background:rgba(160,170,190,.18);border-color:currentColor}
.courtos-theme-sidebar-button:focus-visible{outline:2px solid var(--cos-accent,#e0a82e);outline-offset:2px}
.courtos-theme-dock--sidebar{inset:auto;z-index:1200}
.courtos-theme-dock--sidebar>summary{display:none}
.courtos-theme-dock--sidebar>.courtos-theme-control{position:fixed;width:max-content;max-width:calc(100vw - 16px);box-shadow:0 8px 24px rgba(0,0,0,.25)}
html[data-cos-theme="dark"] :is(.kpi,.skeleton,.loading-card,.ops-access-denied,.trainer-tabviews[aria-busy="true"]){background:var(--cos-surface)!important;color:var(--cos-text)!important;border-color:var(--cos-border)!important}
html[data-cos-theme="dark"] .trainer-load-status{background:var(--cos-warn-bg);color:var(--cos-warn-text)}
@media print{.courtos-theme-sidebar-button{display:none!important}}

@media(min-width:881px){
  .ops-rail.courtos-theme-sidebar{padding-bottom:calc(14px + var(--courtos-legal-height,0px))}
  .ops-rail.courtos-theme-sidebar>.ops-rail__nav{min-height:0;flex-shrink:1;overflow-y:auto;scrollbar-width:thin}
  .ops-rail.courtos-theme-sidebar>.ops-rail__group{flex-shrink:0}
}

/* Operations: neutral Codex/ChatGPT workspace. Keep canvas, panel, hover and
   selected roles separate; white is reserved for deliberate primary actions. */
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active){
  --cos-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  --cos-surface:var(--d-surface)!important;--cos-surface-1:var(--d-surface)!important;--cos-surface-2:var(--d-canvas)!important;--cos-surface-3:var(--d-hover)!important;
  --cos-text:var(--d-text)!important;--cos-text-2:var(--d-text-2)!important;--cos-text-3:var(--d-text-3)!important;
  --cos-border:var(--d-line)!important;--cos-border-soft:var(--d-line-soft)!important;--cos-line:var(--d-line);
  --cos-brand:var(--d-text)!important;--cos-brand-strong:var(--d-text)!important;--cos-brand-soft:var(--d-hover)!important;--cos-brand-bg:var(--d-surface)!important;--cos-brand-line:var(--d-line)!important;
  --cos-navy:var(--d-text);--cos-navy-deep:var(--d-hover);--cos-navy-2:var(--d-text);--cos-on-brand:var(--d-on-primary);
  --cos-ink:var(--d-text);--cos-ink-2:var(--d-text);--cos-graphite:var(--d-text-2);--cos-graphite-2:var(--d-text-2);
  --cos-paper:var(--d-surface);--cos-mist:var(--d-canvas);--cos-cloud:var(--d-hover);--courtos-header:var(--d-sidebar);
  --rp-control-bg:var(--d-hover);--rp-control-text:var(--d-text);--rp-control-border:var(--d-line);--rp-navy:var(--d-text);--rp-navy-2:var(--d-text);--rp-paper:var(--d-surface);--rp-line:var(--d-line);--rp-muted:var(--d-text-2);
  --chat-navy:var(--d-text);--chat-line:var(--d-line-soft);--chat-muted:var(--d-text-2);--chat-soft:var(--d-hover);--chat-bg:var(--d-canvas);
  scrollbar-color:var(--d-line-strong) var(--d-canvas);
}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.trainer-shell-rail,.ops-rail,.cos-side,.courtos-sidebar,.footer,.cos-foot,.courtos-legal-bar,.chat-list){background:var(--d-sidebar)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.trainer-tabchrome,.trainer-tabbar,.trainer-tabhost,.trainer-tabviews,.trainer-tabview,.ops-tabhost,.ops-tabbar,.chat-app,.chat-shell,.conversation,.ctm-topbar){background:var(--d-canvas)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.trainer-tab.is-active,.ops-tab.is-active){background:var(--d-surface)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.t-rows,.t-row,.t-empty,.s-current,.s-group>.s-card,.s-attn,.scope-item,.sp-list,.m-menu,.s-menu,.t-menu__pop,.m-chip,.t-chip,.modal-foot,.ops-subnav__more-btn,.ops-dropzone__icon,.drop-icon,.rp-sendsum span,.rp-mail-preview,.rp-mode-help,.rp-public-settings,.chat-details,.chat-dialog,.chat-dialog__card,.poll-card,.message-card){background:var(--d-surface)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.member-folder-all,.member-folder-row,.t-seg button,.ops-switcher>button,.chat-btn,.thread-row,.icon-btn){background:transparent!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.member-folder-count,.m-ava,.t-ava,.d-ava,.s-icon,.s-card.is-archived .s-icon,.chat-avatar,.message-avatar,.chat-empty i,.chat-search kbd,.pin-badge){background:var(--d-hover)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.member-folder-all,.member-folder-row,.member-folder-create,.member-folder-row__actions button,.m-more__btn,.t-count,.t-row,.s-current,.s-card,.s-more__btn,.t-seg button,.ops-switcher>button,.cos-btn--quiet,.cos-btn--ghost,.chat-btn,.thread-row,.icon-btn,.person-pick,.person-option,.ops-dropzone,.drop,.ops-tab,.trainer-tab):hover{background:var(--d-hover)!important;color:var(--d-text)!important;border-color:var(--d-line-strong)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.member-folder-all.is-active,.member-folder-row.is-active,.t-seg button.is-on,.ops-switcher>button.active,.ops-switcher>button.is-active,.ops-switcher>button.is-on,.ops-switcher>button[aria-pressed="true"],.rp-resource-tab.is-active,.rp-daytab.is-active,.thread-row.is-active,.zg-tab.is-active){background:var(--d-selected)!important;color:var(--d-text)!important;border-color:var(--d-line-strong)!important;box-shadow:none!important;-webkit-text-fill-color:currentColor}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-switcher>button.active,.ops-switcher>button.is-active,.ops-switcher>button.is-on,.ops-switcher>button[aria-pressed="true"],.t-seg button.is-on) b{color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.cos-btn--primary,.dl-btn,.chat-btn--primary,.send-btn,.poll-card button,.unread){background:var(--d-primary)!important;color:var(--d-on-primary)!important;border-color:var(--d-primary)!important;-webkit-text-fill-color:currentColor;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.cos-btn--primary,.dl-btn,.chat-btn--primary,.send-btn,.poll-card button):hover:not(:disabled){background:var(--d-primary-hover)!important;color:var(--d-on-primary)!important;border-color:var(--d-primary-hover)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(button:disabled,.chat-btn[aria-disabled="true"],.dl-btn:disabled){opacity:1;cursor:not-allowed;background:var(--d-hover)!important;color:var(--d-text-2)!important;border-color:var(--d-line)!important;-webkit-text-fill-color:currentColor}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.cos-input,.cos-select,.cos-textarea,.t-season__field,.t-season:focus-within .t-season__field,.rp-modal .cos-input,.rp-modal .cos-select,.rp-modal .cos-textarea,.chat-search,.composer,.composer textarea,.dialog-name input){background:var(--d-raised)!important;color:var(--d-text)!important;caret-color:var(--d-text);border-color:var(--d-line)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .composer textarea::placeholder{color:var(--d-text-2)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.rp-form-grid label,.chat-empty,.chat-empty p,.chat-list-empty,.day-divider,.message-head time,.details-safety,.chat-details p,.composer-status){color:var(--d-text-2)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.chat-empty h3,.thread-section__head,.thread-copy strong,.conversation__tabs button.is-active,.icon-btn,.details-heading button,.scope-item b,.t-name,.s-name){color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.message-bubble,.message.is-mine .message-bubble,.poll-card label,.reaction,.details-safety){background:var(--d-surface)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.sensitive-note,.minor-hint,.missing-docs,.warn-note,.badge-critical,.badge-planned,.priority-badge,.rp-request-item.is-active){background:var(--cos-warn-bg)!important;color:var(--cos-warn-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.badge-sent,.badge-requested,.badge-review,.badge-open,.badge-partial,.mention-badge){background:var(--status-info-bg)!important;color:var(--status-info-tx)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.rp-form-error,.composer-status){color:var(--cos-danger-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.m-bulk,.rp-colorbar,.t-toast,.rp-toast,.chat-toast){background:var(--d-hover)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) ::selection{background:var(--d-line-strong);color:#fff}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(button,a[href],input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--d-focus)!important;outline-offset:3px}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .s-card:focus-visible,.t-row:focus-visible{background:var(--d-hover)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.chat-dialog,.rp-modal-backdrop)::backdrop{background:rgba(0,0,0,.65)}

html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-ux-empty-next,.ops-ux-origin,.ops-loading__hint,.m-st--draft b){color:var(--d-text-2)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.m-st--ok b,.stat-chip--ok .stat-chip__n,.consent-state.ok){color:var(--cos-success-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.m-st--warn b,.stat-chip--warn .stat-chip__n,.m-flag,.consent-state.warn,.s-teams--warn){color:var(--cos-warn-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.m-st--danger b,.stat-chip--danger .stat-chip__n,.consent-state.danger,.log-table .bad){color:var(--cos-danger-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.assignment-row,.status-chip,.perm-person,.perm-group,.matrix-table,.ops-dialog,.ops-ux-import-progress li,.ops-ux-import-progress b){background:var(--d-surface)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.status-chip.active,.toggle-btn.active,.ops-subnav__item.active,.ops-subnav__more-btn.is-active){background:var(--d-selected)!important;color:var(--d-text)!important;border-color:var(--d-line-strong)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-subnav__item{background:var(--d-surface)!important;color:var(--d-text-2)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-subnav__item:hover{background:var(--d-hover)!important;color:var(--d-text)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-subnav__item.active:hover{background:var(--d-selected)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-ux-setup__step.is-complete,.ops-ux-import-progress li.is-complete,.ops-hold.is-done,.ops-dropzone.is-dropped){background:var(--cos-success-bg)!important;color:var(--cos-success-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-ux-import-progress li.is-current,.ops-dropzone.is-over,.drop.drag-over,.badge-warn,.matrix-table tr.sens){background:var(--cos-warn-bg)!important;color:var(--cos-warn-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .matrix-table tr.sens td.lh{color:var(--cos-warn-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-ux-import-progress li.is-current b{background:var(--d-selected)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-ux-setup__step.is-complete i{color:var(--cos-success-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-confirm__icon,.ops-hold){background:var(--cos-danger-bg)!important;color:var(--cos-danger-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-subnav__bar{background:transparent!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .courtos-theme-control__option[aria-checked="true"]{background:var(--d-selected);color:var(--d-text)}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) #scr-inventory table{background:var(--d-surface)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) {--courtos-legal-bg:var(--d-sidebar);--courtos-legal-line:var(--d-line-soft);--courtos-legal-hover:var(--d-hover)}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .rp-modal-backdrop{background:rgba(0,0,0,.65)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-mobile-menu,.ops-rail__group){background:var(--d-canvas)!important;color:var(--d-text)!important;border-color:var(--d-line)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-rail__item{color:var(--d-text)!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-rail__item:hover,.ops-rail__item:focus-visible,.ops-mobile-menu:hover){background:var(--d-hover)!important;color:var(--d-text)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) :is(.ops-rail__item.active,.ops-rail__item.active:hover){background:var(--d-selected)!important;color:var(--d-text)!important;box-shadow:none!important}
html[data-cos-theme="dark"]:is([data-courtos-area="operations"],.workspace-operations-active) .ops-mobile-backdrop{background:rgba(0,0,0,.65)!important}
/* Seiteneigene Farbvariablen, die einzelne Apps in ihrem :root führen. Ohne
   diese Gegenwerte blieben z. B. Beschriftungen in Navy (#27407A, 1,6 : 1) oder
   Flächen in Creme stehen. Sport- und Statusfarben bleiben unangetastet. */
html[data-cos-theme="dark"]{
  --navy2:var(--d-text-2)!important;--navy-2:var(--d-text-2)!important;--blue:var(--d-text-2)!important;--blue-soft:var(--d-text-3)!important;
  --navy-ui:var(--d-primary)!important;--faint:var(--d-text-3)!important;--cream:var(--d-canvas)!important;--cos-bg:var(--d-canvas)!important;
  --cos-muted:var(--d-text-3)!important;--cos-off:var(--d-text-3)!important;--cos-ink-soft:var(--d-text-2)!important;--cos-ink-mute:var(--d-text-3)!important;
  --page:var(--d-canvas)!important;--header:rgba(33,33,33,.92)!important;
  --gd-bg:var(--d-accent-bg)!important;--bd:var(--d-line)!important;--tx:var(--d-text)!important;--tx2:var(--d-text-2)!important;--tx3:var(--d-text-3)!important;
  --cd-paper:var(--d-surface)!important;--cd-paper-2:var(--d-surface)!important;--cd-wanne:var(--d-raised)!important;--cd-page:var(--d-canvas)!important;
  --cd-card:var(--d-surface)!important;--cd-ink:var(--d-text)!important;--cd-ink-2:var(--d-text-2)!important;--cd-ink-3:var(--d-text-3)!important;
  --cd-brand:var(--d-text)!important;--cd-line:var(--d-line)!important;--cd-line-2:var(--d-line-soft)!important;
  --cd-accent-bg:var(--d-selected)!important;--cd-accent-line:var(--d-line-strong)!important;
  --wp-bg:var(--d-canvas)!important;--wp-surface:var(--d-surface)!important;--wp-surface-2:var(--d-raised)!important;--wp-line:var(--d-line)!important;
  --wp-text:var(--d-text)!important;--wp-muted:var(--d-text-2)!important;
}


/* Seiteneigene neutrale Farbvariablen (automatisch aus den :root-Werten der
   Apps abgeleitet: helle Flächen → Fläche, dunkle Töne → Text, Mitteltöne →
   Sekundärtext, Linien → Linie). Farbige Sport-, Status- und Akzentwerte,
   Spielfelder, TV-Grafiken und Exporte sind bewusst ausgenommen. */
html[data-cos-theme="dark"]{--ath-faint:var(--d-text-3)!important;--ath-ink:var(--d-text)!important;--ath-muted:var(--d-text-2)!important;--ath-navy:var(--d-text)!important;--ath-paper:var(--d-surface)!important;--ath-premium-canvas:var(--d-surface)!important;--ath-premium-faint:var(--d-text-3)!important;--ath-premium-ink:var(--d-text)!important;--ath-premium-muted:var(--d-text-2)!important;--ath-premium-navy:var(--d-text)!important;--ath-premium-paper:var(--d-surface)!important;--ath-premium-paper-muted:var(--d-surface)!important;--ath-premium-rule:var(--d-line)!important;--ath-premium-rule-strong:var(--d-line)!important;--ath-rule:var(--d-line)!important;--ath-soft:var(--d-surface)!important;--bg2:var(--d-surface)!important;--bg3:var(--d-raised)!important;--border2:var(--d-line)!important;--brand-ink:var(--d-text)!important;--cd-navy:var(--d-text)!important;--chat-bg:var(--d-surface)!important;--chat-line:var(--d-line)!important;--chat-muted:var(--d-text-2)!important;--chat-soft:var(--d-surface)!important;--cos-cream:var(--d-surface)!important;--cos-cream2:var(--d-surface)!important;--cos-cream3:var(--d-surface)!important;--cos-line2:var(--d-line)!important;--cos-mut:var(--d-text-2)!important;--cos-mut2:var(--d-text-3)!important;--ctm-border:var(--d-line)!important;--ctm-brand:var(--d-text)!important;--ctm-brand-strong:var(--d-text)!important;--ctm-header-border:var(--d-line)!important;--ctm-header-surface:var(--d-surface)!important;--ctm-header-text:var(--d-text)!important;--ctm-muted:var(--d-text-2)!important;--ctm-surface:var(--d-surface)!important;--ctm-surface-soft:var(--d-surface)!important;--ctm-text:var(--d-text)!important;--dim:var(--d-text-2)!important;--drl-aus:var(--d-text-3)!important;--drl-aus-stark:var(--d-text-3)!important;--drl-brand-bg:var(--d-surface)!important;--drl-grau:var(--d-text-2)!important;--drl-grau-bg:var(--d-surface)!important;--drl-grau-dunkel:var(--d-text-2)!important;--drl-grau-hell:var(--d-text-3)!important;--drl-line-strong:var(--d-line)!important;--drl-paper-deep:var(--d-raised)!important;--grn-bg:var(--d-ok-bg)!important;--kr-faint:var(--d-text-3)!important;--line2:var(--d-line)!important;--mut:var(--d-text-2)!important;--mut2:var(--d-text-3)!important;--navy-tief:var(--d-text)!important;--navy1:var(--d-text)!important;--navy3:var(--d-text)!important;--panel:var(--d-surface)!important;--panel2:var(--d-surface)!important;--scout-header:var(--d-surface)!important;--surface:var(--d-surface)!important;--text:var(--d-text)!important;--text2:var(--d-text-2)!important;--text3:var(--d-text-2)!important;--vs-cos-cream3:var(--d-surface)!important;--vs-cos-line2:var(--d-line)!important;--vs-cos-mut2:var(--d-text-3)!important;--vs-tx:var(--d-text)!important;--vs-tx2:var(--d-text-2)!important;--white:var(--d-surface)!important}

/* Coachboard: ersetzt die eigene navyblaue Nachtpalette. --ink bleibt
   Schriftfarbe (95 Verwendungen); die wenigen Leisten mit --ink als Fläche
   werden unten gezielt dunkel gehalten. */
html[data-cos-theme="dark"] body[data-courtos-module="coachboard"],html[data-cos-theme="dark"] body:has(.cb-ux-focus,.cb-decision){--bg:var(--d-canvas)!important;--card:var(--d-surface)!important;--text:var(--d-text)!important;--muted:var(--d-text-2)!important;--border:var(--d-line)!important;--primary:var(--d-primary)!important;--secondary:var(--d-text-2)!important;--paper:var(--d-canvas)!important}

/* ═══ ChatGPT/Codex-Stil: Komponentenebene ═══════════════════════════════════
   Regeln: Seitenleiste dunkler als die Arbeitsfläche; Auswahl = graue Fläche,
   keine Farbe; Primäraktion = helle Fläche mit dunkler Schrift; Karten ohne
   Schatten, nur mit feiner Linie; Hover hebt um eine Graustufe an. */
html[data-cos-theme="dark"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html[data-cos-theme="dark"] ::selection{background:rgba(255,255,255,.22);color:var(--d-text-strong)}
html[data-cos-theme="dark"]{scrollbar-color:var(--d-line-strong) transparent}
html[data-cos-theme="dark"] ::-webkit-scrollbar{width:10px;height:10px}
html[data-cos-theme="dark"] ::-webkit-scrollbar-thumb{background:var(--d-line-strong);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
html[data-cos-theme="dark"] ::-webkit-scrollbar-track{background:transparent}
html[data-cos-theme="dark"] :focus-visible{outline-color:var(--d-focus)}

/* Seitenleisten: eigene Schriftrollen, damit die hellen Primär-Buttons
   (--cos-on-brand dunkel) die Symbole hier nicht dunkel auf dunkel färben. */
html[data-cos-theme="dark"] :is(.ops-rail,.trainer-shell-rail,.cos-side,.courtos-sidebar,.v2-hub-sidebar,.ops-mobile-menu){
  --cos-on-brand:var(--d-text)!important;--cos-on-brand-rgb:236,236,236!important;--d-on-primary:var(--d-text);--d-on-primary-rgb:236,236,236;
  background:var(--d-sidebar)!important;color:var(--d-text-2)!important;border-color:var(--d-line-soft)!important}
html[data-cos-theme="dark"] .ops-rail__item{color:var(--d-text-2)!important}
/* Scout-Spielvorbereitung: die Team-Kachel ist eine Karte, keine helle Markenfläche. */
html[data-cos-theme="dark"] .cos button.hero{background:var(--d-surface)!important;border:1px solid var(--d-line)!important;box-shadow:none!important;--cos-on-brand:var(--d-text)!important;--cos-on-brand-rgb:236,236,236!important}
html[data-cos-theme="dark"] .cos button.hero:hover{background:var(--d-hover)!important}
html[data-cos-theme="dark"] .ops-rail__item:hover,html[data-cos-theme="dark"] .ops-rail__item:focus-visible{background:var(--d-hover)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"] .ops-rail__item.active,html[data-cos-theme="dark"] .ops-rail__item.active:hover{background:var(--d-selected)!important;color:var(--d-text-strong)!important;box-shadow:none!important}
html[data-cos-theme="dark"] .ops-rail__item::after{background:var(--d-raised)!important;color:var(--d-text)!important;border:1px solid var(--d-line);box-shadow:0 8px 24px rgba(0,0,0,.5)!important}
html[data-cos-theme="dark"] :is(.ops-rail__menu,.ops-subnav__more-menu,.ops-overflow__menu,.cos-head-more-menu){background:var(--d-raised)!important;color:var(--d-text)!important;border-color:var(--d-line)!important;box-shadow:0 16px 48px rgba(0,0,0,.5)!important}
html[data-cos-theme="dark"] :is(.ops-rail__menu-item,.ops-rail__menu-logout){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is(.ops-rail__menu-item,.ops-rail__menu-logout):hover{background:var(--d-hover)!important}
html[data-cos-theme="dark"] :is(.ops-rail__menu-mail,.ops-rail__menu-id){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] .ops-subnav__item{background:var(--d-canvas)!important;color:var(--d-text-2)!important;box-shadow:none!important}
html[data-cos-theme="dark"] .ops-subnav__item:hover{background:var(--d-hover)!important;color:var(--d-text)!important}
html[data-cos-theme="dark"] .ops-subnav__item.active,html[data-cos-theme="dark"] .ops-subnav__item.active:hover{background:var(--d-selected)!important;color:var(--d-text-strong)!important;box-shadow:none!important}

/* Primär- und Sekundäraktionen */
html[data-cos-theme="dark"] :is(.cos-btn--primary,.btn.primary,.btn-primary,.primary-btn,.trainer-apple-calendar__new):hover:not(:disabled){background:var(--d-primary-hover)!important;border-color:var(--d-primary-hover)!important;color:var(--d-on-primary)!important}
html[data-cos-theme="dark"] :is(.cos-btn--ghost,.cos-btn--quiet,.cos-btn--secondary,.btn.ghost,.btn-secondary){background:transparent;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is(.cos-btn--ghost,.cos-btn--quiet,.cos-btn--secondary,.btn.ghost,.btn-secondary):hover:not(:disabled){background:var(--d-hover)!important;border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is(.cos-btn--danger,.btn.danger){background:transparent!important;color:var(--d-danger-text)!important;border-color:var(--d-danger-line)!important}
html[data-cos-theme="dark"] :is(.cos-btn--danger,.btn.danger):hover:not(:disabled){background:var(--d-danger-bg)!important}
html[data-cos-theme="dark"] :is(button,.cos-btn,.btn):disabled{opacity:.45}

/* Karten, Panels, Dialoge: Linie statt Schatten */
html[data-cos-theme="dark"] :is(.card,.cos-card,.panel,.cos-panel,.sub-card,.ops-card,.uk-card){box-shadow:none!important}
html[data-cos-theme="dark"] :is(a.card,button.card,.card.is-clickable,.cos-card--link,.cos-app-card,.item-card,.m-card,.t-card,.scout-home-card,.scout-file-card):hover{background:var(--d-raised)!important;border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is(.ops-modal,.modal-card,.dialog-card,.modal,.dialog,dialog,.ops-dialog,.drawer,.sheet,.rp-modal){background:var(--d-surface)!important;color:var(--d-text)!important;border:1px solid var(--d-line)!important;box-shadow:0 24px 64px rgba(0,0,0,.6)!important}
html[data-cos-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.6)}
html[data-cos-theme="dark"] :is(.modal-overlay,.modal-backdrop,.ops-modal-backdrop,.modal-ov,.overlay){background-color:rgba(0,0,0,.6)}

/* Eingaben: wie das ChatGPT-Eingabefeld – etwas heller als die Fläche, ruhiger Fokus */
html[data-cos-theme="dark"] :is(.cos-input,.cos-select,.cos-textarea,input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select){background-color:var(--d-raised);color:var(--d-text);border-color:var(--d-line)}
html[data-cos-theme="dark"] :is(.cos-input,.cos-select,.cos-textarea,input,textarea,select):hover:not(:disabled):not(:focus){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is(.cos-input,.cos-select,.cos-textarea,input,textarea,select):focus{border-color:var(--d-text-3)!important;box-shadow:0 0 0 3px rgba(255,255,255,.08)!important;outline:none}
html[data-cos-theme="dark"] :is(input,textarea,select):disabled{opacity:.55}
html[data-cos-theme="dark"] :is(input[type="checkbox"],input[type="radio"],input[type="range"],progress){accent-color:var(--d-text)}

/* Tabellen */
html[data-cos-theme="dark"] :is(table,.data-table,.cos-table) :is(th,td){border-color:var(--d-line-soft)}
html[data-cos-theme="dark"] :is(.data-table,.cos-table,.kr-table) thead th{background:var(--d-surface)!important;color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is(.data-table,.cos-table,.kr-table) tbody tr:hover>*{background:rgba(255,255,255,.035)}

/* Segmentschalter und Chips: Auswahl als graue Fläche */
html[data-cos-theme="dark"] :is(.ops-switcher,.seg,.segmented,.tpl-segmented,.sz-seg){background:var(--d-surface)!important;border-color:var(--d-line)!important}

/* Große Flächen, die im Hellmodus Markenfarbe tragen: im Dunkeln bleiben sie
   Leiste bzw. Kopf (dunkel, helle Schrift), nicht helle Primärfläche. */
html[data-cos-theme="dark"] :is(body[data-courtos-module="anzeigetafel"] .topbar,.public-head,.re-display,.modal-ov .mhd,.bphase th,.footer,header.cos-live){--d-on-primary:var(--d-text);--d-on-primary-rgb:236,236,236;background:var(--d-surface)!important;color:var(--d-text)!important;border-color:var(--d-line)!important}
html[data-cos-theme="dark"] body > header:first-of-type:not([class]){--d-on-primary:var(--d-text);--d-on-primary-rgb:236,236,236}
html[data-cos-theme="dark"] .cos-badge--brand{background:var(--d-selected);color:var(--d-text)}
html[data-cos-theme="dark"] .cos-badge--accent{background:var(--d-accent-bg);color:var(--d-accent)}

/* Theme-Schalter selbst */
html[data-cos-theme="dark"] .courtos-theme-control{background:var(--d-raised);border-color:var(--d-line)}
html[data-cos-theme="dark"] .courtos-theme-control__option{color:var(--d-text-2)}
html[data-cos-theme="dark"] .courtos-theme-control__option[aria-checked="true"]{background:var(--d-selected);color:var(--d-text-strong)}
html[data-cos-theme="dark"] .courtos-theme-sidebar-button:hover,html[data-cos-theme="dark"] .courtos-theme-sidebar-button[aria-expanded="true"]{background:var(--d-hover);border-color:transparent}

/* Unformatierte Links erhielten im dunklen Farbschema das Browser-Lila
   rgb(158,158,255). Wie bei ChatGPT: Textfarbe, Unterstreichung als Signal. */
html[data-cos-theme="dark"] a:not([class]),html[data-cos-theme="dark"] a:not([class]):visited{color:var(--d-text);text-decoration-color:var(--d-text-3)}
html[data-cos-theme="dark"] a:not([class]):hover{color:var(--d-text-strong);text-decoration-color:currentColor}

/* Auswahlzustände (aktiver Reiter, gedrückter Segmentknopf, gewählter Chip):
   graue Fläche mit heller Schrift wie in ChatGPT/Codex – hell bleiben nur
   echte Aktionen. Gilt für Navigationen, Reiterleisten und Segmentschalter. */
html[data-cos-theme="dark"] :is(.main-nav,nav[aria-label],.segmented,.seg,.tpl-segmented,.tpl-modes,.ops-switcher,.sz-seg,.tabs,.tab-bar,.tabbar,[role="tablist"],.rp-viewswitch,.t-seg,.fin-views,.fin-sub,.bl-tabs,.series-control,.period-control,.schalter,.st-tabs,.z3-tempi,.macro-weekdays,.ueb-media-kinds,.atv2-week,.radar-analysis-tabs,.presbar .pseg) :is([aria-current="page"],[aria-pressed="true"],[aria-selected="true"],.active,.is-active,.on,.is-on,.an){background:var(--d-selected)!important;color:var(--d-text-strong)!important;-webkit-text-fill-color:currentColor;border-color:var(--d-line-strong)!important;box-shadow:none!important}
html[data-cos-theme="dark"] :is(.main-nav,.segmented,.seg,.tpl-segmented,.ops-switcher,.sz-seg,.t-seg,.fin-views,.fin-sub,.bl-tabs,.rp-viewswitch,.schalter) :is(button,a):not([aria-current="page"]):not([aria-pressed="true"]):not([aria-selected="true"]):not(.active):not(.is-active):not(.on):not(.is-on):not(.an):hover{background:var(--d-hover);color:var(--d-text)}
html[data-cos-theme="dark"] :is(.rn-mt.on,.segbtn.on,.presbar .pseg button.on,.stChip.on,.mt.on,.kr-chip.is-active,.rp-resource-tab.is-active,.rp-daytab.is-active,.rp-viewswitch.ops-switcher>button.is-active,.m-tab.onH,.trainer-calendar-list__tab.is-active,.diag-chip[aria-pressed="true"],.ueb-area-chip.on,.chip.on,.status-chip.active,.toggle-btn.active){background:var(--d-selected)!important;color:var(--d-text-strong)!important;-webkit-text-fill-color:currentColor;border-color:var(--d-line-strong)!important;box-shadow:none!important}
html[data-cos-theme="dark"] .trainer-tab.is-active,html[data-cos-theme="dark"] .trainer-tab[aria-selected="true"]{box-shadow:none}

html[data-cos-theme="dark"] :is(body[data-courtos-module="coachboard"],body:has(.cb-ux-focus,.cb-decision)) :is(.sidebar,.mobile-bar,.cb-scope .ath-hero,.cb-scope .hero .hero-l,.vjf-mobile-entry .me-hdr){background:var(--d-sidebar)!important;color:var(--d-text)!important;border-color:var(--d-line-soft)!important;--d-on-primary:var(--d-text);--d-on-primary-rgb:236,236,236}
html[data-cos-theme="dark"] .mobile-bar .mbtn.active .mi{background:var(--d-selected)!important;color:var(--d-text-strong)!important}
html[data-cos-theme="dark"] .mobile-bar .mbtn{color:var(--d-text-2)}
html[data-cos-theme="dark"] .mobile-bar .mbtn.active{color:var(--d-text-strong)}
html[data-cos-theme="dark"] .tr-hall-cta__icon{background:var(--d-raised)!important}

/* Dunkle Leisten mit Markenfarbe als Fläche (im Hellmodus Navy mit weißer
   Schrift): innerhalb der Leiste gelten die Hellmodus-Beziehungen weiter –
   Leiste dunkel, Schrift hell, aktives Element hell mit dunkler Schrift. */
html[data-cos-theme="dark"] :is(.tr-top,body[data-courtos-module="taktikboard"] .left,body[data-courtos-module="anzeigetafel"] .topbar,aside.side[aria-label="Operations Navigation"],.cos-side,.ops-rail,.trainer-shell-rail){
  --cos-brand-strong:var(--d-sidebar)!important;--cos-brand:var(--d-raised)!important;--navy:var(--d-raised)!important;--navy-deep:var(--d-sidebar)!important;--cos-navy-deep:var(--d-sidebar)!important;
  --cos-on-brand:var(--d-text)!important;--cos-on-brand-rgb:236,236,236!important;--d-on-primary:var(--d-text);--d-on-primary-rgb:236,236,236}
html[data-cos-theme="dark"] .tr-top{border-bottom:1px solid var(--d-line-soft)}
/* Goldene Kopfzeilen-Knöpfe (Replay-Kamera, Anzeigetafel-Hub) behalten Gold mit dunkler Schrift. */
html[data-cos-theme="dark"] :is(body[data-courtos-module="replay"]>.nav .setup-btn,body[data-courtos-module="anzeigetafel"] .topbar .tb-hub){background:var(--d-accent)!important;color:#1a1303!important;border-color:transparent!important}

/* Der schwebende Darstellungs-Schalter (Seiten ohne Seitenleiste) verdeckte als
   Textpille Formularinhalte, z. B. das Datenschutz-Häkchen der Hallenanfrage.
   Jetzt ein runder Symbolknopf; der Text bleibt für Screenreader erhalten. */
.courtos-theme-dock:not(.courtos-theme-dock--sidebar)>summary{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;font-size:0;line-height:0;color:transparent}
.courtos-theme-dock:not(.courtos-theme-dock--sidebar)>summary::before{content:"";width:18px;height:18px;border-radius:50%;border:2px solid var(--cos-text,#20242c);background:linear-gradient(90deg,var(--cos-text,#20242c) 50%,transparent 50%)}
.courtos-theme-dock:not(.courtos-theme-dock--sidebar){right:12px;bottom:56px;opacity:.9}
.courtos-theme-dock:not(.courtos-theme-dock--sidebar):hover,.courtos-theme-dock[open]{opacity:1}
/* --muted ist in Scout eine Fläche (shadcn-Begriff), anderswo Schrift; die Tastenkappe im Suchfeld lag dadurch Ton in Ton. */
html[data-cos-theme="dark"] .trainer-hub-search kbd{background:var(--d-raised)!important;color:var(--d-text-3)!important;border-color:var(--d-line)!important}
/* Scout führt --muted als Fläche (31×, nie als Schrift); global ist es Sekundärtext. */
html[data-cos-theme="dark"]:has(link[href*="scout-shell-kompat.css"],link[href*="scout/vendor/courtos-shell.css"]){--muted:var(--d-raised)!important}
/* Athletik: Gold-Etikett mit Navy-Schrift (Navy ist im Dunkeln hell) und Athletenportal. */
html[data-cos-theme="dark"] :is(.ueb-flag.own,.ueb-flag.own *){color:#1a1303!important}
html[data-cos-theme="dark"] .pm-avatar{background:var(--d-raised)!important;color:var(--d-accent)!important}
html[data-cos-theme="dark"] body:has(.athlete-chat-bubble) nav.navbar{background:var(--d-sidebar)!important;border-top:1px solid var(--d-line-soft);--cos-on-brand:var(--d-text)!important;--cos-on-brand-rgb:236,236,236!important;--d-on-primary:var(--d-text);--d-on-primary-rgb:236,236,236;--cos-brand:var(--d-raised)!important;--cos-brand-strong:var(--d-sidebar)!important}

/* Inline-Styles aus Skripten (Coachboard, Scout u. a.) mit festen Hellfarben.
   Stylesheet-!important schlägt Inline-Styles – Skripte, Exporte in eigenen
   Fenstern und der Hellmodus bleiben unberührt. Längere Werte stehen hinten
   und gewinnen gegen Präfixe (#fff vs. #fff3cd). Automatisch erzeugt. */
html[data-cos-theme="dark"] :is([style*=";color:#111" i],[style*=";color: #111" i],[style*="; color:#111" i],[style*="; color: #111" i],[style^="color:#111" i],[style^="color: #111" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#333" i],[style*=";color: #333" i],[style*="; color:#333" i],[style*="; color: #333" i],[style^="color:#333" i],[style^="color: #333" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#444" i],[style*=";color: #444" i],[style*="; color:#444" i],[style*="; color: #444" i],[style^="color:#444" i],[style^="color: #444" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#555" i],[style*=";color: #555" i],[style*="; color:#555" i],[style*="; color: #555" i],[style^="color:#555" i],[style^="color: #555" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#666" i],[style*=";color: #666" i],[style*="; color:#666" i],[style*="; color: #666" i],[style^="color:#666" i],[style^="color: #666" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#777" i],[style*=";color: #777" i],[style*="; color:#777" i],[style*="; color: #777" i],[style^="color:#777" i],[style^="color: #777" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#888" i],[style*=";color: #888" i],[style*="; color:#888" i],[style*="; color: #888" i],[style^="color:#888" i],[style^="color: #888" i]){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] :is([style*=";color:#a23" i],[style*=";color: #a23" i],[style*="; color:#a23" i],[style*="; color: #a23" i],[style^="color:#a23" i],[style^="color: #a23" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#ccc" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#ddd" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#eee" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*=";color:#f6a" i],[style*=";color: #f6a" i],[style*="; color:#f6a" i],[style*="; color: #f6a" i],[style^="color:#f6a" i],[style^="color: #f6a" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff" i],[style*="background: #fff" i],[style*="background-color:#fff" i],[style*="background-color: #fff" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#fff" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:white" i],[style*="background: white" i],[style*="background-color:white" i],[style*="background-color: white" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*=";color:#003366" i],[style*=";color: #003366" i],[style*="; color:#003366" i],[style*="; color: #003366" i],[style^="color:#003366" i],[style^="color: #003366" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0369a1" i],[style*=";color: #0369a1" i],[style*="; color:#0369a1" i],[style*="; color: #0369a1" i],[style^="color:#0369a1" i],[style^="color: #0369a1" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#075985" i],[style*=";color: #075985" i],[style*="; color:#075985" i],[style*="; color: #075985" i],[style^="color:#075985" i],[style^="color: #075985" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0c0e12" i],[style*=";color: #0c0e12" i],[style*="; color:#0c0e12" i],[style*="; color: #0c0e12" i],[style^="color:#0c0e12" i],[style^="color: #0c0e12" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0c447c" i],[style*=";color: #0c447c" i],[style*="; color:#0c447c" i],[style*="; color: #0c447c" i],[style^="color:#0c447c" i],[style^="color: #0c447c" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0c4a6e" i],[style*=";color: #0c4a6e" i],[style*="; color:#0c4a6e" i],[style*="; color: #0c4a6e" i],[style^="color:#0c4a6e" i],[style^="color: #0c4a6e" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0e7490" i],[style*=";color: #0e7490" i],[style*="; color:#0e7490" i],[style*="; color: #0e7490" i],[style^="color:#0e7490" i],[style^="color: #0e7490" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0ea5e9" i],[style*=";color: #0ea5e9" i],[style*="; color:#0ea5e9" i],[style*="; color: #0ea5e9" i],[style^="color:#0ea5e9" i],[style^="color: #0ea5e9" i]){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] :is([style*=";color:#0f6e39" i],[style*=";color: #0f6e39" i],[style*="; color:#0f6e39" i],[style*="; color: #0f6e39" i],[style^="color:#0f6e39" i],[style^="color: #0f6e39" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#10234c" i],[style*=";color: #10234c" i],[style*="; color:#10234c" i],[style*="; color: #10234c" i],[style^="color:#10234c" i],[style^="color: #10234c" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#14532d" i],[style*=";color: #14532d" i],[style*="; color:#14532d" i],[style*="; color: #14532d" i],[style^="color:#14532d" i],[style^="color: #14532d" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#15803d" i],[style*=";color: #15803d" i],[style*="; color:#15803d" i],[style*="; color: #15803d" i],[style^="color:#15803d" i],[style^="color: #15803d" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#16233f" i],[style*=";color: #16233f" i],[style*="; color:#16233f" i],[style*="; color: #16233f" i],[style^="color:#16233f" i],[style^="color: #16233f" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#16264c" i],[style*=";color: #16264c" i],[style*="; color:#16264c" i],[style*="; color: #16264c" i],[style^="color:#16264c" i],[style^="color: #16264c" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#164f31" i],[style*=";color: #164f31" i],[style*="; color:#164f31" i],[style*="; color: #164f31" i],[style^="color:#164f31" i],[style^="color: #164f31" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#166534" i],[style*=";color: #166534" i],[style*="; color:#166534" i],[style*="; color: #166534" i],[style^="color:#166534" i],[style^="color: #166534" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#16a34a" i],[style*=";color: #16a34a" i],[style*="; color:#16a34a" i],[style*="; color: #16a34a" i],[style^="color:#16a34a" i],[style^="color: #16a34a" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#18264a" i],[style*=";color: #18264a" i],[style*="; color:#18264a" i],[style*="; color: #18264a" i],[style^="color:#18264a" i],[style^="color: #18264a" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#18294f" i],[style*=";color: #18294f" i],[style*="; color:#18294f" i],[style*="; color: #18294f" i],[style^="color:#18294f" i],[style^="color: #18294f" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1d4ed8" i],[style*=";color: #1d4ed8" i],[style*="; color:#1d4ed8" i],[style*="; color: #1d4ed8" i],[style^="color:#1d4ed8" i],[style^="color: #1d4ed8" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1e293b" i],[style*=";color: #1e293b" i],[style*="; color:#1e293b" i],[style*="; color: #1e293b" i],[style^="color:#1e293b" i],[style^="color: #1e293b" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1e3a8a" i],[style*=";color: #1e3a8a" i],[style*="; color:#1e3a8a" i],[style*="; color: #1e3a8a" i],[style^="color:#1e3a8a" i],[style^="color: #1e3a8a" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1e40af" i],[style*=";color: #1e40af" i],[style*="; color:#1e40af" i],[style*="; color: #1e40af" i],[style^="color:#1e40af" i],[style^="color: #1e40af" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1f2937" i],[style*=";color: #1f2937" i],[style*="; color:#1f2937" i],[style*="; color: #1f2937" i],[style^="color:#1f2937" i],[style^="color: #1f2937" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1f5fa6" i],[style*=";color: #1f5fa6" i],[style*="; color:#1f5fa6" i],[style*="; color: #1f5fa6" i],[style^="color:#1f5fa6" i],[style^="color: #1f5fa6" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#1f6f49" i],[style*=";color: #1f6f49" i],[style*="; color:#1f6f49" i],[style*="; color: #1f6f49" i],[style^="color:#1f6f49" i],[style^="color: #1f6f49" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#246b9c" i],[style*=";color: #246b9c" i],[style*="; color:#246b9c" i],[style*="; color: #246b9c" i],[style^="color:#246b9c" i],[style^="color: #246b9c" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#27407a" i],[style*=";color: #27407a" i],[style*="; color:#27407a" i],[style*="; color: #27407a" i],[style^="color:#27407a" i],[style^="color: #27407a" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#28623f" i],[style*=";color: #28623f" i],[style*="; color:#28623f" i],[style*="; color: #28623f" i],[style^="color:#28623f" i],[style^="color: #28623f" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#2e7d4f" i],[style*=";color: #2e7d4f" i],[style*="; color:#2e7d4f" i],[style*="; color: #2e7d4f" i],[style^="color:#2e7d4f" i],[style^="color: #2e7d4f" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#3730a3" i],[style*=";color: #3730a3" i],[style*="; color:#3730a3" i],[style*="; color: #3730a3" i],[style^="color:#3730a3" i],[style^="color: #3730a3" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#374151" i],[style*=";color: #374151" i],[style*="; color:#374151" i],[style*="; color: #374151" i],[style^="color:#374151" i],[style^="color: #374151" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#3a414b" i],[style*=";color: #3a414b" i],[style*="; color:#3a414b" i],[style*="; color: #3a414b" i],[style^="color:#3a414b" i],[style^="color: #3a414b" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#4338ca" i],[style*=";color: #4338ca" i],[style*="; color:#4338ca" i],[style*="; color: #4338ca" i],[style^="color:#4338ca" i],[style^="color: #4338ca" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#475569" i],[style*=";color: #475569" i],[style*="; color:#475569" i],[style*="; color: #475569" i],[style^="color:#475569" i],[style^="color: #475569" i]){color:var(--d-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#4a9e6d" i],[style*=";color: #4a9e6d" i],[style*="; color:#4a9e6d" i],[style*="; color: #4a9e6d" i],[style^="color:#4a9e6d" i],[style^="color: #4a9e6d" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#52627f" i],[style*=";color: #52627f" i],[style*="; color:#52627f" i],[style*="; color: #52627f" i],[style^="color:#52627f" i],[style^="color: #52627f" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5a5f68" i],[style*=";color: #5a5f68" i],[style*="; color:#5a5f68" i],[style*="; color: #5a5f68" i],[style^="color:#5a5f68" i],[style^="color: #5a5f68" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5b21b6" i],[style*=";color: #5b21b6" i],[style*="; color:#5b21b6" i],[style*="; color: #5b21b6" i],[style^="color:#5b21b6" i],[style^="color: #5b21b6" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5b3a00" i],[style*=";color: #5b3a00" i],[style*="; color:#5b3a00" i],[style*="; color: #5b3a00" i],[style^="color:#5b3a00" i],[style^="color: #5b3a00" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5b636e" i],[style*=";color: #5b636e" i],[style*="; color:#5b636e" i],[style*="; color: #5b636e" i],[style^="color:#5b636e" i],[style^="color: #5b636e" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5b6b7b" i],[style*=";color: #5b6b7b" i],[style*="; color:#5b6b7b" i],[style*="; color: #5b6b7b" i],[style^="color:#5b6b7b" i],[style^="color: #5b6b7b" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5c6470" i],[style*=";color: #5c6470" i],[style*="; color:#5c6470" i],[style*="; color: #5c6470" i],[style^="color:#5c6470" i],[style^="color: #5c6470" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#5c6879" i],[style*=";color: #5c6879" i],[style*="; color:#5c6879" i],[style*="; color: #5c6879" i],[style^="color:#5c6879" i],[style^="color: #5c6879" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#6366f1" i],[style*=";color: #6366f1" i],[style*="; color:#6366f1" i],[style*="; color: #6366f1" i],[style^="color:#6366f1" i],[style^="color: #6366f1" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#65a30d" i],[style*=";color: #65a30d" i],[style*="; color:#65a30d" i],[style*="; color: #65a30d" i],[style^="color:#65a30d" i],[style^="color: #65a30d" i]){color:var(--d-ok-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#667085" i],[style*=";color: #667085" i],[style*="; color:#667085" i],[style*="; color: #667085" i],[style^="color:#667085" i],[style^="color: #667085" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#6b7280" i],[style*=";color: #6b7280" i],[style*="; color:#6b7280" i],[style*="; color: #6b7280" i],[style^="color:#6b7280" i],[style^="color: #6b7280" i]){color:var(--d-text-2)!important}
html[data-cos-theme="dark"] :is([style*=";color:#6d28d9" i],[style*=";color: #6d28d9" i],[style*="; color:#6d28d9" i],[style*="; color: #6d28d9" i],[style^="color:#6d28d9" i],[style^="color: #6d28d9" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#76520a" i],[style*=";color: #76520a" i],[style*="; color:#76520a" i],[style*="; color: #76520a" i],[style^="color:#76520a" i],[style^="color: #76520a" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#78350f" i],[style*=";color: #78350f" i],[style*="; color:#78350f" i],[style*="; color: #78350f" i],[style^="color:#78350f" i],[style^="color: #78350f" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7a4a00" i],[style*=";color: #7a4a00" i],[style*="; color:#7a4a00" i],[style*="; color: #7a4a00" i],[style^="color:#7a4a00" i],[style^="color: #7a4a00" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7a5a12" i],[style*=";color: #7a5a12" i],[style*="; color:#7a5a12" i],[style*="; color: #7a5a12" i],[style^="color:#7a5a12" i],[style^="color: #7a5a12" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7a7f88" i],[style*=";color: #7a7f88" i],[style*="; color:#7a7f88" i],[style*="; color: #7a7f88" i],[style^="color:#7a7f88" i],[style^="color: #7a7f88" i]){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7a8088" i],[style*=";color: #7a8088" i],[style*="; color:#7a8088" i],[style*="; color: #7a8088" i],[style^="color:#7a8088" i],[style^="color: #7a8088" i]){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7c2d12" i],[style*=";color: #7c2d12" i],[style*="; color:#7c2d12" i],[style*="; color: #7c2d12" i],[style^="color:#7c2d12" i],[style^="color: #7c2d12" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7c3aed" i],[style*=";color: #7c3aed" i],[style*="; color:#7c3aed" i],[style*="; color: #7c3aed" i],[style^="color:#7c3aed" i],[style^="color: #7c3aed" i]){color:var(--d-info)!important}
html[data-cos-theme="dark"] :is([style*=";color:#7f1d1d" i],[style*=";color: #7f1d1d" i],[style*="; color:#7f1d1d" i],[style*="; color: #7f1d1d" i],[style^="color:#7f1d1d" i],[style^="color: #7f1d1d" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#854f0b" i],[style*=";color: #854f0b" i],[style*="; color:#854f0b" i],[style*="; color: #854f0b" i],[style^="color:#854f0b" i],[style^="color: #854f0b" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#86efac" i]){border-color:var(--d-ok-line)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a4d1f" i],[style*=";color: #8a4d1f" i],[style*="; color:#8a4d1f" i],[style*="; color: #8a4d1f" i],[style^="color:#8a4d1f" i],[style^="color: #8a4d1f" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a5a00" i],[style*=";color: #8a5a00" i],[style*="; color:#8a5a00" i],[style*="; color: #8a5a00" i],[style^="color:#8a5a00" i],[style^="color: #8a5a00" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a5d08" i],[style*=";color: #8a5d08" i],[style*="; color:#8a5d08" i],[style*="; color: #8a5d08" i],[style^="color:#8a5d08" i],[style^="color: #8a5d08" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a611a" i],[style*=";color: #8a611a" i],[style*="; color:#8a611a" i],[style*="; color: #8a611a" i],[style^="color:#8a611a" i],[style^="color: #8a611a" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a6314" i],[style*=";color: #8a6314" i],[style*="; color:#8a6314" i],[style*="; color: #8a6314" i],[style^="color:#8a6314" i],[style^="color: #8a6314" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a6a24" i],[style*=";color: #8a6a24" i],[style*="; color:#8a6a24" i],[style*="; color: #8a6a24" i],[style^="color:#8a6a24" i],[style^="color: #8a6a24" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a8e96" i],[style*=";color: #8a8e96" i],[style*="; color:#8a8e96" i],[style*="; color: #8a8e96" i],[style^="color:#8a8e96" i],[style^="color: #8a8e96" i]){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] :is([style*=";color:#8a929c" i],[style*=";color: #8a929c" i],[style*="; color:#8a929c" i],[style*="; color: #8a929c" i],[style^="color:#8a929c" i],[style^="color: #8a929c" i]){color:var(--d-text-3)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#8ed7ad" i]){border-color:var(--d-ok-line)!important}
html[data-cos-theme="dark"] :is([style*=";color:#92400e" i],[style*=";color: #92400e" i],[style*="; color:#92400e" i],[style*="; color: #92400e" i],[style^="color:#92400e" i],[style^="color: #92400e" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#991b1b" i],[style*=";color: #991b1b" i],[style*="; color:#991b1b" i],[style*="; color: #991b1b" i],[style^="color:#991b1b" i],[style^="color: #991b1b" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#9a3b2c" i],[style*=";color: #9a3b2c" i],[style*="; color:#9a3b2c" i],[style*="; color: #9a3b2c" i],[style^="color:#9a3b2c" i],[style^="color: #9a3b2c" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#9a6b00" i],[style*=";color: #9a6b00" i],[style*="; color:#9a6b00" i],[style*="; color: #9a6b00" i],[style^="color:#9a6b00" i],[style^="color: #9a6b00" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#9a7320" i],[style*=";color: #9a7320" i],[style*="; color:#9a7320" i],[style*="; color: #9a7320" i],[style^="color:#9a7320" i],[style^="color: #9a7320" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#9c2f2f" i],[style*=";color: #9c2f2f" i],[style*="; color:#9c2f2f" i],[style*="; color: #9c2f2f" i],[style^="color:#9c2f2f" i],[style^="color: #9c2f2f" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#a16207" i],[style*=";color: #a16207" i],[style*="; color:#a16207" i],[style*="; color: #a16207" i],[style^="color:#a16207" i],[style^="color: #a16207" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#a43028" i],[style*=";color: #a43028" i],[style*="; color:#a43028" i],[style*="; color: #a43028" i],[style^="color:#a43028" i],[style^="color: #a43028" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#b14444" i],[style*=";color: #b14444" i],[style*="; color:#b14444" i],[style*="; color: #b14444" i],[style^="color:#b14444" i],[style^="color: #b14444" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#b3261e" i],[style*=";color: #b3261e" i],[style*="; color:#b3261e" i],[style*="; color: #b3261e" i],[style^="color:#b3261e" i],[style^="color: #b3261e" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#b3431f" i],[style*=";color: #b3431f" i],[style*="; color:#b3431f" i],[style*="; color: #b3431f" i],[style^="color:#b3431f" i],[style^="color: #b3431f" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#b45309" i],[style*=";color: #b45309" i],[style*="; color:#b45309" i],[style*="; color: #b45309" i],[style^="color:#b45309" i],[style^="color: #b45309" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#b91c1c" i],[style*=";color: #b91c1c" i],[style*="; color:#b91c1c" i],[style*="; color: #b91c1c" i],[style^="color:#b91c1c" i],[style^="color: #b91c1c" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*=";color:#ba7517" i],[style*=";color: #ba7517" i],[style*="; color:#ba7517" i],[style*="; color: #ba7517" i],[style^="color:#ba7517" i],[style^="color: #ba7517" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*=";color:#be851a" i],[style*=";color: #be851a" i],[style*="; color:#be851a" i],[style*="; color: #be851a" i],[style^="color:#be851a" i],[style^="color: #be851a" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#bfdbfe" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*=";color:#c0392b" i],[style*=";color: #c0392b" i],[style*="; color:#c0392b" i],[style*="; color: #c0392b" i],[style^="color:#c0392b" i],[style^="color: #c0392b" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#c7d2fe" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#c9d2df" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#cbd3df" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#cbd5e1" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#cfe0f0" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#d8d2c7" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*=";color:#d97706" i],[style*=";color: #d97706" i],[style*="; color:#d97706" i],[style*="; color: #d97706" i],[style^="color:#d97706" i],[style^="color: #d97706" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#d9c9a6" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#d9d4cc" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#d9dde5" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#d9e0ee" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="background:#dbeafe" i],[style*="background: #dbeafe" i],[style*="background-color:#dbeafe" i],[style*="background-color: #dbeafe" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*=";color:#dc2626" i],[style*=";color: #dc2626" i],[style*="; color:#dc2626" i],[style*="; color: #dc2626" i],[style^="color:#dc2626" i],[style^="color: #dc2626" i]){color:var(--d-danger-text)!important}
html[data-cos-theme="dark"] :is([style*="background:#dcfce7" i],[style*="background: #dcfce7" i],[style*="background-color:#dcfce7" i],[style*="background-color: #dcfce7" i]){background-color:var(--d-ok-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#dfe3ea" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#e0e0e0" i],[style*="background: #e0e0e0" i],[style*="background-color:#e0e0e0" i],[style*="background-color: #e0e0e0" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e0e6f0" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*="background:#e0e7ff" i],[style*="background: #e0e7ff" i],[style*="background-color:#e0e7ff" i],[style*="background-color: #e0e7ff" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#e0f2fe" i],[style*="background: #e0f2fe" i],[style*="background-color:#e0f2fe" i],[style*="background-color: #e0f2fe" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e2e5ea" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e3c77a" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e3e6ea" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e3e6ee" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#e5e7eb" i],[style*="background: #e5e7eb" i],[style*="background-color:#e5e7eb" i],[style*="background-color: #e5e7eb" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e5e7eb" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e6d2d2" i]){border-color:var(--d-danger-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e6e2db" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#e6f1fb" i],[style*="background: #e6f1fb" i],[style*="background-color:#e6f1fb" i],[style*="background-color: #e6f1fb" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#e7f0fa" i],[style*="background: #e7f0fa" i],[style*="background-color:#e7f0fa" i],[style*="background-color: #e7f0fa" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e8d39a" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e8ecf5" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#e8f1f8" i],[style*="background: #e8f1f8" i],[style*="background-color:#e8f1f8" i],[style*="background-color: #e8f1f8" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#e9d5ff" i]){border-color:var(--d-line-strong)!important}
html[data-cos-theme="dark"] :is([style*=";color:#ea580c" i],[style*=";color: #ea580c" i],[style*="; color:#ea580c" i],[style*="; color: #ea580c" i],[style^="color:#ea580c" i],[style^="color: #ea580c" i]){color:var(--d-accent)!important}
html[data-cos-theme="dark"] :is([style*="background:#eaf5ee" i],[style*="background: #eaf5ee" i],[style*="background-color:#eaf5ee" i],[style*="background-color: #eaf5ee" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#ece8e1" i],[style*="background: #ece8e1" i],[style*="background-color:#ece8e1" i],[style*="background-color: #ece8e1" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#eceef1" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#eceff1" i],[style*="background: #eceff1" i],[style*="background-color:#eceff1" i],[style*="background-color: #eceff1" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#ede9fe" i],[style*="background: #ede9fe" i],[style*="background-color:#ede9fe" i],[style*="background-color: #ede9fe" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#eeedfe" i],[style*="background: #eeedfe" i],[style*="background-color:#eeedfe" i],[style*="background-color: #eeedfe" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#eef2ff" i],[style*="background: #eef2ff" i],[style*="background-color:#eef2ff" i],[style*="background-color: #eef2ff" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#efece6" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#eff6ff" i],[style*="background: #eff6ff" i],[style*="background-color:#eff6ff" i],[style*="background-color: #eff6ff" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f0d2d2" i]){border-color:var(--d-danger-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f0e4c4" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f0f0f0" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#f0f4ff" i],[style*="background: #f0f4ff" i],[style*="background-color:#f0f4ff" i],[style*="background-color: #f0f4ff" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#f0f9ff" i],[style*="background: #f0f9ff" i],[style*="background-color:#f0f9ff" i],[style*="background-color: #f0f9ff" i]){background-color:var(--d-info-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#f0fdf4" i],[style*="background: #f0fdf4" i],[style*="background-color:#f0fdf4" i],[style*="background-color: #f0fdf4" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f2f3f5" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f3d99a" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#f3e8ff" i],[style*="background: #f3e8ff" i],[style*="background-color:#f3e8ff" i],[style*="background-color: #f3e8ff" i]){background-color:var(--d-selected)!important}
html[data-cos-theme="dark"] :is([style*="background:#f3ebd2" i],[style*="background: #f3ebd2" i],[style*="background-color:#f3ebd2" i],[style*="background-color: #f3ebd2" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f3ebd2" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f3f0ea" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#f3f4f6" i],[style*="background: #f3f4f6" i],[style*="background-color:#f3f4f6" i],[style*="background-color: #f3f4f6" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#f3f4f6" i]){border-color:var(--d-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#f3f6ff" i],[style*="background: #f3f6ff" i],[style*="background-color:#f3f6ff" i],[style*="background-color: #f3f6ff" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#f5f3ef" i],[style*="background: #f5f3ef" i],[style*="background-color:#f5f3ef" i],[style*="background-color: #f5f3ef" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#f5f5f5" i],[style*="background: #f5f5f5" i],[style*="background-color:#f5f5f5" i],[style*="background-color: #f5f5f5" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#f5f7fc" i],[style*="background: #f5f7fc" i],[style*="background-color:#f5f7fc" i],[style*="background-color: #f5f7fc" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#f9fafb" i],[style*="background: #f9fafb" i],[style*="background-color:#f9fafb" i],[style*="background-color: #f9fafb" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#faeeda" i],[style*="background: #faeeda" i],[style*="background-color:#faeeda" i],[style*="background-color: #faeeda" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#faf5ff" i],[style*="background: #faf5ff" i],[style*="background-color:#faf5ff" i],[style*="background-color: #faf5ff" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#faf6ea" i],[style*="background: #faf6ea" i],[style*="background-color:#faf6ea" i],[style*="background-color: #faf6ea" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fafafa" i],[style*="background: #fafafa" i],[style*="background-color:#fafafa" i],[style*="background-color: #fafafa" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#fbbf24" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbe3e0" i],[style*="background: #fbe3e0" i],[style*="background-color:#fbe3e0" i],[style*="background-color: #fbe3e0" i]){background-color:var(--d-danger-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbeaea" i],[style*="background: #fbeaea" i],[style*="background-color:#fbeaea" i],[style*="background-color: #fbeaea" i]){background-color:var(--d-danger-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbf1dc" i],[style*="background: #fbf1dc" i],[style*="background-color:#fbf1dc" i],[style*="background-color: #fbf1dc" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbf3e2" i],[style*="background: #fbf3e2" i],[style*="background-color:#fbf3e2" i],[style*="background-color: #fbf3e2" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbf4e4" i],[style*="background: #fbf4e4" i],[style*="background-color:#fbf4e4" i],[style*="background-color: #fbf4e4" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbfbfd" i],[style*="background: #fbfbfd" i],[style*="background-color:#fbfbfd" i],[style*="background-color: #fbfbfd" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#fbfcfd" i],[style*="background: #fbfcfd" i],[style*="background-color:#fbfcfd" i],[style*="background-color: #fbfcfd" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#fcd34d" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#fce7f3" i],[style*="background: #fce7f3" i],[style*="background-color:#fce7f3" i],[style*="background-color: #fce7f3" i]){background-color:var(--d-selected)!important}
html[data-cos-theme="dark"] :is([style*="background:#fcf7ee" i],[style*="background: #fcf7ee" i],[style*="background-color:#fcf7ee" i],[style*="background-color: #fcf7ee" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fde68a" i],[style*="background: #fde68a" i],[style*="background-color:#fde68a" i],[style*="background-color: #fde68a" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#fde68a" i]){border-color:var(--d-accent-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#fdecea" i],[style*="background: #fdecea" i],[style*="background-color:#fdecea" i],[style*="background-color: #fdecea" i]){background-color:var(--d-danger-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fdf0d5" i],[style*="background: #fdf0d5" i],[style*="background-color:#fdf0d5" i],[style*="background-color: #fdf0d5" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fdf6f6" i],[style*="background: #fdf6f6" i],[style*="background-color:#fdf6f6" i],[style*="background-color: #fdf6f6" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="border" i][style*="#fecaca" i]){border-color:var(--d-danger-line)!important}
html[data-cos-theme="dark"] :is([style*="background:#fee2e2" i],[style*="background: #fee2e2" i],[style*="background-color:#fee2e2" i],[style*="background-color: #fee2e2" i]){background-color:var(--d-danger-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fef2f2" i],[style*="background: #fef2f2" i],[style*="background-color:#fef2f2" i],[style*="background-color: #fef2f2" i]){background-color:var(--d-surface)!important}
html[data-cos-theme="dark"] :is([style*="background:#fef3c7" i],[style*="background: #fef3c7" i],[style*="background-color:#fef3c7" i],[style*="background-color: #fef3c7" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff3cd" i],[style*="background: #fff3cd" i],[style*="background-color:#fff3cd" i],[style*="background-color: #fff3cd" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff3e0" i],[style*="background: #fff3e0" i],[style*="background-color:#fff3e0" i],[style*="background-color: #fff3e0" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff4d6" i],[style*="background: #fff4d6" i],[style*="background-color:#fff4d6" i],[style*="background-color: #fff4d6" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff7ed" i],[style*="background: #fff7ed" i],[style*="background-color:#fff7ed" i],[style*="background-color: #fff7ed" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff8e1" i],[style*="background: #fff8e1" i],[style*="background-color:#fff8e1" i],[style*="background-color: #fff8e1" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff8e5" i],[style*="background: #fff8e5" i],[style*="background-color:#fff8e5" i],[style*="background-color: #fff8e5" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fff9eb" i],[style*="background: #fff9eb" i],[style*="background-color:#fff9eb" i],[style*="background-color: #fff9eb" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fffbeb" i],[style*="background: #fffbeb" i],[style*="background-color:#fffbeb" i],[style*="background-color: #fffbeb" i]){background-color:var(--d-warn-bg)!important}
html[data-cos-theme="dark"] :is([style*="background:#fffdf5" i],[style*="background: #fffdf5" i],[style*="background-color:#fffdf5" i],[style*="background-color: #fffdf5" i]){background-color:var(--d-surface)!important}

/* 2026-10-07: quiet selection, continuous search surface and shared menus. */
:is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search){--search-fill:#eaebed;background:var(--search-fill)!important;box-shadow:none!important;border-color:transparent!important}
html[data-cos-theme="dark"] :is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search){--search-fill:#353535}
:is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search) > :is(input,i,kbd,svg){background:transparent!important;box-shadow:none!important;border:0!important;color:var(--cos-text-2)!important}
:is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search) input:focus{outline:0}
:is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search):has(input:focus-visible){outline:1px solid var(--cos-text-3);outline-offset:2px}
html[data-cos-theme] select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;min-height:38px;padding:8px 36px 8px 12px;border:1px solid var(--cos-border);border-radius:11px;background-color:var(--cos-surface-3);color:var(--cos-text);font:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;cursor:pointer;transition:border-color 140ms ease}
html[data-cos-theme] select:focus-visible{outline:2px solid var(--cos-text-3);outline-offset:2px}
html[data-cos-theme] :is(.dropdown-menu,.popover,.cos-dropdown,.vs-menu-dropdown){border:1px solid var(--cos-border);border-radius:14px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.15)}
html[data-cos-theme] :is(.dropdown-menu,.popover,.cos-dropdown,.vs-menu-dropdown) :is(button,[role="option"],[role="menuitem"]){border-radius:8px}

/* Kompakter Einstieg; die drei Darstellungsmodi stehen erst im Menue. */
.courtos-theme-tools{display:flex;align-items:center;flex:none;margin-left:auto;padding:0;z-index:901}
body>.courtos-theme-tools{position:fixed;right:12px;top:10px;background:transparent}
.courtos-theme-switch{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid var(--d-line,#d8d8d8);border-radius:10px;background:var(--d-surface,#fff);color:var(--d-text,#202020);cursor:pointer}
.courtos-theme-switch svg{display:block;width:18px;height:18px}
.courtos-theme-switch:hover,.courtos-theme-switch[aria-expanded="true"]{background:var(--d-hover,#e4e4e4)}
.courtos-theme-switch:focus-visible,.courtos-theme-menu button:focus-visible{outline:2px solid var(--d-text-2,#555);outline-offset:2px}
.courtos-theme-menu{box-sizing:border-box;position:fixed;z-index:2000;display:flex;flex-direction:column;gap:4px;width:180px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;margin:0;padding:6px;border:1px solid var(--d-line,#d8d8d8);border-radius:12px;background:var(--d-surface,#fff);color:var(--d-text,#202020);box-shadow:0 8px 24px rgba(0,0,0,.16)}
.courtos-theme-menu[hidden]{display:none!important}
.courtos-theme-menu .courtos-theme-control__option{min-height:40px;padding:10px 12px;text-align:left;font:500 13px/1.4 system-ui;color:var(--d-text,#202020);background:transparent}
.courtos-theme-menu .courtos-theme-control__option:hover{background:var(--d-hover,#e4e4e4);box-shadow:none}
.courtos-theme-menu .courtos-theme-control__option[aria-checked="true"]{background:var(--d-selected,#dedede);color:var(--d-text,#202020);font-weight:650}
.trainer-tabchrome>.trainer-tabbar{flex:1;min-width:0}

/* White work surfaces are intentionally bounded; surrounding chrome stays dark. */
html[data-cos-theme="dark"] :is(#vs-app,body[data-courtos-module="anzeigetafel"] .rail,.chat-list__scroll,.rp-score){
 --d-surface:#fff;--d-canvas:#f5f5f5;--d-raised:#ededed;--d-hover:#e4e4e4;--d-selected:#dedede;--d-text:#202020;--d-text-strong:#111;--d-text-2:#555;--d-text-3:#626262;--d-line:#d8d8d8;--d-line-soft:#e5e5e5;--d-primary:#202020;--d-on-primary:#fff;
 --cos-surface:#fff;--cos-surface-2:#f5f5f5;--cos-surface-3:#ededed;--cos-paper:#fff;--cos-text:#202020;--cos-text-2:#555;--cos-text-3:#626262;--cos-ink:#202020;--cos-brand:#16264c;--cos-brand-strong:#16264c;--cos-on-brand:#fff;--cos-border:#d8d8d8;
 --chat-muted:#555;--chat-navy:#203962;background:#fff!important;color:#202020!important;color-scheme:light;
}
html[data-cos-theme="dark"]:has(#vs-app) body{background:#000!important}
html[data-cos-theme="dark"] #vs-app :is(input,select,textarea){color-scheme:light}
html[data-cos-theme="dark"] :is(#view2d,#viewWhite){background:#fff!important;color:#202020}
html[data-cos-theme="dark"] :is(body[data-courtos-module="coachboard"],body:has(.cb-decision,.cb-ux-focus)) :is(.ck-card,.cp-card,.cb-decision,.cb-decision__card,.card){color:var(--d-text);background:var(--d-surface);border-color:var(--d-line)}
html[data-cos-theme="dark"] :is(body[data-courtos-module="coachboard"],body:has(.cb-decision,.cb-ux-focus)) :is(h1,h2,h3,h4,strong,label){color:var(--d-text)}
html[data-cos-theme="dark"] :is(body[data-courtos-module="coachboard"],body:has(.cb-decision,.cb-ux-focus)) :is(.muted,.subtitle,.kicker){color:var(--d-text-2)}
/* Guide and legal chrome no longer consume any app-space. */
:is(.trainer-tabshell,.courtos-v2) :is(.cos-guide-navicon,#courtos-guide-root,#trainerShellGuideNavIcon){display:none!important}
html:has(body.trainer-tabshell){--courtos-legal-height:0px}

html[data-cos-theme="dark"] .rp-score{padding:16px;border:1px solid #d8d8d8;border-radius:12px}
@supports (appearance:base-select){
 html[data-cos-theme] select:not([multiple]):not([size]),html[data-cos-theme] select:not([multiple]):not([size])::picker(select){appearance:base-select}
 html[data-cos-theme] select::picker(select){margin-top:6px;padding:6px;border:1px solid var(--cos-border);border-radius:12px;background:var(--cos-surface);color:var(--cos-text);box-shadow:0 12px 32px rgba(0,0,0,.18)}
 html[data-cos-theme] select option{padding:9px 12px;border-radius:7px;gap:8px}
 html[data-cos-theme] select option:is(:hover,:focus,:checked){background:var(--cos-surface-3);color:var(--cos-text)}
 html[data-cos-theme] select::picker-icon{display:none}
}

/* Adapted switch-button effect: MIT License

Copyright (c) 2025 kokonutUI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
 */

/* The Scout hub draws its topbar inside the frame; keep the global control aligned with it. */
html.workspace-scout-active body>.courtos-theme-tools{right:12px;top:10px;background:transparent}
html[data-cos-theme] :is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search) > :is(input,i,kbd,svg){background:transparent!important;box-shadow:none!important;border:0!important;color:var(--cos-text-2)!important}

/* Rebind legacy aliases at each light island: inherited aliases were already
   resolved to the dark root palette and otherwise produced white-on-white. */
html[data-cos-theme="dark"] :is(#vs-app,body[data-courtos-module="anzeigetafel"] .rail,.chat-list__scroll,.rp-score){
 --tx:#202020;--tx2:#555;--tx3:#626262;--fg:#202020;--mut-fg:#555;--muted:#555;--ink:#202020;--ink-2:#303030;--graphite:#555;--graphite-2:#626262;
 --paper:#fff;--bg:#f5f5f5;--card:#fff;--vs-bg:#f5f5f5;--vs-card:#fff;--bd:#d8d8d8;--line:#d8d8d8;--H:#16264c;
 --cos-ink-2:#303030;--cos-brand-700:#203962;--cos-brand-rgb:22,38,76;
 --d-danger-text:#842b18;--d-danger-bg:#f5e8e3;--d-danger:#b83232;--d-ok-text:#246446;--d-ok-bg:#e6f2eb;--d-warn-bg:#fff6e0;--d-accent:#8a611a;
}
html[data-cos-theme="dark"] #vs-app :is(.sb-sz,.sb-se,.btn,.legend,.idle-msg){color:var(--tx)}
html[data-cos-theme="dark"] #vs-app :is(.sb-g,.sp-G){--tx:#7c2d12}
html[data-cos-theme="dark"] #vs-app .pdot[style*="cursor:default"] .pj{color:#202020!important}
html.workspace-scout-inherited-rail .cos-head-actions{padding-right:160px}

html[data-cos-theme="dark"] .cos-body:has(#vs-app:not(.vs-mod-hidden)){
  background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.035),transparent 65%),#171717!important;
}
html[data-cos-theme] input[type="search"]{background:#eaebed!important;color:var(--cos-text)!important;box-shadow:none!important}
html[data-cos-theme="dark"] input[type="search"]{background:#353535!important}
html[data-cos-theme] :is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search) input[type="search"]{background:transparent!important}

@media print{.courtos-theme-tools,.courtos-theme-menu{display:none!important}}
@media(max-width:600px){html.workspace-scout-inherited-rail .cos-head-actions{padding-right:96px}}

/* Kader uses underline navigation in both themes, not filled segment buttons. */
html[data-cos-theme="dark"] #krApp .kr-tabs button.is-active{
  background:transparent!important;
  color:var(--d-text-strong)!important;
  border-color:transparent!important;
}
html[data-cos-theme="dark"] #krApp .kr-tabs button.is-active::after{
  background:currentColor;
}

/* Radar team picker: one compact control; keep the native accessible select. */
html[data-cos-theme] .rn-team-field{
  height:54px;
  padding:6px 12px;
  gap:12px;
  box-shadow:none;
}
html[data-cos-theme] .rn-team-field select{
  flex:1;
  min-width:0;
  width:auto;
  height:40px;
  min-height:40px;
  padding:0 38px 0 14px;
  border:1px solid var(--cos-border);
  border-radius:10px;
  background-color:var(--cos-surface-3);
  color:var(--cos-text);
  font-size:14px;
  font-weight:600;
  transition:border-color 140ms ease,background-color 140ms ease;
}
html[data-cos-theme] .rn-team-field select:hover{border-color:var(--cos-text-3)}
html[data-cos-theme] .rn-team-field select:focus-visible{
  outline:2px solid var(--cos-text-3);
  outline-offset:2px;
}
html[data-cos-theme] .rn-team-field .rn-field-lab{flex-shrink:0}

/* Radar's light workspace needs dark copy even when the hub is dark. */
html[data-cos-theme="dark"] body[data-courtos-module="radar"] :is(.re-h1,.radar-section-head h1,.radar-section-head p,.re-sess-date){
  color:#202020!important;
  -webkit-text-fill-color:currentColor;
}
html[data-cos-theme="dark"] body[data-courtos-module="radar"] :is(#auswertung-content,#teamanalyse-content)>div[style*="text-align:center"]{
  color:#202020!important;
}
html[data-cos-theme="dark"] body[data-courtos-module="radar"] .re-pill{
  background:#f5f5f5;
  border-color:#d8d8d8;
  color:#202020;
}
html[data-cos-theme="dark"] body[data-courtos-module="radar"] .re-pill .nm{
  color:#202020!important;
}
html[data-cos-theme="dark"] body[data-courtos-module="radar"] .re-pill.on{
  background:#fff;
  border-color:#777;
}
html[data-cos-theme="dark"] body[data-courtos-module="radar"] .re-pill:hover{border-color:#555}
body[data-courtos-module="radar"] .save-btn{
  min-height:42px;
  padding:11px 18px;
  border:1px solid #202020;
  border-radius:12px;
  background:#202020;
  color:#fff;
  font-size:14px;
  font-weight:600;
  box-shadow:none;
  transition:background-color 140ms ease,border-color 140ms ease;
}
body[data-courtos-module="radar"] .save-btn:not(:disabled):hover{background:#353535;border-color:#353535}
body[data-courtos-module="radar"] .save-btn:focus-visible{outline:2px solid #888;outline-offset:3px}
body[data-courtos-module="radar"] .save-btn--ghost:not(:disabled):hover{background:var(--bg3);border-color:var(--text2)}

/* Replay help: restrained dialog, clear reading rhythm and compact controls. */
#help{background:rgba(0,0,0,.5);backdrop-filter:blur(5px)}
#help .box{
  box-sizing:border-box;
  max-width:620px;
  max-height:calc(100dvh - 40px);
  overflow:auto;
  padding:28px;
  border:1px solid var(--cos-border,#e0e0e0);
  border-radius:20px;
  background:var(--cos-surface,#fff);
  color:var(--cos-text,#202020);
  box-shadow:0 20px 64px rgba(0,0,0,.22);
}
.replay-help-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px}
.replay-help-eyebrow{display:block;margin-bottom:8px;font-size:10px;font-weight:650;letter-spacing:.12em;color:var(--cos-text-2,#626262)}
#help h3{margin:0;font-size:24px;line-height:1.25}
#help p{font-size:14px;line-height:1.6;color:var(--cos-text-2,#626262);margin-bottom:20px}
#help .close-x{float:none;display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid var(--cos-border,#ddd);border-radius:10px;background:transparent;color:var(--cos-text,#202020);font-size:16px}
#help .close-x:hover{background:var(--cos-surface-3,#eee)}
#help .close-x:focus-visible{outline:2px solid var(--cos-text-3,#888);outline-offset:3px}
#help td{padding:12px 0;border-color:var(--cos-border,#ddd);line-height:1.5;font-size:13px}
#help td:first-child{width:120px;padding-right:20px}
#help kbd{display:inline-block;background:var(--cos-surface-3,#eee);border:1px solid var(--cos-border,#ddd);color:var(--cos-text,#202020);padding:1px 5px;border-radius:5px;font-size:11px}
@media(max-width:480px){#help .box{padding:20px;border-radius:16px}#help td:first-child{width:86px;padding-right:12px}}

/* Replay error toast: no layout jump and a quiet slide/fade in both directions. */
body[data-courtos-module="replay"] #errBox{
  position:fixed;
  top:78px;
  left:50%;
  z-index:220;
  display:flex;
  align-items:flex-start;
  gap:12px;
  width:max-content;
  max-width:min(560px,calc(100vw - 32px));
  box-sizing:border-box;
  margin:0;
  padding:14px 16px;
  border:1px solid var(--d-danger,#c85454);
  border-radius:14px;
  background:var(--cos-surface,#fff);
  color:var(--d-danger-text,#9c2f2f);
  font-size:13px;
  line-height:1.5;
  box-shadow:0 8px 28px rgba(0,0,0,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%,-12px);
  transition:opacity 180ms ease,transform 180ms ease,visibility 180ms;
}
body[data-courtos-module="replay"] #errBox.show{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
#errMessage{flex:1;overflow-wrap:anywhere}
#errClose{flex:none;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
#errClose:hover{background:var(--cos-surface-3,#eee)}
#errClose:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(prefers-reduced-motion:reduce){body[data-courtos-module="replay"] #errBox{transition:none;transform:translate(-50%,0)}}

/* Scoreboard toolbar icons must not keep hard-coded navy strokes in dark mode. */
html[data-cos-theme="dark"] body[data-courtos-module="anzeigetafel"] .topbar .tb-ic{
  color:#fff!important;
}
html[data-cos-theme="dark"] body[data-courtos-module="anzeigetafel"] .topbar .tb-ic svg{
  color:inherit!important;
  stroke:currentColor!important;
}

/* Search shortcuts never wrap, even inside narrow sidebars. */
:is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search) kbd{
  flex:0 0 auto;
  white-space:nowrap;
  width:auto;
  min-width:32px;
  line-height:1.4;
  text-align:center;
}
.chat-search{transition:box-shadow 150ms ease,outline-color 150ms ease}
html[data-cos-theme] .chat-search:has(input:focus-visible){
  outline:1px solid var(--cos-text-3,#888);
  outline-offset:2px;
  box-shadow:none!important;
}
html[data-cos-theme] .chat-search input:focus{outline:none!important;box-shadow:none!important}
.chat-list-state{margin:16px 12px;padding:22px 16px;border:1px solid #dedede;border-radius:14px;background:#f5f5f5;color:#202020;text-align:center}
.chat-list-state>i{display:grid;place-items:center;width:36px;height:36px;margin:0 auto 12px;border-radius:10px;background:#e8e8e8;color:#555;font-size:20px}
.chat-list-state strong{display:block;font-size:13px;line-height:1.4}
.chat-list-state p{margin:8px 0 0;font-size:12px;line-height:1.6;color:#555;overflow-wrap:anywhere}

/* Scout Video: light status chips and handoff card need dark foregrounds. */
html[data-cos-theme="dark"] [data-vr-toggle]>span:first-child{
  color:#202020!important;
  -webkit-text-fill-color:currentColor;
}
html[data-cos-theme="dark"] [data-vr-badge]{color:#303030!important}
html[data-cos-theme="dark"] [data-vr-col3]>section:last-child{
  background:#f5f5f5!important;
  color:#202020!important;
  border:1px solid #d8d8d8;
  box-shadow:none;
}
html[data-cos-theme="dark"] [data-vr-col3]>section:last-child :is(h2,p,label,span,#vrOutStatus){
  color:#202020!important;
  -webkit-text-fill-color:currentColor;
}
html[data-cos-theme="dark"] [data-vr-col3]>section:last-child button{
  color:#202020!important;
  border-color:#bcbcbc!important;
  -webkit-text-fill-color:currentColor;
}
html[data-cos-theme="dark"] [data-vr-col3]>section:last-child button:hover:not(:disabled){background:#e8e8e8!important}
html[data-cos-theme="dark"] [data-vr-col3]>section:last-child button:disabled{opacity:.65;color:#444!important}
html[data-cos-theme="dark"] [data-vr-col3]>section:last-child #vrBtnOpenCode{background:#e0a82e!important}
html[data-cos-theme="dark"] #vrReviewScope{border-color:#d8d8d8!important;background:#ececec!important}

/* CODE header: one solid surface instead of a mixed light/dark gradient. */
html[data-cos-theme="dark"] #dvApp>main>header{
  background:#252525!important;
  background-image:none!important;
  color:#ececec!important;
  border-bottom:1px solid #414141!important;
  box-shadow:none!important;
}
html[data-cos-theme="dark"] #dvApp>main>header :is(.title,.eyebrow){color:#ececec!important}
html[data-cos-theme="dark"] #dvApp>main>header :is(.btn,.cos-hub-btn){
  background:#303030!important;
  color:#ececec!important;
  border-color:#505050!important;
  box-shadow:none!important;
  -webkit-text-fill-color:currentColor;
}
html[data-cos-theme="dark"] #dvApp>main>header :is(.btn,.cos-hub-btn):hover{background:#3c3c3c!important}
html[data-cos-theme="dark"] #dvApp>main>header .btn.pri{background:#e0a82e!important;color:#202020!important;border-color:#e0a82e!important}
html[data-cos-theme="dark"] #dvApp>main>header .steprail .dot{background:#303030!important;color:#ececec!important;border-color:#626262!important}
html[data-cos-theme="dark"] #dvApp>main>header .steprail :is(.dot.on,.dot.done){background:#e0a82e!important;color:#202020!important;border-color:#e0a82e!important;box-shadow:none!important}
html[data-cos-theme="dark"] #dvApp>main>header .steprail .ln{background:#626262!important}
html[data-cos-theme="dark"] #dvApp>main>header svg{color:inherit;stroke:currentColor}

/* Statistics overview: readable context and a compact metric group. */
.st .st-meta{display:flex;justify-content:space-between;align-items:center;gap:16px 24px;padding:18px 20px;margin-bottom:14px;border:1px solid var(--cos-border,#ddd);border-radius:14px;background:#f5f5f5;color:#555;font:13px/1.45 var(--cos-font,system-ui)}
.st .st-meta__context{display:flex;flex-direction:column;gap:3px;min-width:0}
.st .st-meta__context>b{font-size:16px;font-weight:650;color:#202020}
.st .st-meta__numbers{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
.st .st-meta__numbers>span{display:flex;gap:6px;align-items:baseline;white-space:nowrap}
.st .st-meta__numbers b{color:#202020;font-size:16px;font-weight:650}
.st .st-meta span+span::before{content:none}
/* Dunkel: die Kopfkarte folgt der Seite statt als weiße Insel zu stehen. */
html[data-cos-theme="dark"] .st .st-meta{background:var(--cos-surface);border-color:var(--cos-border);color:var(--cos-text-2)}
html[data-cos-theme="dark"] .st .st-meta__context>b,html[data-cos-theme="dark"] .st .st-meta__numbers b{color:var(--cos-text)}
.st .st-meta__score{padding-left:20px;border-left:1px solid var(--cos-border,#d8d8d8)}
@media(max-width:640px){.st .st-meta{align-items:flex-start}.st .st-meta__numbers{gap:10px 16px}.st .st-meta__score{padding-left:0;border-left:0}}

/* Shared search hints and select text keep their baseline and theme contrast. */
:is(.trainer-hub-search,.chat-search,.cos-search,.search-wrap,.m-search,.t-search,.kr-search,:where(#search-box),.card-search) > kbd{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:22px;padding:0 5px;border-radius:5px;background:var(--cos-surface)!important;color:var(--cos-text-2)!important;border:1px solid var(--cos-border)!important;font:500 11px/1 system-ui;letter-spacing:0;white-space:nowrap}
html[data-cos-theme] select:not([multiple]):not([size]){line-height:1.4;vertical-align:middle;font-size:13px}
html[data-cos-theme="dark"] select :is(option,optgroup){background:#303236;color:#f5f5f5}
html[data-cos-theme="dark"] select option:checked{background:#46556b;color:#fff}
html[data-cos-theme] select optgroup{font-weight:700}
:is(.card-search,.trainer-rtable__search,#search-box) input:focus{outline:none!important;box-shadow:none!important}
:is(.card-search,.trainer-rtable__search,#search-box):has(input:focus-visible){outline:1px solid var(--cos-text-3);outline-offset:2px}

/* Shared search appearance. Match explicit search semantics and known legacy
   controls; toolbar groups and result panels are deliberately not surfaces.
   Repeated :root outranks older important module rules without ID selectors. */
html:root { --cos-search-fill:#eaebed; --cos-search-ink:#3f4145; --cos-search-focus:#64676d; }
html:root[data-cos-theme="dark"] { --cos-search-fill:#353535; --cos-search-ink:#dedee1; --cos-search-focus:#a7a7ad; }
html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"]),input[type="search"],input[role="searchbox"],:where(#ad-search),:where(#pa-club-search),:where(#pa-search),input[data-task-search],.db-si,:where(#ex-picker-search),:where(#bw-search),input.cosin[data-model="search"],.ops-kb-search,.scout-auswahl__suche,:where(#dvv-team-filter),input[oninput="vsSAMSFilterChange(this.value)"],:where(#dvmSearch),:where(#logSearch),body input:where(#q),body input:where(#search)){background:var(--cos-search-fill)!important;color:var(--cos-search-ink)!important;border-color:transparent!important;box-shadow:none!important;border-radius:10px}
html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"])){overflow:visible}
html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"])) > :is(input,i,svg,kbd){background:transparent!important;color:var(--cos-search-ink)!important;border:0!important;box-shadow:none!important}
html:root:root:root:root :is(input[type="search"],input[role="searchbox"],:where(#ad-search),:where(#pa-club-search),:where(#pa-search),input[data-task-search],.db-si,:where(#ex-picker-search),:where(#bw-search),input.cosin[data-model="search"],.ops-kb-search,.scout-auswahl__suche,:where(#dvv-team-filter),input[oninput="vsSAMSFilterChange(this.value)"],:where(#dvmSearch),:where(#logSearch),body input:where(#q),body input:where(#search)):focus{outline:none!important;box-shadow:none!important}
html:root:root:root:root :is(input[type="search"],input[role="searchbox"],:where(#ad-search),:where(#pa-club-search),:where(#pa-search),input[data-task-search],.db-si,:where(#ex-picker-search),:where(#bw-search),input.cosin[data-model="search"],.ops-kb-search,.scout-auswahl__suche,:where(#dvv-team-filter),input[oninput="vsSAMSFilterChange(this.value)"],:where(#dvmSearch),:where(#logSearch),body input:where(#q),body input:where(#search)):focus-visible,html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"])):has(input:focus-visible){outline:1px solid var(--cos-search-focus)!important;outline-offset:2px}
html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"])) input:focus-visible{outline:none!important}
html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"]),input[type="search"],input[role="searchbox"],:where(#ad-search),:where(#pa-club-search),:where(#pa-search),input[data-task-search],.db-si,:where(#ex-picker-search),:where(#bw-search),input.cosin[data-model="search"],.ops-kb-search,.scout-auswahl__suche,:where(#dvv-team-filter),input[oninput="vsSAMSFilterChange(this.value)"],:where(#dvmSearch),:where(#logSearch),body input:where(#q),body input:where(#search)) input::placeholder,html:root:root:root:root :is(input[type="search"],input[role="searchbox"],:where(#ad-search),:where(#pa-club-search),:where(#pa-search),input[data-task-search],.db-si,:where(#ex-picker-search),:where(#bw-search),input.cosin[data-model="search"],.ops-kb-search,.scout-auswahl__suche,:where(#dvv-team-filter),input[oninput="vsSAMSFilterChange(this.value)"],:where(#dvmSearch),:where(#logSearch),body input:where(#q),body input:where(#search))::placeholder{color:var(--cos-search-ink)!important;opacity:1}
html:root[data-cos-theme="dark"] body[data-courtos-module="communication"] #chatApp .chat-search{background:var(--cos-search-fill)!important;border-color:transparent!important;box-shadow:none!important}

html:root:root:root:root :is(.trainer-hub-search,.trainer-calendar-list__search,.trainer-rtable__search,.chat-search,.cos-search,.search-wrap,.search-box,.card-search,.m-search,.t-search,.kr-search,.ath-search,.ath-v2-searchbox,.ath-v2-team-search>div,.ath-diagnostic-athlete-tools>label,.ath-plan-wizard-search,.ath-plan-target-search,.ex-field,.sb2-search,.sx-suche,.searchbox,.search:has(>input[type="search"])) > kbd{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:22px;padding:0 5px;border-radius:5px;background:transparent!important;color:var(--cos-search-ink)!important;border:1px solid var(--cos-search-focus)!important;font:500 11px/1 system-ui;letter-spacing:0;white-space:nowrap}

/* The icon-only mobile theme controls keep the full interactive area. */
@media(max-width:640px){.courtos-theme-switch,.courtos-theme-system{box-sizing:border-box;min-width:44px;min-height:44px;height:44px}}

/* Teamfarben der Scout-Grafiken im Dunkeln: Heim Violett, Gast Amber – beide trennen sich
   voneinander und vom Hintergrund (Trikotfarben liegen in den Spieldaten nicht vor). */
html[data-cos-theme="dark"]{--cos-team-home:#9d7bff;--cos-team-home-strong:#b8a0ff;--cos-team-away:#ffb020}

html[data-cos-theme="dark"] .cos-spotlight::after{display:none!important;background:none!important;opacity:0!important}
html[data-cos-theme="dark"] .cos-glass.cos-glass,html[data-cos-theme="dark"] .cos-glass.cos-glass:hover{background:var(--cos-surface)!important;background-image:none!important;box-shadow:none!important}

/* Plain select rows share the popup surface, without blue rounded tiles. */
html[data-cos-theme] select option{border-radius:0!important;background:var(--cos-surface)!important;color:var(--cos-text)!important}
html[data-cos-theme] select option:is(:hover,:focus,:checked){background:var(--cos-surface-3)!important;color:var(--cos-text)!important;border-radius:0!important}
@supports (appearance:base-select){html[data-cos-theme] select::picker(select){padding:4px 0;border-radius:6px}html[data-cos-theme] select option{padding:10px 14px}html[data-cos-theme] select option:hover{font-weight:600}}
