:root {
  --site-header-height: 78px;
  --form-control-height: 40px;
  --brand-blue: #0081ff;
  --brand-blue-dark: #005fc4;
  --brand-blue-deep: #123a72;
  --bg: #edf5ff;
  --bg-soft: #f9fcff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: #ffffff;
  --text: #123056;
  --muted: #5c7393;
  --accent: #0081ff;
  --accent-dark: #005fc4;
  --line: rgba(0, 129, 255, 0.12);
  --shadow: 0 24px 60px rgba(18, 58, 114, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --dropdown-border: rgba(128, 178, 255, 0.92);
  --dropdown-border-inner: rgba(128, 178, 255, 0.18);
  --dropdown-bg-top: rgba(255, 255, 255, 0.99);
  --dropdown-bg-bottom: rgba(244, 248, 255, 0.98);
  --dropdown-text: #3f5f8f;
  --dropdown-placeholder: #9aadca;
  --dropdown-focus-border: rgba(22, 93, 255, 0.42);
  --dropdown-focus-glow: 0 0 0 0.2rem rgba(22, 93, 255, 0.12);
  --textfield-border: rgba(188, 209, 237, 0.92);
  --textfield-border-inner: rgba(235, 242, 252, 0.96);
  --textfield-bg-top: rgba(255, 255, 255, 0.99);
  --textfield-bg-bottom: rgba(249, 252, 255, 0.98);
  --textfield-text: #244772;
  --textfield-placeholder: #9aadca;
  --textfield-focus-border: rgba(22, 93, 255, 0.34);
  --textfield-focus-glow: 0 0 0 0.2rem rgba(22, 93, 255, 0.1);
}

* {
  box-sizing: border-box;
}

button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled) {
  cursor: pointer;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(0, 129, 255, 0.18), transparent 32%),
    radial-gradient(circle at left 30%, rgba(0, 95, 196, 0.12), transparent 28%),
    linear-gradient(180deg, #edf5ff 0%, #f7fbff 45%, #ffffff 100%);
}

.site-shell:not(.admin-shell-active) .site-header .container,
.site-shell:not(.admin-shell-active) main > .container,
.site-shell:not(.admin-shell-active) .section-block > .container,
.site-shell:not(.admin-shell-active) .page-header > .container,
.site-shell:not(.admin-shell-active) .site-footer .container {
  max-width: none;
}

.swal2-container {
  z-index: 4000 !important;
}

/* Die zentrale Löschbestätigung muss stets über modalen Arbeitsbereichen liegen. */
.swal2-container .tk-swal-popup {
  position: relative;
  z-index: 1;
}

.tk-swal-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.tk-swal-input-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.tk-swal-input-grid input {
  min-width: 0;
}

h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 129, 255, 0.1);
}

.site-header-inner {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tk-header-user-shell {
  margin-left: auto;
  display: flex;
  align-items: center;
  position: relative;
}

.tk-header-user-menu {
  position: relative;
  display: flex;
  align-items: center;
  outline: none;
}

.tk-header-user-card {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.65rem 0.5rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(145, 181, 228, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  box-shadow: 0 16px 30px -24px rgba(18, 54, 105, 0.28);
  cursor: default;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tk-header-user-menu:hover .tk-header-user-card,
.tk-header-user-menu:focus-within .tk-header-user-card {
  border-color: rgba(105, 163, 242, 0.42);
  box-shadow: 0 18px 32px -20px rgba(18, 54, 105, 0.34);
  transform: translateY(-1px);
}

.tk-header-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}

.tk-header-user-meta strong {
  color: #173b70;
  font-size: 0.96rem;
  line-height: 1.1;
  white-space: nowrap;
}

.tk-header-user-meta span {
  color: #6a7f9f;
  font-size: 0.78rem;
  line-height: 1.1;
  white-space: nowrap;
}

.tk-header-user-photo,
.tk-header-user-avatar,
.tk-admin-mini-user-photo {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  border-radius: 50%;
}

.tk-header-user-photo,
.tk-admin-mini-user-photo {
  object-fit: cover;
  border: 2px solid rgba(128, 178, 255, 0.28);
  box-shadow: 0 10px 18px rgba(18, 54, 105, 0.14);
  background: rgba(240, 245, 252, 0.9);
}

.tk-header-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2bb3f3, #1281cb);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tk-header-user-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 244px;
  padding: 0.55rem;
  border: 1px solid rgba(140, 183, 241, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 248, 255, 0.98));
  box-shadow: 0 24px 50px rgba(18, 54, 105, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
  z-index: 50;
}

.tk-header-user-menu:hover .tk-header-user-dropdown,
.tk-header-user-menu:focus-within .tk-header-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tk-header-user-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 26px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(140, 183, 241, 0.28);
  border-left: 1px solid rgba(140, 183, 241, 0.28);
  background: rgba(252, 254, 255, 0.99);
  transform: rotate(45deg);
}

.tk-header-user-dropdown-form {
  margin: 0;
}

.tk-header-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #153967;
  font-weight: 700;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tk-header-user-dropdown-item:hover,
.tk-header-user-dropdown-item:focus-visible {
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.98), rgba(219, 235, 255, 0.96));
  color: #0f4f9d;
  transform: translateX(1px);
  outline: 0;
}

.tk-header-user-dropdown-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.navbar-brand,
.nav-link,
.site-header .btn-outline-light {
  color: #123056;
}

.site-header .btn-outline-light {
  border-color: rgba(0, 129, 255, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.site-header .btn-outline-light:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  border-color: transparent;
}

.admin-menu-dropdown {
  border: 1px solid rgba(0, 129, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  max-width: min(100%, 34rem);
  font-size: var(--homepage-brand-text-size, 18px);
  font-weight: 700;
  line-height: 1.08;
}

.brand-mark span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tk-homepage-settings-inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.tk-homepage-settings-inline-fields > div {
  flex: 0 0 auto;
  max-width: 100%;
}

.tk-homepage-settings-inline-fields > .tk-homepage-settings-inline-field-wide {
  flex-basis: auto;
}

.tk-homepage-settings-inline-fields .form-label {
  display: block;
  white-space: nowrap;
}

.tk-homepage-settings-inline-fields .form-control {
  width: 100%;
}

.tk-homepage-settings-inline-checkbox {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  margin: 0;
  padding-left: 1.55rem;
  white-space: nowrap;
}

.tk-tournament-game-statistics-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 0.8rem;
}

.tk-tournament-game-statistics-table > [role="row"] {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d5e5f8;
  border-radius: 0.65rem;
  background: #f8fbff;
}

.tk-tournament-game-statistics-table [role="cell"]:first-child { color: #173d6b; }
.tk-tournament-game-statistics-table [role="cell"]:last-child { min-width: 0; overflow-wrap: anywhere; }

.brand-mark.is-placeholder {
  gap: 0.7rem;
}

.brand-mark-text.is-placeholder {
  font-size: 0.84em;
  font-weight: 600;
  color: #6c7f9d;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: var(--homepage-brand-logo-width, 160px);
  height: var(--homepage-brand-logo-height, 96px);
  max-width: min(34vw, 420px);
  max-height: 220px;
  object-fit: contain;
}

.brand-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(var(--homepage-brand-logo-width, 160px), 160px);
  height: min(var(--homepage-brand-logo-height, 96px), 96px);
  min-width: 104px;
  min-height: 58px;
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(122, 159, 209, 0.52);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(238, 245, 255, 0.9));
  color: #8ca1bf;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #006fe0, #004ea3);
  color: #fff;
}

.tk-nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding-inline: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 186, 236, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
  color: #17457f;
  box-shadow: 0 18px 36px rgba(18, 54, 105, 0.08);
}

.tk-nav-member-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(18, 63, 128, 0.14);
  border-radius: 999px;
  background: rgba(242, 248, 255, 0.88);
  color: #123f80;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 0.7rem;
}

.tk-nav-visit-count-shell { position:relative; display:inline-flex; margin-right:.7rem; }
.tk-nav-visit-count-badge { display:inline-flex; align-items:center; justify-content:center; min-height:2.65rem; padding:.5rem 1rem; border:1px solid rgba(18,63,128,.14); border-radius:999px; background:rgba(242,248,255,.88); color:#123f80; font-size:.98rem; font-weight:700; white-space:nowrap; }
.tk-nav-visit-info-card { position:absolute; z-index:1060; top:calc(100% + .55rem); left:0; display:none; width:max-content; min-width:15rem; padding:1rem 1.1rem; border:1px solid rgba(99,149,213,.3); border-radius:.85rem; background:#fff; box-shadow:0 14px 35px rgba(18,65,109,.22); }
.tk-nav-visit-count-shell:hover .tk-nav-visit-info-card, .tk-nav-visit-count-shell:focus-within .tk-nav-visit-info-card { display:block; }
.tk-nav-visit-info-card h2 { margin:0 0 .75rem; color:#004b87; font-size:1.05rem; }
.tk-nav-visit-info-card dl { display:grid; gap:.42rem; margin:0; }
.tk-nav-visit-info-card dl div { display:grid; grid-template-columns:1fr auto; gap:1rem; }
.tk-nav-visit-info-card dt { color:#668198; font-size:.86rem; font-weight:600; }
.tk-nav-visit-info-card dd { margin:0; color:#243f58; font-size:.9rem; font-weight:700; }

.tk-nav-online-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(32, 138, 80, 0.28);
  border-radius: 999px;
  background: rgba(232, 249, 239, 0.94);
  color: #197143;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  margin-right: 0.7rem;
}

/* Das Badge und der Anmelde-/Benutzerbereich bilden im Header eine rechte Gruppe. */
.tk-nav-member-count-badge + .tk-header-user-shell,
.tk-nav-online-member-badge + .tk-header-user-shell {
  margin-left: 0;
}

@media (min-width: 992px) {
  .tk-nav-member-count-badge {
    margin-right: 0.8rem;
  }

  .tk-nav-online-member-badge {
    margin-right: 0.8rem;
  }

  .tk-nav-visit-count-shell { margin-right:.8rem; }

  .site-header-inner > .navbar-collapse {
    flex-grow: 0;
  }

  .site-header-inner > .navbar-collapse .navbar-nav {
    margin-left: 0 !important;
  }
}

.tk-nav-auth-btn:hover {
  border-color: rgba(93, 151, 232, 0.46);
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(227, 239, 255, 0.96));
  color: #123f80;
  transform: translateY(-1px);
}

.tk-nav-auth-btn:focus-visible {
  outline: 0;
  border-color: rgba(93, 151, 232, 0.46);
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(227, 239, 255, 0.96));
  box-shadow: 0 0 0 0.25rem rgba(53, 124, 219, 0.16), 0 18px 36px rgba(18, 54, 105, 0.08);
}

.tk-nav-auth-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.92;
}

.tk-login-page .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
}

.tk-login-page main {
  min-height: calc(100vh - var(--site-header-height));
}

body.tk-login-page .site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body.tk-login-page .site-shell > main {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body.tk-login-page .login-section {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding-block: clamp(.75rem, 1.5vw, 1.25rem);
}

body.tk-login-page .site-footer {
  margin-top: auto !important;
}

body.tk-login-page .site-footer .container {
  padding-top: .75rem !important;
  padding-bottom: .75rem !important;
}

body.tk-login-page .site-footer .footer-text,
body.tk-login-page .site-footer .footer-column {
  margin-bottom: 0;
}

.tk-portal-activation-page main { min-height: calc(100vh - var(--site-header-height)); }
.tk-portal-activation { min-height: calc(100vh - var(--site-header-height)); display: grid; place-items: center; padding: 2rem 0; background: radial-gradient(circle at 10% 15%, rgba(102, 171, 255, .15), transparent 30%), linear-gradient(145deg, #f7fbff, #eef5ff); }
.tk-portal-activation > .container { display: grid; place-items: center; min-height: calc(100vh - var(--site-header-height) - 4rem); }
.tk-portal-activation-card { width: min(100%, 36rem); padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid rgba(79, 142, 220, .18); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 28px 70px rgba(24, 70, 135, .14); overflow-wrap: anywhere; }
.tk-portal-activation-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.tk-portal-activation-head > div { min-width: 0; }
.tk-portal-activation-icon { display: grid; place-items: center; flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 15px; background: linear-gradient(135deg, #1676de, #0b4f9b); color: white; font-size: 1.35rem; font-weight: 800; box-shadow: 0 10px 22px rgba(18, 91, 181, .25); }
.tk-portal-activation-icon.is-invalid { margin-bottom: 1rem; background: linear-gradient(135deg, #df5656, #ae2525); }
.tk-portal-activation-card h1 { margin: .22rem 0 .55rem; color: #103b76; font-size: clamp(1.75rem, 3.25vw, 2.35rem); line-height: 1.04; overflow-wrap: anywhere; }
.tk-portal-activation-card p { color: #58708f; }
.tk-portal-activation-form { display: grid; gap: 1.15rem; }
.tk-portal-activation-form label { display: grid; gap: .45rem; color: #173e75; font-weight: 700; }
.tk-portal-activation-form .form-control { width: 100%; min-height: 3.25rem; border-radius: 14px; border-color: rgba(83, 143, 219, .3); padding: .7rem .9rem; }
.tk-portal-activation-form .form-control:focus { border-color: #3181df; box-shadow: 0 0 0 .22rem rgba(49,129,223,.15); }
.tk-portal-password-feedback { margin: -.55rem 0 0; padding: .72rem .85rem; border-radius: 12px; background: #f2f7fd; color: #527093; font-size: .88rem; }
.tk-portal-password-feedback.is-valid { background: #e9f8ef; color: #197143; }
.tk-portal-password-feedback.is-invalid { background: #fff2f2; color: #b33434; }
.tk-portal-activation-submit { width: 100%; min-height: 3.35rem; margin-top: .55rem; border-radius: 14px; font-weight: 800; }

.tk-member-portal-role-picker { position: relative; max-width: 42rem; }
.tk-member-portal-role-picker .tk-member-search-results { position: absolute; z-index: 10; inset: calc(100% + .35rem) 0 auto; max-height: 14rem; overflow: auto; }
.tk-member-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.tk-member-tags .tk-admin-chip { display: inline-flex; align-items: center; gap: .4rem; }
.tk-member-tags button { border: 0; background: transparent; color: inherit; font-size: 1.15rem; line-height: 1; padding: 0; }
.tk-user-account-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.tk-admin-form-layout.tk-user-form-layout { grid-template-columns: minmax(0, 1fr); }
.tk-user-form-stack { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.tk-user-profile-member-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); gap: 1rem; align-items: stretch; }
.tk-user-linked-member-card { min-width: 0; }
.tk-user-linked-member-label { color: #58708f; font-size: .9rem; }
.tk-user-linked-member-value { color: #17355c; font-weight: 400; text-align: right; }
.tk-user-direct-permissions-title { margin: 0; color: #17355c; font-size: 1.35rem; font-weight: 800; }
@media (max-width: 760px) { .tk-user-profile-member-grid { grid-template-columns: 1fr; } }

.tk-login-page .tk-page-head-scripts {
  padding-top: 0 !important;
}

.hero-section {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.tk-blog-list-page .page-header .eyebrow,
.tk-gallery-page .page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(20, 86, 188, 0.08);
  font-size: 1.12rem;
  letter-spacing: 0.24em;
  font-weight: 800;
}

.hero-title {
  font-size: clamp(2.9rem, 6vw, 5.1rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-text,
.section-head p,
.post-card p,
.gallery-card p,
.board-card p,
.footer-text,
.rich-copy,
.login-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.hero-stats,
.dashboard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  margin-top: 2rem;
}

.stat-card,
.schedule-card,
.feature-card,
.post-card,
.gallery-card,
.board-card,
.login-card,
.form-card,
.table-card,
.admin-stat-card,
.admin-link-card,
.comment-card {
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* Global grid/table surface: one quiet, rounded frame with consistent rows. */
.table-responsive,
.tk-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  /* Chrome otherwise reserves a blank scrollbar strip even if no horizontal
     overflow exists, shortening the final table cell inside rounded grids. */
  scrollbar-gutter: auto;
  isolation: isolate;
  -webkit-overflow-scrolling: touch;
}

.tk-tournament-handicap-table > :not(caption) > tr > * {
  white-space: nowrap;
}

.tk-tournament-handicap-value {
  width: 4.25rem;
  min-width: 4.25rem;
  padding-inline: 0.65rem;
}

.tk-sortable-table__heading {
  cursor: pointer;
  user-select: none;
}

.tk-sortable-table__heading::after {
  display: inline-block;
  margin-left: 0.35rem;
  color: #7f96b5;
  content: "↕";
  font-size: 0.72em;
  line-height: 1;
}

.tk-sortable-table__heading.is-sorted-ascending::after {
  color: #175aa8;
  content: "▲";
}

.tk-sortable-table__heading.is-sorted-descending::after {
  color: #175aa8;
  content: "▼";
}

.tk-sortable-table__heading:focus-visible {
  outline: 2px solid var(--primary, #2f80ed);
  outline-offset: -2px;
}

.tk-table-scroll:focus-visible {
  outline: 2px solid var(--primary, #2f80ed);
  outline-offset: 3px;
}

.table-responsive > table,
.tk-table-scroll > table {
  width: max-content;
  min-width: 100%;
}

.table-responsive > table > :not(caption) > tr > *,
.tk-table-scroll > table > :not(caption) > tr > * {
  white-space: nowrap;
}

.table-card,
.tk-hall-admin-table-surface,
.tk-finance-entry-table-wrap,
.tk-document-table-wrap,
.tk-member-list-grid-wrap,
.tk-membership-list-grid-wrap,
.tk-opponent-list-grid-wrap,
.tk-announcement-list-grid-wrap,
.tk-message-list-grid-wrap,
.tk-global-grid-surface {
  border: 1px solid rgba(120, 161, 218, 0.24);
  border-radius: 1.15rem;
  background: rgba(250, 252, 255, 0.82);
  overflow: hidden;
  box-shadow: 0 18px 36px -34px rgba(23, 47, 104, 0.36);
}

.table-card > .table,
.table-card .table,
.tk-table-scroll > table,
.tk-hall-admin-table,
.tk-finance-entry-table,
.tk-document-table,
.tk-member-list-grid,
.tk-membership-list-grid,
.tk-opponent-list-grid,
.tk-announcement-list-grid,
.tk-message-list-grid {
  margin-bottom: 0;
}

.table-card .table thead th,
.tk-hall-admin-table thead th,
.tk-finance-entry-table thead th,
.tk-document-table thead th,
.tk-member-list-grid thead th,
.tk-membership-list-grid thead th,
.tk-opponent-list-grid thead th,
.tk-announcement-list-grid thead th,
.tk-message-list-grid thead th {
  border-bottom: 1px solid rgba(94, 143, 210, 0.18);
  background: rgba(250, 252, 255, 0.72);
  color: #6d83a2;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-card .table tbody td,
.tk-hall-admin-table tbody td,
.tk-finance-entry-table tbody td,
.tk-document-table tbody td,
.tk-member-list-grid tbody td,
.tk-membership-list-grid tbody td,
.tk-opponent-list-grid tbody td,
.tk-announcement-list-grid tbody td,
.tk-message-list-grid tbody td {
  border-bottom: 1px solid rgba(120, 161, 218, 0.14);
}

.table-card .table tbody tr:last-child td,
.tk-hall-admin-table tbody tr:last-child td,
.tk-finance-entry-table tbody tr:last-child td,
.tk-document-table tbody tr:last-child td,
.tk-member-list-grid tbody tr:last-child td,
.tk-membership-list-grid tbody tr:last-child td,
.tk-opponent-list-grid tbody tr:last-child td,
.tk-announcement-list-grid tbody tr:last-child td,
.tk-message-list-grid tbody tr:last-child td { border-bottom: 0; }

.table-card .table tbody tr:hover td,
.tk-hall-admin-table tbody tr:hover td,
.tk-finance-entry-table tbody tr:hover td,
.tk-document-table tbody tr:hover td,
.tk-member-list-grid tbody tr:hover td,
.tk-membership-list-grid tbody tr:hover td,
.tk-opponent-list-grid tbody tr:hover td,
.tk-announcement-list-grid tbody tr:hover td,
.tk-message-list-grid tbody tr:hover td { background: rgba(228, 239, 255, 0.64); }

.stat-card,
.admin-stat-card {
  min-width: 160px;
  padding: 1rem 1.2rem;
  border-radius: 20px;
}

.stat-card span,
.admin-stat-card span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
}

.schedule-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 247, 240, 0.92), rgba(255, 255, 255, 0.82));
}

.card-kicker,
.footer-label,
.post-meta,
.board-role {
  color: var(--accent);
  font-weight: 700;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
}

.schedule-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.info-badge {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(0, 129, 255, 0.1);
  color: #0f4d97;
  font-weight: 700;
}

.comment-section-badge {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-block {
  padding: 4.5rem 0;
}

.contrast-block {
  background: rgba(255, 255, 255, 0.36);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-head h2,
.page-header h1,
.login-card h1,
.form-card h1,
.table-card-head h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0;
}

.feature-grid,
.post-grid,
.gallery-grid,
.board-grid,
.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.board-card,
.admin-link-card,
.admin-stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.post-grid,
.gallery-grid,
.board-grid,
.stats-grid,
.dashboard-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.large-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card,
.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.post-card-media {
  height: 320px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(232, 241, 255, 0.98));
}

.post-card > img,
.gallery-card > img,
.detail-cover,
.gallery-tile img {
  width: 100%;
  object-fit: cover;
}

.gallery-card > img {
  display: block;
  width: auto;
  max-width: calc(100% - 1.5rem);
  height: auto;
  max-height: 320px;
  margin: 0.75rem auto 0;
  border-radius: 16px;
  clip-path: inset(0 round 16px);
  box-shadow: 0 0 0 1px rgba(184, 206, 235, 0.28);
  object-fit: contain;
  object-position: center top;
}

.post-card-media img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 24px;
  object-fit: contain;
}

.post-card > img,
.gallery-card > img {
  height: 250px;
}

.gallery-card > img {
  height: auto;
}

.admin-gallery-card > img {
  display: block;
  border-radius: 24px;
}

.post-card-body,
.gallery-card-body {
  padding: 1.35rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.tk-blog-clickable-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tk-blog-clickable-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 95, 196, 0.3);
  box-shadow: 0 18px 38px rgba(23, 49, 92, 0.16);
}

.tk-blog-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tk-blog-clickable-card:has(.tk-blog-card-link:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tk-blog-list-page .post-grid.large-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.tk-blog-list-page .post-card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.tk-blog-list-page .post-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.tk-blog-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(145px, 0.65fr)) minmax(190px, 1fr) minmax(150px, 0.7fr) auto;
  gap: 0.85rem;
  align-items: end;
  padding: 1.1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(23, 49, 92, 0.08);
  backdrop-filter: blur(10px);
}

.tk-blog-filter-field {
  min-width: 0;
}

.tk-blog-filter-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.tk-blog-filter-field .form-control,
.tk-blog-filter-field .form-select {
  min-height: 44px;
}

.tk-blog-filter-reset {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tk-blog-results-summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.tk-blog-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.tk-blog-empty-state h3 {
  margin-bottom: 0.5rem;
}

.tk-blog-empty-state p {
  margin: 0;
  color: var(--muted);
}

.tk-blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2rem;
}

.tk-blog-page-link {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.tk-blog-page-link:hover,
.tk-blog-page-link.is-active {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.tk-blog-page-link.is-disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.tk-blog-page-direction {
  padding-inline: 1rem;
}

.tk-blog-page-ellipsis {
  padding: 0.4rem;
  color: var(--muted);
}

@media (max-width: 1199.98px) {
  .tk-blog-filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tk-blog-search-field,
  .tk-blog-department-field {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .tk-blog-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .tk-blog-search-field,
  .tk-blog-department-field,
  .tk-blog-page-size-field,
  .tk-blog-filter-reset {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479.98px) {
  .tk-blog-filter-bar {
    grid-template-columns: 1fr;
  }

  .tk-blog-filter-field,
  .tk-blog-search-field,
  .tk-blog-department-field,
  .tk-blog-page-size-field,
  .tk-blog-filter-reset {
    grid-column: 1;
  }
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 22px;
}

.gallery-tile img {
  height: 100%;
}

.gallery-tile span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.avatar-chip {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 129, 255, 0.16), rgba(0, 95, 196, 0.12));
}

.page-header {
  padding: 4rem 0 2rem;
}

.tk-departments-page-header {
  padding: 2.75rem 0 1.1rem;
}

.tk-departments-page-header h1 {
  margin-top: 0;
}

.tk-teams-page-header {
  padding: 2.75rem 0 1.1rem;
}

.tk-teams-page-header h2 {
  margin-top: 0;
}

.tk-blog-list-page-header {
  padding: 2.75rem 0 1.1rem;
}

.tk-blog-list-page-header h2 {
  margin-top: 0;
}

.tk-gallery-page-header {
  padding: 2.75rem 0 1.1rem;
}

.tk-gallery-page-header h2 {
  margin-top: 0;
}

.tk-contacts-page-header {
  padding: 2.75rem 0 1.1rem;
}

.tk-contacts-page-header h2 {
  margin-top: 0;
}

.narrow-container {
  max-width: 860px;
}

.tk-post-form-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.post-header,
.admin-header {
  padding-bottom: 2.5rem;
}

.detail-cover {
  max-height: 520px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.tk-post-carousel {
  margin-bottom: 1.5rem;
}

/* Keep blog-detail images fully visible at every viewport size. */
.tk-blog-detail-page .detail-cover {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 2rem);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.tk-blog-detail-page .tk-post-carousel .carousel-item.active,
.tk-blog-detail-page .tk-post-carousel .carousel-item-next,
.tk-blog-detail-page .tk-post-carousel .carousel-item-prev {
  align-items: center;
  justify-content: center;
}

.tk-blog-detail-page .tk-post-carousel .carousel-item.active {
  display: flex;
}

.tk-blog-detail-image-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
}

.tk-blog-detail-image-caption {
  width: 100%;
  padding: 0.85rem 3.5rem 2.25rem;
  color: #3f5572;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
  white-space: pre-line;
}

.tk-blog-detail-single-image {
  margin-bottom: 1.5rem;
}

.tk-blog-detail-single-image .tk-blog-detail-image-caption {
  padding-bottom: 0;
}

@media (max-width: 575.98px) {
  .tk-blog-detail-image-caption {
    padding-inline: 1rem;
  }
}

/* Hall occupancy administration and public weekly schedule. */
.tk-hall-filter-panel,
.tk-hall-entry-form {
  padding: 1.25rem;
}

.tk-hall-occupancy-surface {
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 37, 75, 0.10);
}

.tk-hall-occupancy-head-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tk-hall-occupancy-publication-options {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.tk-hall-occupancy-publication-options .form-check {
  min-height: 1.35rem;
}

.tk-hall-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  align-items: end;
}

/* The compact booking filters fit a standard desktop panel in one row and
   retain the shared responsive filter treatment when space becomes limited. */
.tk-hall-filter-form[data-manual-hall-filter-form] {
  grid-template-columns: minmax(20rem, 2.1fr) repeat(2, minmax(12rem, 1.25fr)) repeat(2, minmax(8rem, 0.82fr));
  gap: 0.75rem;
}

.tk-hall-filter-form[data-manual-hall-filter-form] .tk-hall-search-field {
  grid-column: auto;
}

@media (max-width: 1199.98px) {
  .tk-hall-filter-form[data-manual-hall-filter-form] {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }

  .tk-hall-filter-form[data-manual-hall-filter-form] .tk-hall-search-field {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .tk-hall-filter-form[data-manual-hall-filter-form] .tk-hall-search-field {
    grid-column: auto;
  }
}

.tk-hall-search-field {
  grid-column: span 2;
}

.tk-hall-filter-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tk-hall-filter-control > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-hall-filter-clear {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(103, 151, 218, 0.28);
  border-radius: 12px;
  background: rgba(244, 249, 255, 0.96);
  color: #315b91;
  font-size: 1.25rem;
  line-height: 1;
}

.tk-hall-filter-clear:hover {
  border-color: rgba(35, 112, 226, 0.42);
  background: #eaf3ff;
}

.tk-hall-filter-reset-all {
  display: flex;
  align-items: end;
}

/* Chrome reserves a horizontal scrollbar gutter even without overflow. That
   narrows the last table cell and lets its background escape the rounded
   surface. The booking grid scrolls only when it actually needs to. */
[data-manual-hall-results] .tk-member-list-grid-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: auto;
  isolation: isolate;
}

[data-manual-hall-results] .tk-member-list-grid {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Shared reset affordance for active native-select filters. */
.tk-filter-select-control {
  position: relative;
  display: block;
}

.tk-filter-select-control .form-select {
  min-width: 0;
  padding-right: 3.35rem;
}

.tk-filter-select-native { position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; }
.tk-filter-select-trigger { display:block; width:100%; min-height:var(--form-control-height); padding:.5rem 3.35rem .5rem 1rem; overflow:hidden; border:1px solid var(--textfield-border); border-radius:16px; background:linear-gradient(180deg, var(--textfield-bg-top), var(--textfield-bg-bottom)); color:var(--textfield-text); font:inherit; font-weight:700; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.tk-filter-select-trigger:focus-visible { outline:2px solid rgba(35,112,226,.36); outline-offset:2px; }
.tk-filter-select-menu { position:absolute; z-index:2100; top:calc(100% + .35rem); left:0; width:max-content; min-width:100%; max-width:calc(100vw - 1.5rem); max-height:18rem; padding:.35rem; overflow:auto; border:1px solid rgba(138,159,189,.52); border-radius:.75rem; background:#f7f9fc; box-shadow:0 .7rem 1.4rem rgba(30,52,80,.28); }
.tk-filter-select-option { display:block; width:100%; padding:.42rem .55rem; border:0; border-radius:.35rem; background:transparent; color:#182333; font:inherit; text-align:left; white-space:nowrap; }
.tk-filter-select-option:hover,.tk-filter-select-option:focus-visible,.tk-filter-select-option[aria-selected='true'] { background:rgba(35,112,226,.15); outline:0; }

.tk-filter-select-reset {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: #315b91;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.tk-filter-select-reset:hover,
.tk-filter-select-reset:focus-visible {
  background: rgba(35, 112, 226, 0.1);
  outline: none;
}

.tk-groups-department-filter { flex: 0 1 18rem; min-width: 16rem; }

.tk-inventory-filter-row .tk-filter-select-control { flex: 1 1 13rem; min-width: 13rem; }


.tk-hall-admin-table-surface {
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.tk-hall-admin-table-wrap {
  border-radius: inherit;
}

.tk-hall-admin-table {
  min-width: 1220px;
  margin: 0;
}

.tk-hall-admin-table thead th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(94, 143, 210, 0.24);
  background: rgba(231, 241, 255, 0.82);
  color: #34577f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tk-hall-admin-table tbody td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(120, 161, 218, 0.17);
  color: #334a68;
  font-weight: 400;
  vertical-align: middle;
}

.tk-hall-admin-table tbody td:not(.tk-hall-admin-day) {
  vertical-align: top;
}

.tk-hall-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.tk-hall-admin-table tbody tr:hover td {
  background: rgba(238, 246, 255, 0.68);
}

/* Use the shared grid treatment for the hall occupancy listing. */
.tk-hall-admin-table-surface.tk-global-grid-surface {
  border: 1px solid rgba(120, 161, 218, 0.24);
  border-radius: 1.15rem;
  background: rgba(250, 252, 255, 0.82);
  overflow: hidden;
  box-shadow: 0 18px 36px -34px rgba(23, 47, 104, 0.36);
}

.tk-hall-admin-table-surface.tk-global-grid-surface .tk-hall-admin-table thead th {
  border-bottom-color: rgba(94, 143, 210, 0.18);
  background: rgba(250, 252, 255, 0.72);
  color: #6d83a2;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tk-hall-admin-table-surface.tk-global-grid-surface .tk-hall-admin-table tbody td {
  border-bottom-color: rgba(120, 161, 218, 0.14);
}

.tk-hall-admin-table-surface.tk-global-grid-surface .tk-hall-admin-table tbody tr:hover td {
  background: rgba(228, 239, 255, 0.64);
}

.tk-hall-admin-day,
.tk-hall-admin-time {
  color: #173f73 !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

.tk-hall-admin-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 150px;
}

.tk-hall-admin-action-column,
.tk-hall-admin-action-cell {
  width: 58px;
  text-align: left;
}

.tk-hall-admin-action-cell {
  position: relative;
}

.tk-hall-admin-table tbody tr:has(.tk-hall-action-shell.is-open) {
  position: relative;
  z-index: 10001;
}

.tk-hall-admin-action-cell .tk-hall-action-menu {
  position: fixed;
  top: 0;
  right: auto;
  left: 0;
  transform: none;
}

.tk-hall-action-shell {
  position: relative;
}

.tk-hall-action-menu {
  z-index: 10000;
  min-width: 180px;
  padding: 0.45rem;
  border: 1px solid rgba(18, 54, 105, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 38px rgba(16, 37, 75, 0.18);
}

.tk-hall-action-menu a,
.tk-hall-action-menu button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #24466f;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.tk-hall-action-menu a:hover,
.tk-hall-action-menu button:hover {
  background: #edf5ff;
}

.tk-hall-action-menu button.is-danger {
  color: #b4233d;
}

.tk-hall-action-menu img {
  width: 18px;
  height: 18px;
}

.tk-hall-action-menu form {
  margin: 0;
}

.tk-hall-entry-form {
  display: block;
  max-width: 1120px;
  margin-inline: auto;
}

.tk-hall-entry-form .tk-widget-kicker {
  margin-bottom: 1rem;
}

.tk-hall-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tk-hall-recurrence-row,
.tk-hall-recurrence-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tk-hall-recurrence-row {
  justify-content: flex-start;
  flex-wrap: nowrap;
  min-height: var(--form-control-height);
  padding: 0;
}

.tk-hall-blocking-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 100%;
  min-height: var(--form-control-height);
}

.tk-hall-blocking-row .tk-member-form-checkbox {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.tk-hall-blocking-reason { display: flex; align-items: center; gap: .5rem; flex: 1 1 18rem; min-width: 0; max-width: 100%; }
.tk-hall-blocking-reason .form-control { flex: 1 1 0; width: auto; min-width: 0; }

.tk-hall-recurrence-fields { flex-wrap: nowrap; }

.tk-hall-recurrence-fields input {
  width: 92px;
}

.tk-hall-recurrence-fields select {
  width: 150px;
}

.tk-hall-assignment-fields,
.tk-hall-series-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.tk-hall-series-fields { row-gap: 0.5rem; }

.tk-hall-assignment-fields > div { flex: 1 1 16rem; min-width: 0; }
.tk-hall-series-card { padding: 1.25rem; }
.tk-hall-series-card .tk-widget-kicker { margin-bottom: 1rem; }
.tk-hall-series-fields > div { flex: 1 1 9rem; min-width: 0; }
.tk-hall-series-fields > .tk-hall-blocking-row { flex: 0 0 100%; }
.tk-hall-series-fields > .tk-hall-display-during-block-row { flex: 0 0 100%; }
.tk-hall-display-during-block-row .tk-member-form-checkbox { width: auto; margin: 0; padding: 0; min-height: 2rem; }
.tk-hall-series-fields > .tk-hall-series-yearly { display: flex; align-items: center; flex: 1.4 1 16rem; min-height: var(--form-control-height); }
.tk-hall-series-fields > .tk-hall-recurrence-row { flex: 2 1 36rem; }
.tk-hall-series-yearly .form-check { min-height: var(--form-control-height); margin: 0; transform: translateY(.5rem); }

@media (max-width: 991.98px) {
  .tk-hall-series-fields > .tk-hall-recurrence-row { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  .tk-hall-recurrence-row,
  .tk-hall-recurrence-fields,
  .tk-hall-blocking-row { flex-wrap: wrap; }
  .tk-hall-blocking-reason { flex-wrap: wrap; }
  .tk-hall-series-yearly .form-check { transform: none; }
}

.tk-hall-admin-table {
  min-width: 1480px;
}

.tk-hall-admin-date {
  white-space: nowrap;
}

.tk-home-page .tk-module-card-icon-image {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0f7ff, #e2f0ff);
}

.tk-home-page .tk-module-card-icon-image img {
  width: min(44%, 118px);
  height: min(70%, 118px);
  object-fit: contain;
}

.tk-home-page .tk-module-card-hall-rental .tk-module-card-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.tk-public-hall-shell {
  padding-top: 1.5rem;
}

.tk-public-hall-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
}

.tk-public-hall-hero .tk-dashboard-title {
  padding-right: 0;
}

.tk-public-hall-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  margin-left: auto;
}

.tk-public-hall-hero-actions > img {
  width: 76px;
  height: 76px;
}

.tk-hall-view-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.tk-public-hall-membership-view-switch {
  justify-content: flex-start;
  margin-top: -0.55rem;
}

.tk-public-hall-membership-hero .tk-department-hero-logo-image {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.58);
  object-fit: contain;
}

.tk-hall-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(58, 126, 219, 0.28);
  border-radius: 13px;
  background: rgba(248, 251, 255, 0.94);
  color: #315b91;
  font-weight: 650;
  text-decoration: none;
}

.tk-hall-view-button:hover,
.tk-hall-view-button.is-active {
  border-color: rgba(31, 112, 229, 0.48);
  background: #e5f0ff;
  color: #0758c6;
}

.tk-hall-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.tk-hall-week-toolbar h2 {
  margin: 0.35rem 0 0;
  color: #17355c;
  font-size: 1.15rem;
}

.tk-hall-week-navigation {
  display: flex;
  gap: 0.55rem;
}

.tk-hall-week-navigation .is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.tk-hall-week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.tk-hall-calendar-day {
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(120, 161, 218, 0.24);
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.96);
  box-shadow: 0 14px 30px -27px rgba(17, 54, 106, 0.44);
}

.tk-hall-calendar-day.is-today {
  border-color: rgba(31, 112, 229, 0.56);
  box-shadow: 0 0 0 2px rgba(31, 112, 229, 0.1);
}

.tk-hall-calendar-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem;
  border-bottom: 1px solid rgba(120, 161, 218, 0.2);
  background: rgba(231, 241, 255, 0.78);
  color: #315b91;
}

.tk-hall-calendar-day > header span {
  font-size: 0.82rem;
  font-weight: 700;
}

.tk-hall-calendar-day > header strong {
  font-size: 0.78rem;
  font-weight: 600;
}

.tk-hall-calendar-events {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 0.75rem;
}

.tk-hall-calendar-blocking-reason {
  position: absolute;
  inset: 42% -1rem auto;
  z-index: 0;
  overflow: hidden;
  color: rgba(23, 50, 79, 0.14);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.tk-hall-calendar-blocking-reason ~ .tk-public-hall-event { position: relative; z-index: 1; }

.tk-public-hall-event {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(62, 132, 226, 0.25);
  border-radius: 12px;
  background: linear-gradient(145deg, #eef6ff, #e3f0ff);
  color: #274d7d;
  cursor: pointer;
  text-align: left;
}

.tk-public-hall-event:hover,
.tk-public-hall-event:focus-visible {
  border-color: rgba(31, 112, 229, 0.54);
  box-shadow: 0 10px 24px -18px rgba(17, 74, 153, 0.62);
  outline: none;
}

.tk-public-hall-event-time {
  color: #0758c6;
  font-size: 0.76rem;
  font-weight: 700;
}

.tk-public-hall-event strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.tk-public-hall-event small {
  color: #60738f;
  font-size: 0.76rem;
}

.tk-public-hall-event-meta {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.22rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(62, 132, 226, 0.16);
  color: #526b89;
  font-size: 0.72rem;
  line-height: 1.35;
}

.tk-public-hall-event-meta span {
  overflow-wrap: anywhere;
}

.tk-public-hall-event-meta b {
  color: #315b91;
  font-weight: 600;
}

.tk-hall-calendar-empty {
  padding: 0.75rem 0.35rem;
  color: #8796aa;
  font-size: 0.82rem;
  text-align: center;
}

.tk-hall-event-popup {
  position: fixed;
  z-index: 1300;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 24px));
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid rgba(75, 130, 205, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 22px 48px rgba(16, 37, 75, 0.22);
  color: #334a68;
  cursor: default;
}

.tk-public-hall-event .tk-hall-event-popup-title {
  display: block;
  margin-bottom: 0.65rem;
  color: #173f73;
  font-size: 1rem;
}

.tk-hall-event-popup dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.tk-hall-event-popup dl > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  padding: 0.48rem 0;
  border-top: 1px solid rgba(120, 161, 218, 0.16);
}

.tk-hall-event-popup dt {
  color: #60738f;
  font-weight: 500;
}

.tk-hall-event-popup dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.tk-public-hall-days {
  display: grid;
  gap: 1.2rem;
}

.tk-public-hall-day-card {
  overflow: hidden;
  border: 1px solid rgba(120, 161, 218, 0.22);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.96));
  box-shadow: 0 16px 34px -28px rgba(17, 54, 106, 0.45);
}

.tk-public-hall-day-head {
  padding: 1.1rem 1.25rem 0.8rem;
  border-top: 3px solid #4e9eea;
}

.tk-public-hall-day-head h2 {
  margin: 0.35rem 0 0;
  color: #17355c;
  font-size: 1.35rem;
}

.tk-public-hall-table-wrap {
  overflow-x: auto;
}

.tk-public-hall-table {
  width: 100%;
  border-collapse: collapse;
}

.tk-public-hall-table th,
.tk-public-hall-table td {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid rgba(120, 161, 218, 0.18);
  color: #334a68;
  text-align: left;
  vertical-align: top;
}

.tk-public-hall-table th {
  color: #60738f;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tk-public-hall-table td:first-child {
  width: 190px;
  white-space: nowrap;
}

.tk-public-hall-table td:last-child {
  width: 240px;
}

.tk-public-hall-table td span,
.tk-public-hall-table td small {
  display: block;
  margin-top: 0.2rem;
  color: #60738f;
}

@media (max-width: 767.98px) {
  .tk-hall-search-field {
    grid-column: span 1;
  }

  .tk-public-hall-hero-actions > img {
    width: 56px;
    height: 56px;
  }

  .tk-public-hall-table thead {
    display: none;
  }

  .tk-public-hall-table,
  .tk-public-hall-table tbody,
  .tk-public-hall-table tr,
  .tk-public-hall-table td {
    display: block;
    width: 100%;
  }

  .tk-public-hall-table tr {
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(120, 161, 218, 0.18);
  }

  .tk-public-hall-table td,
  .tk-public-hall-table td:first-child,
  .tk-public-hall-table td:last-child {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
    gap: 0.75rem;
    width: 100%;
    padding: 0.4rem 0;
    border: 0;
    white-space: normal;
  }

  .tk-public-hall-table td::before {
    content: attr(data-label);
    color: #60738f;
    font-weight: 600;
  }
}

@media (max-width: 575.98px) {
  .tk-public-hall-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .tk-public-hall-hero-actions {
    align-items: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .tk-hall-view-switch {
    justify-content: flex-start;
    width: 100%;
  }

  .tk-hall-view-button {
    flex: 1 1 145px;
  }
}

.tk-photo-detail-stage {
  margin: 0;
  display: flex;
  justify-content: center;
}

.tk-photo-detail-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 640px);
  max-height: 480px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(233, 240, 252, 0.96));
  box-shadow: 0 24px 54px rgba(16, 37, 75, 0.14);
}

.tk-photo-detail-image {
  display: block;
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
  max-height: 480px;
  object-fit: contain;
}

.tk-photo-detail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(9, 23, 48, 0.02), rgba(9, 23, 48, 0.48));
  opacity: 0;
  transition: opacity 180ms ease;
}

.tk-photo-detail-frame:hover .tk-photo-detail-overlay,
.tk-photo-detail-frame:focus-within .tk-photo-detail-overlay {
  opacity: 1;
}

.tk-photo-detail-overlay-actions {
  display: flex;
  gap: 0.55rem;
}

.tk-photo-detail-modal .modal-dialog {
  max-width: 1120px;
}

.tk-photo-detail-modal-stage {
  display: grid;
  place-items: center;
  min-height: min(78vh, 860px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.98), rgba(232, 239, 252, 0.96));
}

.tk-photo-detail-modal-image {
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 820px);
  border-radius: 22px;
  object-fit: contain;
}

.rich-copy {
  line-height: 1.8;
  margin-top: 2rem;
}

.comment-form .form-control,
.comment-form .form-select,
.login-card .form-control,
.login-card .form-select,
.form-card .form-control,
.form-card .tagify,
.form-card .form-select,
.form-card textarea {
  border-radius: 16px;
  border: 1px solid rgba(24, 33, 38, 0.12);
}

.comment-form .form-control,
.login-card .form-control,
.form-card .form-control,
.form-card textarea {
  padding: 0.9rem 1rem;
}

.form-card .tagify {
  --tags-border-color: rgba(24, 33, 38, 0.12);
  --tags-hover-border-color: rgba(0, 95, 196, 0.28);
  --tags-focus-border-color: rgba(0, 95, 196, 0.36);
  --tag-bg: rgba(233, 244, 255, 0.95);
  --tag-text-color: #1f4f93;
  --tag-border-color: rgba(115, 164, 226, 0.3);
  --tag-remove-btn-color: #5c7daa;
  min-height: var(--form-control-height);
  padding: 0.2rem 0.45rem;
  background: #fff;
  box-shadow: none;
}

.form-card .tagify__input {
  margin: 0;
  padding: 0.3rem 0.45rem;
}

.form-card .tagify__tag {
  margin: 0.18rem;
}

.tk-member-roles-tagify.tagify {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.tk-member-roles-tagify.tagify .tagify__input {
  flex: 1 1 10rem;
  min-width: 0;
}

.form-card .tagify__dropdown,
.tk-member-form-tagify-dropdown {
  border-radius: 16px;
  border: 1px solid rgba(82, 135, 214, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.99));
  box-shadow: 0 0 0 1px rgba(186, 212, 248, 0.55), 0 18px 36px rgba(16, 37, 75, 0.14);
}

.tk-member-form-tagify-dropdown .tagify__dropdown__wrapper {
  border-radius: 15px;
  overflow: hidden;
}

.form-control {
  border-radius: 16px;
  border: 1px solid var(--textfield-border);
  background-color: #fff;
  background-image: linear-gradient(180deg, var(--textfield-bg-top), var(--textfield-bg-bottom));
  color: var(--textfield-text);
  box-shadow: inset 0 0 0 1px var(--textfield-border-inner);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-control::placeholder {
  color: var(--textfield-placeholder);
}

.form-control:hover {
  border-color: rgba(128, 178, 255, 0.94);
}

.form-control:focus {
  border-color: var(--textfield-focus-border);
  box-shadow: var(--textfield-focus-glow), inset 0 0 0 1px var(--textfield-border-inner);
  outline: 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
}

.form-check > .form-check-input {
  flex: 0 0 auto;
  float: none;
  margin: 0;
}

.form-check > .form-check-label {
  margin-bottom: 0;
}

.form-check-input[type="checkbox"],
.form-check-input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:disabled,
.form-check-input[type="checkbox"]:checked:disabled,
.form-check-input[type="radio"],
.form-check-input[type="radio"]:checked,
.form-check-input[type="radio"]:disabled,
.form-check-input[type="radio"]:checked:disabled {
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.3), 0 0 0.45rem rgba(13, 110, 253, 0.35) !important;
  filter: drop-shadow(0 0 0.18rem rgba(13, 110, 253, 0.3));
}

.form-check-input[type="checkbox"]:focus,
.form-check-input[type="radio"]:focus {
  box-shadow: 0 0 0 0.23rem rgba(13, 110, 253, 0.4), 0 0 0.55rem rgba(13, 110, 253, 0.45) !important;
}

.form-control:disabled,
.form-control[readonly] {
  border-color: rgba(177, 198, 227, 0.72);
  background-image: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(239, 245, 252, 0.96));
  color: #8da0bc;
}

input.form-control {
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

input.form-control[type="date"] {
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(var(--form-control-height) - 2px);
}

select:not([multiple]):not([size]),
select.form-select {
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 16px;
  border: 1px solid var(--dropdown-border);
  background-color: #fff;
  background-image: linear-gradient(180deg, var(--dropdown-bg-top), var(--dropdown-bg-bottom));
  color: var(--dropdown-text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--dropdown-border-inner);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

select:not([multiple]):not([size]):hover,
select.form-select:hover {
  border-color: rgba(128, 178, 255, 0.98);
}

select:not([multiple]):not([size]):focus,
select.form-select:focus {
  border-color: var(--dropdown-focus-border);
  box-shadow: var(--dropdown-focus-glow), inset 0 0 0 1px var(--dropdown-border-inner);
  outline: 0;
}

select:not([multiple]):not([size]):disabled,
select.form-select:disabled {
  background-image: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(239, 245, 252, 0.96));
  color: #8da0bc;
  border-color: rgba(177, 198, 227, 0.72);
}

select.form-select option,
select:not([multiple]):not([size]) option {
  color: var(--text);
}

.tk-membership-application-page select.form-select.tk-membership-optional-select {
  font-weight: 400;
}

textarea.form-control,
.form-card textarea {
  min-height: calc(var(--form-control-height) * 2.4);
}

.tk-homepage-card-description-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: .75rem;
}

.tk-homepage-card-description-form > .form-label {
  grid-column: 1 / -1;
}

.tk-homepage-card-description-form > textarea {
  grid-column: 1;
  overflow-y: hidden;
  resize: none;
}

.tk-homepage-card-description-form > [data-homepage-card-description-counter] {
  grid-column: 1;
}

.tk-homepage-card-description-form__action {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
}

.tk-homepage-card-description-form__action .tk-season-icon-btn-primary:hover {
  background-color: transparent;
}

.tk-homepage-card-settings-layout { display:grid; grid-template-columns:minmax(180px, 28%) minmax(0, 1fr); gap:1rem; align-items:start; }
.tk-homepage-card-logo-dropzone { min-width:0; }
.tk-homepage-card-logo-dropzone .tk-upload-dropzone-stage, .tk-homepage-card-logo-dropzone .tk-upload-dropzone-preview { min-height:150px; max-height:190px; }
.tk-homepage-card-logo-dropzone .tk-upload-dropzone-preview { object-fit:contain; background:#fff; }
.tk-homepage-card-settings-controls { display:grid; gap:.9rem; min-width:0; }
.tk-homepage-card-visibility-below-description { padding-top:.1rem; }
@media (max-width:700px) { .tk-homepage-card-settings-layout { grid-template-columns:1fr; } }

.comment-card {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.comment-form .row {
  align-items: start;
}

.comment-submit-icon-btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(123, 171, 232, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(235, 243, 255, 0.96));
  box-shadow: 0 16px 30px -24px rgba(17, 54, 106, 0.42);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.comment-submit-icon-btn img {
  width: 18px;
  height: 18px;
}

.comment-submit-icon-btn:hover,
.comment-submit-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(74, 135, 214, 0.44);
  background: linear-gradient(180deg, rgba(240, 247, 255, 1), rgba(223, 236, 255, 0.98));
  box-shadow: 0 18px 32px -22px rgba(17, 54, 106, 0.4);
  outline: 0;
}

.comment-pagination-bar {
  margin-top: 1rem;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.login-section {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0;
}

.login-card,
.form-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.tk-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  width: min(100%, 980px);
  margin: 0 auto;
  transform: translateY(calc(var(--site-header-height) * -0.5));
  border: 1px solid rgba(165, 193, 235, 0.44);
  box-shadow: 0 32px 80px rgba(12, 42, 92, 0.16);
}

.tk-login-panel {
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
}

.tk-login-panel-brand {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(116, 173, 255, 0.28), transparent 44%),
    radial-gradient(circle at bottom right, rgba(42, 101, 189, 0.2), transparent 46%),
    linear-gradient(145deg, #123d84 0%, #1f5eb3 42%, #eaf3ff 140%);
  color: #f5f9ff;
}

.tk-login-panel-brand .eyebrow,
.tk-login-panel-brand p,
.tk-login-panel-brand h1,
.tk-login-panel-brand strong,
.tk-login-panel-brand span {
  color: inherit;
}

.tk-login-panel-brand .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #dbeaff;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.2em;
}

.tk-login-panel-brand h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.96;
}

.tk-login-panel-brand p {
  max-width: 46ch;
  color: rgba(235, 243, 255, 0.88);
}

.tk-login-visual {
  margin-top: 1.6rem;
}

.tk-login-visual-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(212, 228, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.18), rgba(219, 234, 255, 0.08));
  overflow: hidden;
}

.tk-login-visual-stage::before,
.tk-login-visual-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.tk-login-visual-stage::before {
  inset: 22px auto auto 18px;
  width: 120px;
  height: 120px;
  background: rgba(129, 184, 255, 0.26);
}

.tk-login-visual-stage::after {
  inset: auto 14px 18px auto;
  width: 164px;
  height: 164px;
  background: rgba(10, 37, 88, 0.22);
}

.tk-login-visual-logo,
.tk-login-visual-placeholder {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  max-width: 88%;
  max-height: 196px;
}

.tk-login-visual-logo {
  object-fit: contain;
}

.tk-login-visual-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 220px;
  padding: 0.5rem;
}

.tk-login-visual-logo-platform {
  width: min(100%, 440px);
  max-width: 100%;
  max-height: 220px;
}

.tk-login-visual-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 196px;
  min-width: min(100%, 400px);
  padding: 1rem 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(223, 235, 255, 0.24);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 700;
  text-align: center;
}

.tk-login-visual-placeholder-message {
  max-width: 25rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.tk-login-visual-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(5, 20, 53, 0.18);
}

.tk-login-visual-badge-primary {
  top: 1.2rem;
  right: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(229, 240, 255, 0.94));
  color: #0f4189;
}

.tk-login-visual-badge-secondary {
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(13, 39, 90, 0.8);
  color: #f4f8ff;
}

.tk-login-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.tk-login-visual-chip {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(244, 249, 255, 0.14);
  border: 1px solid rgba(214, 229, 255, 0.16);
}

.tk-login-visual-chip strong {
  font-size: 1rem;
}

.tk-login-visual-chip span {
  color: rgba(235, 243, 255, 0.8);
  font-size: 0.94rem;
}

.tk-login-panel-form {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
}

.tk-login-panel-form .eyebrow {
  margin-bottom: 0;
}

.tk-login-panel-form h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.tk-login-panel-form--recovery {
  align-content: stretch;
}

.tk-login-panel-form--setup {
  align-content: stretch;
}

.tk-login-panel-form--verify {
  align-content: stretch;
}

.tk-login-panel-form--recovery-codes {
  display: flex;
  align-content: stretch;
  flex-direction: column;
}

.tk-login-qr {
  display: flex;
  justify-content: center;
}

.tk-login-title-single-line {
  white-space: nowrap;
  font-size: clamp(1.1rem, 2.15vw, 2.25rem) !important;
  letter-spacing: -0.035em;
}

.tk-login-form--footer-action {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.tk-login-form--footer-action .tk-login-actions {
  margin-top: auto;
  justify-content: flex-end;
}

.tk-login-completion-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.tk-login-recovery-link {
  color: inherit;
  text-decoration: none;
}

.tk-login-recovery-link:hover,
.tk-login-recovery-link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.tk-login-panel-form .tk-login-form,
.tk-login-panel-form .tk-login-input-shell,
.tk-login-panel-form .form-control {
  min-width: 0;
  max-width: 100%;
}

.tk-login-panel-form p {
  margin-bottom: 1rem;
}

.tk-login-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.tk-login-field {
  display: grid;
  gap: 0.45rem;
}

.tk-login-input-shell {
  position: relative;
}

.tk-login-input-icon {
  position: absolute;
  /* The validation message is a sibling inside this shell. Centering against
     the shell would therefore shift the icon downward; align to the input's
     fixed control height instead. */
  inset: 1.4rem auto auto 1rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.9;
}

.tk-login-input-icon img {
  width: 18px;
  height: 18px;
}

.tk-login-card .form-control {
  padding-left: 3rem;
}

.tk-login-card .invalid-feedback {
  padding-left: 0.1rem;
}

.tk-login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.tk-login-home-btn,
.tk-login-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 18px;
}

.tk-login-home-btn {
  border: 1px solid rgba(148, 186, 236, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
  box-shadow: 0 18px 36px rgba(18, 54, 105, 0.08);
}

.tk-login-home-btn img,
.tk-login-submit-btn img {
  width: 22px;
  height: 22px;
}

.tk-login-home-btn:hover,
.tk-login-home-btn:focus-visible {
  border-color: rgba(93, 151, 232, 0.46);
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(227, 239, 255, 0.96));
  transform: translateY(-1px);
  outline: 0;
}

.tk-login-submit-btn {
  box-shadow: 0 18px 36px rgba(28, 87, 168, 0.22);
}

.tk-login-submit-btn.btn-accent:hover,
.tk-login-submit-btn.btn-accent:focus-visible {
  transform: translateY(-1px);
}

.tk-login-submit-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(53, 124, 219, 0.24), 0 18px 36px rgba(28, 87, 168, 0.22);
}

@media (max-width: 991.98px) {
  .tk-login-card {
    grid-template-columns: minmax(0, 1fr);
    transform: translateY(calc(var(--site-header-height) * -0.3));
  }

  .tk-login-panel-brand {
    min-height: 0;
  }

  .tk-login-panel-brand h1 {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .login-section {
    min-height: 0;
  }

  .tk-login-card {
    transform: none;
  }

  .tk-login-panel {
    padding: 1.5rem;
  }

  .tk-login-visual-stage {
    min-height: 220px;
    padding: 1.5rem;
  }

  .tk-login-visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-login-visual-badge {
    position: static;
    margin-top: 0.75rem;
    justify-self: start;
  }

  .tk-login-actions {
    justify-content: stretch;
  }

  .tk-login-home-btn,
  .tk-login-submit-btn {
    width: calc(50% - 0.425rem);
  }
}

.table-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.table-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-card,
.table-card-head,
.tk-admin-hero {
  position: relative;
}

.form-card h1,
.table-card-head h1,
.tk-admin-hero .tk-dashboard-title {
  padding-right: 8.5rem;
}

.form-card > .eyebrow,
.table-card-head .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(20, 86, 188, 0.08);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.form-card > .eyebrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.table-card-head .eyebrow {
  position: absolute;
  top: 0;
  right: 0;
}

.table-card .table,
.table-card .table td,
.table-card .table th {
  background: transparent;
}

.admin-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  min-height: 120px;
}

.admin-hmenu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-hmenu-group,
.permission-chip {
  border-radius: 24px;
  border: 1px solid rgba(24, 33, 38, 0.1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.admin-hmenu-group {
  padding: 1rem;
}

.admin-hmenu-title {
  margin-bottom: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-hmenu-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-hmenu-link,
.permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 33, 38, 0.1);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.admin-hmenu-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  border-color: transparent;
}

.admin-hmenu-link.is-disabled {
  color: rgba(24, 33, 38, 0.42);
  background: rgba(24, 33, 38, 0.05);
  border-style: dashed;
  cursor: not-allowed;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.compact-permission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.permission-card h2,
.permission-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.permission-category-head {
  margin-bottom: 1rem;
}

.permission-category-badge {
  padding: 0.6rem 1rem;
  font-size: 1.18rem;
  line-height: 1.1;
}

.permission-option {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(24, 33, 38, 0.06);
}

.permission-option:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Grid-based permission options als Cards */
.permission-grid > .permission-option,
.permission-grid > section.permission-card > .permission-option {
  padding: 1rem;
  border: 1px solid rgba(24, 33, 38, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border-top: none;
}

.permission-grid > .permission-option:first-of-type {
  padding: 1rem;
}

.permission-option small,
.permission-entry p,
.permission-meta {
  color: var(--muted);
}

.permission-entry {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(24, 33, 38, 0.06);
}

.permission-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.permission-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tk-admin-photo-grid {
  align-items: stretch;
}

.tk-admin-photo-grid > .tk-empty-state {
  grid-column: 1 / -1;
}

.tk-homepage-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-homepage-settings-hero-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.tk-homepage-settings-hero-toggle .tk-homepage-settings-toggle {
  margin-top: 0;
}

.tk-homepage-settings-hero-toggle[data-state="collapse"] .tk-homepage-settings-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.3);
}

.tk-homepage-settings-card {
  display: grid;
  gap: 1rem;
}

.tk-homepage-settings-collapse {
  display: grid;
  gap: 0;
}

.tk-homepage-settings-summary {
  display: grid;
  gap: 0.45rem;
  position: relative;
  cursor: pointer;
  list-style: none;
}

.tk-homepage-settings-summary::-webkit-details-marker {
  display: none;
}

.tk-homepage-settings-summary-inline {
  align-items: start;
}

.tk-homepage-settings-summary > .tk-homepage-settings-toggle {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
}

.tk-homepage-settings-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 182, 235, 0.34);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(231, 240, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tk-homepage-settings-toggle::before,
.tk-homepage-settings-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  border-radius: 999px;
  background: #2e67ae;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tk-homepage-settings-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.tk-homepage-settings-collapse[open] .tk-homepage-settings-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.3);
}

.tk-homepage-settings-toggle--chevron::before,
.tk-homepage-settings-toggle--chevron::after {
  display: none;
}

.tk-homepage-settings-toggle--chevron {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.35rem;
  margin-top: 0;
  border-radius: 0.55rem;
}

.tk-homepage-settings-summary > .tk-homepage-settings-toggle--chevron {
  top: 50%;
  transform: translateY(-50%);
}

.tk-homepage-settings-toggle--chevron img {
  width: 1rem;
  height: 1rem;
}

.tk-homepage-settings-body {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.75rem;
}

/* Reusable card for process-specific settings inside option panels. */
.tk-options-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #c4d9f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%);
}

.tk-options-card__title {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: .4rem 1.15rem;
  font-size: 1rem;
  font-weight: 800;
}

.tk-options-card--primary > .tk-options-card__title {
  background: linear-gradient(135deg, #145aa0, #2678c9);
  color: #fff;
}

.tk-options-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
}

.tk-options-card__copy {
  margin: 0;
  color: #5f7088;
}

.tk-homepage-tournament-game-classes-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(160, 191, 234, 0.42);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 255, 0.96));
}

.tk-homepage-tournament-game-classes-card h3 {
  margin: 0;
  color: #17355c;
  font-size: 1.15rem;
}

.tk-homepage-tournament-game-classes-card p {
  margin: 0.35rem 0 0;
  color: #5f7088;
}

.tk-homepage-tournament-game-class-group {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(160, 191, 234, 0.3);
  border-radius: 14px;
}

.tk-homepage-tournament-game-class-group legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 .35rem;
  color: #17355c;
  font-size: .95rem;
  font-weight: 750;
}

.tk-homepage-tournament-game-class-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .55rem 1rem;
}

.tk-homepage-tournament-game-class-list .form-check {
  margin: 0;
}

.tk-homepage-tournament-ttr-class {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr);
  align-items: end;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(126, 171, 226, .46);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(25, 72, 128, .07);
}

.tk-homepage-tournament-ttr-class > .form-check {
  align-self: end;
  margin-bottom: .55rem;
}

.tk-homepage-tournament-ttr-limit {
  display: grid;
  gap: .3rem;
  min-width: 150px;
  color: #5f7088;
  font-size: .8rem;
  font-weight: 700;
}

.tk-homepage-tournament-ttr-limit .form-control {
  min-width: 0;
}

@media (max-width: 575px) {
  .tk-homepage-tournament-ttr-class { grid-template-columns: 1fr; align-items: stretch; }
  .tk-homepage-tournament-ttr-class > .form-check { margin-bottom: 0; }
  .tk-homepage-tournament-ttr-limit { width: 100%; }
}

.tk-trainer-hours-message-warning {
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.96), rgba(247, 233, 205, 0.9));
  border-color: rgba(204, 164, 95, 0.3);
}

.tk-trainer-hours-message-warning .tk-trainer-hours-warning-state {
  border: 1px solid rgba(214, 183, 122, 0.42);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.95), rgba(247, 239, 221, 0.92));
  color: #7f5b1e;
}

.tk-trainer-hours-page .tk-trainer-hours-table-surface {
  position: relative;
  display: grid;
  gap: 1rem;
}

.tk-trainer-hours-page .tk-trainer-hours-table-head {
  display: block;
  margin-bottom: 0;
  padding-right: 9rem;
  min-height: 3.25rem;
}

.tk-trainer-hours-page .tk-trainer-hours-table-head-main {
  display: block;
}

.tk-trainer-hours-page .tk-trainer-hours-table-toolbar {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  width: auto !important;
  grid-template-columns: none !important;
  margin-left: 0;
  gap: 0.55rem;
  z-index: 1;
}

.tk-trainer-hours-page .tk-trainer-hours-table-toolbar .tk-count-badge {
  flex: 0 0 auto;
}

.tk-trainer-hours-page .tk-trainer-hours-table-summary {
  margin: 0;
  padding-top: 0.35rem;
}

.tk-trainer-hours-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
}

.tk-trainer-hours-date-filter-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  gap: 0.85rem;
  align-items: end;
}

.tk-trainer-hours-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
}

.tk-trainer-hours-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(141, 173, 220, 0.28);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(234, 243, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(31, 94, 173, 0.08);
  color: #18497f;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.tk-trainer-hours-filter-btn:hover {
  border-color: rgba(71, 128, 204, 0.38);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(223, 237, 255, 0.94));
}

.tk-trainer-hours-filter-btn.is-active {
  border-color: rgba(51, 111, 191, 0.32);
  background: linear-gradient(180deg, rgba(226, 240, 255, 0.99), rgba(205, 226, 252, 0.96));
  color: #0e4ea7;
}

.tk-trainer-hours-table {
  min-width: 760px;
}

.tk-trainer-hours-date-cell {
  display: grid;
  gap: 0.18rem;
}

.tk-trainer-hours-date-cell strong {
  color: #163e73;
}

.tk-trainer-hours-date-cell span,
.tk-trainer-hours-date-cell small {
  color: #607594;
}

.tk-trainer-hours-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-trainer-hours-modal-grid > .tk-modal-field {
  min-width: 0;
  gap: 0.3rem;
}

.tk-trainer-hours-modal-grid > .tk-modal-field > .form-label {
  margin-bottom: 0;
}

.tk-trainer-hours-modal-grid .tk-filter-select-control {
  width: 100%;
  min-width: 0;
}

.tk-trainer-hours-modal-notes {
  grid-column: 1 / -1;
}

@media (max-width: 575.98px) {
  .tk-trainer-hours-modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .tk-trainer-hours-page .tk-admin-hero-actions {
    top: 1rem;
    right: 1rem;
  }

  .tk-trainer-hours-page .tk-trainer-hours-table-head {
    padding-right: 8.25rem;
    min-height: 3rem;
  }

  .tk-trainer-hours-page .tk-trainer-hours-table-toolbar {
    top: 1rem;
    right: 1rem;
  }

  .tk-trainer-hours-date-filter-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-trainer-hours-filter-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

.tk-homepage-trainer-costs-shell {
  display: grid;
  gap: 1rem;
}

.tk-homepage-trainer-costs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.tk-homepage-trainer-costs-note {
  margin: 0;
  color: #5f7088;
  font-size: 0.95rem;
  font-weight: 600;
}

.tk-homepage-trainer-cost-list {
  display: grid;
  gap: 1rem;
}

.tk-homepage-trainer-cost-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(160, 191, 234, 0.34);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 255, 0.96));
}

.tk-homepage-trainer-cost-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-homepage-trainer-cost-card-head h3 {
  margin: 0.3rem 0 0;
  color: #17355c;
  font-size: 1.08rem;
}

.tk-homepage-trainer-cost-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 0.38fr) minmax(280px, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.tk-homepage-trainer-cost-members-field {
  display: grid;
  gap: 0.35rem;
}

.tk-homepage-settings-card-wide {
  grid-column: 1 / -1;
}

.tk-homepage-settings-card-head-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-homepage-settings-card-head {
  padding-right: 4.15rem;
}

.tk-homepage-settings-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tk-homepage-settings-card-title-wrap {
  margin: 0;
}

.tk-homepage-settings-card-title-badge {
  padding: 0.6rem 1rem;
  font-size: 1.18rem;
  line-height: 1.1;
}

.tk-homepage-settings-summary > p {
  margin: 0.45rem 0 0;
  color: #5f7088;
}

.tk-homepage-settings-name-current {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.96), rgba(233, 242, 255, 0.96));
  border: 1px solid rgba(160, 191, 234, 0.42);
}

.tk-homepage-settings-name-current span {
  color: #6a7e9e;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tk-homepage-settings-name-current strong {
  color: #153d73;
  font-size: 1.15rem;
}

.tk-homepage-settings-appearance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tk-homepage-settings-tagify,
.tk-homepage-settings-tagify.tagify {
  min-height: 3rem;
}

.tk-homepage-settings-status {
  min-height: 1.35rem;
  margin: 0;
  color: #5f7088;
  font-size: 0.95rem;
  font-weight: 600;
}

.tk-homepage-settings-status[data-tone="success"] {
  color: #14805c;
}

.tk-homepage-settings-status[data-tone="error"] {
  color: #b54747;
}

.tk-homepage-settings-status[data-tone="pending"] {
  color: #285ea8;
}

.tk-membership-delivery-log {
  margin-top: 0.85rem;
  white-space: pre-line;
  font-weight: 500;
  line-height: 1.5;
}

.tk-homepage-settings-card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.tk-homepage-settings-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 182, 235, 0.32);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(231, 240, 255, 0.96));
  color: #577097;
  font-size: 0.9rem;
  font-weight: 700;
}

.tk-homepage-settings-meta-pill strong {
  color: #14457b;
  font-size: 0.98rem;
}

.tk-homepage-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1;
  color: #17355c;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(232, 240, 252, 0.96));
  box-shadow: 0 16px 32px -28px rgba(15, 46, 90, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tk-homepage-settings-btn:hover,
.tk-homepage-settings-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -26px rgba(15, 46, 90, 0.28);
}

.tk-homepage-settings-btn img {
  width: 18px;
  height: 18px;
}

.tk-homepage-settings-btn.is-primary {
  border-color: rgba(60, 124, 211, 0.28);
  background: linear-gradient(180deg, rgba(48, 118, 215, 0.96), rgba(27, 90, 183, 0.98));
  color: #fff;
}

.tk-homepage-settings-btn.is-soft-primary {
  border-color: rgba(98, 154, 222, 0.34);
  background: linear-gradient(180deg, rgba(93, 160, 240, 0.96), rgba(59, 127, 218, 0.94));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 32px -28px rgba(54, 118, 196, 0.38);
}

.tk-homepage-settings-btn.is-soft-primary:hover,
.tk-homepage-settings-btn.is-soft-primary:focus-visible {
  border-color: rgba(70, 136, 219, 0.42);
  background: linear-gradient(180deg, rgba(110, 171, 244, 0.98), rgba(70, 136, 219, 0.96));
}

.tk-homepage-settings-btn.is-success {
  border-color: rgba(57, 150, 102, 0.34);
  background: linear-gradient(180deg, rgba(52, 172, 108, 0.96), rgba(24, 138, 80, 0.98));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 32px -28px rgba(28, 126, 74, 0.4);
}

.tk-homepage-settings-btn.is-success:hover,
.tk-homepage-settings-btn.is-success:focus-visible {
  border-color: rgba(34, 136, 82, 0.42);
  background: linear-gradient(180deg, rgba(64, 182, 118, 0.98), rgba(28, 147, 88, 0.98));
}

.tk-homepage-settings-btn.is-secondary {
  border-color: rgba(137, 172, 220, 0.32);
}

.tk-homepage-sponsors-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.tk-homepage-sponsors-editor,
.tk-homepage-sponsor-preview-shell {
  display: grid;
  gap: 1rem;
}

.tk-homepage-sponsors-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(280px, 1.04fr);
  gap: 1rem;
  align-items: start;
}

.tk-homepage-sponsor-dropzone .tk-upload-dropzone-stage {
  min-height: 220px;
}

.tk-homepage-sponsor-dropzone .tk-upload-dropzone-preview {
  min-height: 220px;
  max-height: 300px;
  object-fit: contain;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(237, 244, 255, 0.96));
}

.tk-homepage-sponsors-fields {
  display: grid;
  gap: 1rem;
}

.tk-homepage-sponsor-textarea {
  min-height: 190px;
  resize: vertical;
}

.tk-homepage-sponsors-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tk-homepage-sponsors-list-wrap {
  display: grid;
  gap: 0.9rem;
}

.tk-homepage-sponsors-list-head h3 {
  margin: 0;
  color: #17355c;
  font-size: 1.08rem;
}

.tk-homepage-sponsors-list-head p {
  margin: 0.35rem 0 0;
  color: #62758f;
}

.tk-homepage-sponsors-list-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-homepage-sponsors-list-head-inline .tk-homepage-settings-btn {
  flex: 0 0 auto;
  align-self: flex-start;
}

.tk-homepage-sponsors-form-actions form {
  margin: 0;
}

.tk-switch-field {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(191, 214, 245, 0.88);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 255, 0.96));
}

.tk-switch-field .form-check-input {
  margin-top: 0;
}

.tk-sports-settings-grid,
.tk-sports-admin-grid,
.tk-sports-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-sports-settings-panel,
.tk-sports-panel,
.tk-sports-public-panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(196, 216, 244, 0.92);
  background: linear-gradient(180deg, rgba(254, 255, 255, 0.98), rgba(243, 248, 255, 0.95));
  box-shadow: 0 22px 44px -32px rgba(16, 42, 74, 0.34);
}

.tk-sports-settings-panel-full {
  grid-column: 1 / -1;
}

.tk-sports-facility-list-panel {
  padding-top: 1.35rem;
}

.tk-sports-facility-list-head {
  gap: 0.6rem;
}

.tk-sports-facility-list-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tk-sports-facility-list-head-row h3 {
  margin: 0;
  font-size: 1.8rem;
}

.tk-sports-facility-list-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.tk-sports-admin-conflict-label {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(191, 214, 245, 0.9);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 246, 255, 0.96));
  color: #406089;
  font-weight: 700;
}

.tk-sports-admin-conflict-label.is-success {
  border-color: rgba(76, 171, 103, 0.42);
  background: linear-gradient(180deg, rgba(235, 250, 239, 0.98), rgba(222, 245, 228, 0.96));
  color: #1f7b3d;
}

.tk-sports-admin-conflict-label.is-warning {
  border-color: rgba(220, 170, 96, 0.42);
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.98), rgba(249, 238, 212, 0.96));
  color: #8a5d1f;
}

.tk-sports-facility-count-badge {
  min-width: 48px;
  justify-content: center;
}

.tk-sports-facility-modal-dialog {
  max-width: 1080px;
}

.tk-sports-booking-info-modal-dialog {
  max-width: 780px;
}

.tk-sports-booking-settings-modal-dialog {
  max-width: 860px;
}

.tk-homepage-settings-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tk-homepage-settings-modal-footer .tk-homepage-sponsors-form-actions {
  margin-left: auto;
}

.tk-sports-facility-list,
.tk-sports-reservation-list,
.tk-sports-public-list {
  display: grid;
  gap: 1rem;
}

.tk-sports-facility-card,
.tk-sports-reservation-card,
.tk-sports-public-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(188, 211, 243, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94));
}

.tk-sports-booking-shell {
  padding-top: 0.35rem;
}

.tk-sports-booking-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-sports-booking-hero-copy {
  display: grid;
  gap: 0.55rem;
}

.tk-sports-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.tk-sports-booking-layout.is-readonly {
  grid-template-columns: minmax(0, 1fr);
}

.tk-sports-booking-sidebar {
  display: grid;
  gap: 1rem;
}

.tk-sports-booking-calendar-card,
.tk-sports-booking-sidebar-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 26px;
  border: 1px solid rgba(191, 214, 245, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
  box-shadow: 0 24px 48px -34px rgba(14, 39, 74, 0.26);
}

.tk-sports-booking-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-sports-booking-card-head h2 {
  margin: 0;
  color: #17355c;
  font-size: 1.35rem;
}

.tk-sports-booking-card-head p {
  margin: 0.35rem 0 0;
  color: #5f7291;
}

.tk-sports-booking-legend-pill {
  white-space: normal;
  max-width: 260px;
  background: linear-gradient(180deg, rgba(250, 240, 221, 0.95), rgba(244, 227, 194, 0.95));
  border-color: rgba(221, 184, 118, 0.44);
  color: #7a5720;
}

.tk-sports-booking-calendar {
  min-height: 760px;
}

.tk-sports-booking-calendar .fc {
  --fc-border-color: rgba(204, 221, 245, 0.9);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(238, 245, 255, 0.7);
  --fc-list-event-hover-bg-color: rgba(232, 242, 255, 0.9);
  --fc-today-bg-color: rgba(227, 239, 255, 0.72);
  --fc-button-bg-color: #e9f1ff;
  --fc-button-border-color: rgba(153, 193, 244, 0.92);
  --fc-button-hover-bg-color: #d9e8ff;
  --fc-button-hover-border-color: rgba(96, 154, 231, 0.92);
  --fc-button-active-bg-color: #2b78ea;
  --fc-button-active-border-color: #2b78ea;
  --fc-button-text-color: #18437c;
  --fc-event-border-color: rgba(214, 174, 107, 0.68);
  --fc-event-bg-color: linear-gradient(180deg, rgba(245, 223, 180, 0.98), rgba(234, 205, 149, 0.96));
  --fc-event-text-color: #68461a;
}

.tk-sports-booking-calendar .fc .fc-toolbar-title {
  font-family: "Space Grotesk", sans-serif;
  color: #143761;
  font-size: 1.42rem;
}

.tk-sports-booking-calendar .fc .fc-toolbar.fc-header-toolbar {
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.tk-sports-booking-calendar .fc .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tk-sports-booking-calendar .fc .fc-button-group {
  display: flex;
  gap: 0.55rem;
}

.tk-sports-booking-calendar .fc .fc-button {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.tk-sports-booking-calendar .fc {
  --fc-button-bg-color: #f2f7ff;
  --fc-button-border-color: rgba(141, 173, 220, 0.42);
  --fc-button-hover-bg-color: #e6f0ff;
  --fc-button-hover-border-color: rgba(96, 148, 219, 0.48);
  --fc-button-active-bg-color: #3f8bee;
  --fc-button-active-border-color: rgba(74, 135, 221, 0.96);
}

.tk-sports-booking-calendar .fc .fc-button.fc-button-primary,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:disabled,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled):not(.fc-button-active):hover,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled):not(.fc-button-active):focus,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled).fc-button-active,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled):active {
  border-color: var(--fc-button-border-color) !important;
}

.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled):not(.fc-button-active):hover,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled):not(.fc-button-active):focus {
  border-color: var(--fc-button-hover-border-color) !important;
}

.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled).fc-button-active,
.tk-sports-booking-calendar .fc .fc-button.fc-button-primary:not(:disabled):active {
  border-color: var(--fc-button-active-border-color) !important;
}

.tk-sports-booking-calendar .fc .fc-button-group > .fc-button,
.tk-sports-booking-calendar .fc .fc-button-group > .fc-button:not(:first-child),
.tk-sports-booking-calendar .fc .fc-button-group > .fc-button:not(:last-child) {
  border-radius: 12px;
  margin-left: 0 !important;
}

.tk-sports-booking-calendar .fc .fc-button:focus,
.tk-sports-booking-calendar .fc .fc-button:focus-visible {
  box-shadow: none !important;
}

.tk-sports-booking-calendar .fc .fc-button.tk-user-icon-btn {
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid rgba(141, 173, 220, 0.42) !important;
}

.tk-sports-booking-calendar .fc .fc-button.tk-user-icon-btn:hover,
.tk-sports-booking-calendar .fc .fc-button.tk-user-icon-btn:focus-visible {
  border-color: rgba(71, 128, 204, 0.38) !important;
}

.tk-sports-booking-calendar .fc .fc-button.tk-user-icon-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.tk-sports-booking-calendar .fc .fc-button.tk-sports-booking-toolbar-icon-btn.fc-button-active {
  border-color: rgba(98, 154, 222, 0.42) !important;
  background: linear-gradient(180deg, rgba(93, 160, 240, 0.96), rgba(59, 127, 218, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 32px -28px rgba(54, 118, 196, 0.38);
}

.tk-sports-booking-calendar .fc .fc-button.tk-sports-booking-toolbar-icon-btn.fc-button-active .tk-user-icon-image {
  filter: brightness(0) invert(1);
}

.tk-sports-booking-calendar .fc .fc-button.tk-sports-booking-toolbar-icon-btn {
  padding: 0;
}

.tk-sports-booking-calendar .fc .fc-button .fc-icon {
  display: none;
}

.tk-sports-booking-calendar .fc .fc-col-header-cell-cushion,
.tk-sports-booking-calendar .fc .fc-timegrid-axis-cushion,
.tk-sports-booking-calendar .fc .fc-timegrid-slot-label-cushion {
  color: #486587;
  font-weight: 700;
}

.tk-sports-booking-calendar .fc .fc-daygrid-day-number,
.tk-sports-booking-calendar .fc .fc-timegrid-slot-label {
  color: #31557f;
}

.tk-sports-booking-calendar .fc {
  --fc-highlight-color: rgba(59, 130, 246, 0.42);
}

.tk-sports-booking-calendar .fc .fc-highlight,
.tk-sports-booking-calendar .fc .fc-timegrid-bg-harness .fc-highlight {
  background: rgba(59, 130, 246, 0.42) !important;
  background-color: rgba(59, 130, 246, 0.42) !important;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.72);
  opacity: 1 !important;
}

.tk-sports-booking-calendar .fc .fc-event-mirror,
.tk-sports-booking-calendar .fc .fc-event-mirror .fc-event,
.tk-sports-booking-calendar .fc .fc-event-mirror .fc-event-main {
  --fc-event-bg-color: #dbeafe;
  --fc-event-border-color: #60a5fa;
  --fc-event-text-color: #1e3a8a;
  background: #dbeafe !important;
  background-color: #dbeafe !important;
  border-color: #60a5fa !important;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.28) !important;
  color: #1e3a8a !important;
  opacity: 1 !important;
}

.tk-sports-booking-calendar .fc .fc-event.tk-sports-booking-selection-marker {
  background: #dbeafe !important;
  border: 2px solid #60a5fa !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
  color: #1e3a8a !important;
  opacity: 1;
}

.tk-sports-booking-calendar .fc .fc-event.tk-sports-booking-selection-marker .fc-event-main {
  color: #1e3a8a !important;
}

.tk-sports-booking-calendar .fc .fc-event.tk-sports-booking-event,
.tk-sports-booking-calendar .fc .fc-event.is-sand {
  border-radius: 14px;
  border: 1px solid rgba(216, 178, 109, 0.6);
  background: linear-gradient(180deg, rgba(245, 224, 182, 0.98), rgba(233, 205, 150, 0.96));
  color: #704d20;
  box-shadow: 0 10px 20px -16px rgba(133, 94, 33, 0.55);
}

.tk-sports-booking-calendar .fc .fc-event.is-training {
  border-radius: 14px;
  border: 1px solid rgba(220, 141, 180, 0.7);
  background: linear-gradient(180deg, rgba(249, 215, 232, 0.98), rgba(241, 188, 214, 0.96));
  color: #8e2f62;
  box-shadow: 0 10px 20px -16px rgba(163, 76, 122, 0.42);
}

.tk-sports-blocked-time-card p strong {
  color: #8e2f62;
}

.tk-sports-booking-calendar .fc .fc-event-main {
  padding: 0.25rem 0.45rem;
  font-weight: 700;
  white-space: normal;
  line-height: 1.25;
}

.tk-sports-booking-calendar .fc .fc-event.tk-manual-hall-rental-event {
  border-color: #7dd3fc !important;
  background: #bae6fd !important;
  color: #17324f !important;
}

.tk-sports-booking-calendar .fc .fc-event.tk-hall-full-block-event {
  position: relative;
  overflow: hidden;
}

.tk-sports-booking-calendar .fc .fc-event.tk-hall-full-block-event .fc-event-main,
.tk-sports-booking-calendar .fc .fc-event.tk-hall-full-block-event .fc-event-main-frame {
  height: 100%;
  overflow: hidden;
}

.tk-sports-booking-calendar .fc .tk-hall-full-block-content {
  position: relative;
  display: block;
  height: 100%;
  min-height: 100%;
}

.tk-sports-booking-calendar .fc .tk-hall-full-block-reason {
  position: absolute;
  inset: 2.75rem 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(70, 84, 94, 0.42);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.tk-hall-rental-info-card {
  position: fixed;
  z-index: 1080;
  width: min(23rem, calc(100vw - 1.5rem));
  padding: 1rem;
  border: 1px solid #bae6fd;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 50, 79, .2);
}

.tk-hall-rental-info-card__details p { margin: 0 0 .3rem; font-size: .9rem; }
.tk-hall-rental-info-card__actions { display: flex; gap: .5rem; margin-top: .8rem; }
.tk-manual-hall-booking-row { background: #eff9ff; }

.tk-sports-booking-calendar .fc .fc-timegrid-event .fc-event-main-frame,
.tk-sports-booking-calendar .fc .fc-timegrid-event .fc-event-title,
.tk-sports-booking-calendar .fc .fc-timegrid-event .fc-event-time {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tk-sports-booking-info-grid,
.tk-sports-booking-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tk-sports-booking-info-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(194, 215, 244, 0.9);
  background: rgba(255, 255, 255, 0.88);
}

.tk-sports-booking-info-item-full {
  grid-column: 1 / -1;
}

.tk-sports-booking-info-item span {
  color: #5e7393;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tk-sports-booking-info-item strong {
  color: #17355c;
  font-size: 1rem;
}

.tk-sports-booking-info-item p {
  margin: 0;
  color: #36557f;
}

.tk-sports-booking-form {
  display: grid;
  gap: 0;
}

.tk-sports-booking-facility-row {
  display: flex;
  gap: 0.75rem;
}

.tk-sports-booking-facility-row .form-select {
  flex: 1 1 auto;
}

.tk-sports-booking-facility-row .tk-homepage-settings-btn {
  flex: 0 0 auto;
}

.tk-sports-booking-facility-list {
  display: grid;
  gap: 0.5rem;
}

.tk-sports-booking-facility-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 187, 241, 0.7);
  border-radius: 0.7rem;
  background: #fff;
  color: #294d7a;
  cursor: pointer;
  font-weight: 700;
}

.tk-sports-booking-facility-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.tk-sports-booking-facility-option > label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.tk-sports-booking-facility-option .tk-homepage-settings-btn {
  margin-left: auto;
}

.tk-sports-booking-facility-option.is-unavailable {
  border-color: rgba(208, 76, 91, 0.85);
  background: rgba(255, 239, 241, 0.9);
  color: #a52b3c;
}

.tk-sports-booking-selection-summary {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(148, 187, 241, 0.92);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(234, 242, 255, 0.94));
  color: #294d7a;
  font-weight: 700;
}

.tk-hall-booking-conflict-icon { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:2rem; height:2rem; border-radius:50%; background:#d92d20; }
.tk-hall-booking-conflict-icon img { width:1.1rem; height:1.1rem; filter:brightness(0) invert(1); }
.tk-sports-booking-selection-summary:has(.tk-hall-booking-conflict-icon:not([hidden])) { display:flex; align-items:center; gap:.65rem; border-color:#f0a7a2; background:#fff7f6; color:#8a1c15; }

.tk-sports-booking-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.tk-sports-booking-form .form-check-input {
  margin-top: 0.2rem;
}

.tk-hall-rental-activity-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tk-hall-rental-activity-fields > div { flex: 1 1 8rem; min-width: 0; }
.tk-hall-rental-activity-fields > .is-date { flex-basis: 10rem; }

.tk-hall-calendar-default-event,
.tk-hall-rental-calendar-event { display: grid; gap: .18rem; min-width: 0; line-height: 1.2; }
.tk-hall-rental-calendar-event__name,
.tk-hall-rental-calendar-event__area,
.tk-hall-rental-calendar-event__purpose { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-hall-rental-calendar-event__name { font-weight: 800; }
.tk-hall-rental-calendar-event__status { justify-self: start; padding: .12rem .38rem; border-radius: 999px; background: rgba(246, 233, 211, .98); color: #9a681a; font-size: .7rem; font-weight: 800; line-height: 1.2; }

.tk-sports-booking-calendar .fc .fc-event.tk-sports-booking-selection-marker .fc-event-title {
  white-space: pre-line;
}

.tk-module-card-sports-booking {
  background:
    radial-gradient(circle at top right, rgba(230, 204, 153, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(62, 134, 221, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(244, 248, 255, 0.97));
}

.tk-module-card-sports-booking .tk-module-chip {
  background: rgba(241, 227, 196, 0.92);
  color: #8b5d16;
}

.tk-sports-facility-card-head,
.tk-sports-reservation-card-head,
.tk-sports-public-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-sports-reservation-primary {
  display: grid;
  gap: 0.55rem;
}

.tk-sports-reservation-primary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.tk-sports-facility-card-head h4,
.tk-sports-reservation-card-head h3,
.tk-sports-public-card-head h3 {
  margin: 0.2rem 0 0;
  color: #17355c;
}

.tk-sports-reservation-card-head h3 {
  font-size: 2rem;
  line-height: 1.02;
}

.tk-sports-reservation-primary-card,
.tk-sports-reservation-customer {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(188, 211, 243, 0.82);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 246, 255, 0.95));
}

.tk-sports-reservation-slot-date {
  color: #1a4f98;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.08;
}

.tk-sports-reservation-slot-time {
  color: #17355c;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.15;
}

.tk-sports-reservation-customer-label,
.tk-sports-reservation-fact-label {
  display: block;
  color: #5f7693;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tk-sports-reservation-customer-name {
  color: #17355c;
  font-size: 1.3rem;
  line-height: 1.1;
}

.tk-sports-reservation-customer-meta {
  color: #60728b;
}

.tk-sports-reservation-card-tools {
  justify-content: flex-end;
  max-width: 280px;
}

.tk-sports-reservation-card-head p,
.tk-sports-public-card p,
.tk-sports-facility-card p {
  margin: 0;
  color: #60728b;
}

.tk-sports-reservation-card-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.2rem;
}

.tk-sports-reservation-overview {
  display: grid;
  gap: 0.9rem;
}

.tk-sports-reservation-table-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(188, 211, 243, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.95));
}

.tk-sports-reservation-table {
  width: 100%;
  border-collapse: collapse;
}

.tk-sports-reservation-table th,
.tk-sports-reservation-table td {
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(201, 219, 244, 0.78);
}

.tk-sports-reservation-table tr:last-child th,
.tk-sports-reservation-table tr:last-child td {
  border-bottom: 0;
}

.tk-sports-reservation-table th {
  width: 124px;
  color: #5f7693;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(239, 246, 255, 0.7);
}

.tk-sports-reservation-table td {
  color: #17355c;
  font-size: 1rem;
  line-height: 1.5;
}

.tk-sports-reservation-table td.is-emphasis {
  font-size: 1.18rem;
  font-weight: 800;
}

.tk-sports-reservation-table td.is-strong {
  font-size: 1.22rem;
  font-weight: 900;
}

.tk-sports-reservation-status-form {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(188, 211, 243, 0.82);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.99), rgba(241, 247, 255, 0.95));
}

.tk-sports-reservation-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tk-sports-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: #47607f;
  font-size: 0.95rem;
}

.tk-sports-public-terms {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px dashed rgba(145, 181, 232, 0.85);
  background: rgba(235, 244, 255, 0.78);
  color: #37506f;
}

.tk-sports-public-reservations {
  display: grid;
  gap: 0.65rem;
}

.tk-sports-public-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tk-sports-public-shell {
  padding-top: 0.75rem;
}

.tk-sports-public-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.55rem 1.7rem;
}

body.tk-global-progress-overlay-active {
  overflow: hidden;
}

.tk-global-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 28, 56, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tk-global-progress-overlay[hidden] {
  display: none;
}

/* In der Adminnavigation werden Bereiche ohne Rollenberechtigung nicht angeboten. */
.tk-app-sidebar-submenu .tk-app-sidebar-link.is-disabled {
  display: none;
}

.tk-app-sidebar-section:not(:has(.tk-app-sidebar-submenu > .tk-app-sidebar-link:not(.is-disabled), .tk-app-sidebar-submenu > .tk-app-sidebar-link-form)) {
  display: none;
}

.tk-global-progress-overlay-card {
  width: min(100%, 420px);
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.3rem;
  border-radius: 26px;
  border: 1px solid rgba(155, 191, 239, 0.28);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(238, 245, 255, 0.97));
  box-shadow: 0 28px 60px -26px rgba(7, 28, 58, 0.38);
}

.tk-global-progress-overlay-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.35rem;
}

.tk-global-progress-overlay-heading .tk-widget-kicker {
  margin: 0;
}

.tk-global-progress-spinner {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border: 3px solid rgba(75, 143, 229, 0.22);
  border-top-color: #2876d5;
  border-radius: 50%;
  animation: tk-global-progress-spin 0.75s linear infinite;
}

@keyframes tk-global-progress-spin {
  to { transform: rotate(360deg); }
}

.tk-global-progress-overlay-card h3 {
  margin: 0;
  color: #17355c;
  font-size: 1.4rem;
}

.tk-global-progress-overlay-card p {
  margin: 0;
  color: #5d7292;
}

.tk-global-progress-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(125, 171, 233, 0.28);
  background: linear-gradient(180deg, rgba(233, 241, 255, 0.96), rgba(222, 234, 252, 0.94));
}

.tk-global-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 146, 245, 0.96), rgba(34, 113, 229, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: width 0.18s ease;
}

.tk-global-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #537095;
}

.tk-global-progress-meta strong {
  color: #123a6f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.tk-global-progress-log {
  display: grid;
  gap: .28rem;
  margin: 0;
  padding-left: 1.15rem;
  color: #537095;
  font-size: .82rem;
}

.tk-homepage-sponsors-list {
  display: grid;
  gap: 0.9rem;
}

.tk-homepage-sponsor-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(131, 176, 236, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-homepage-sponsor-item.is-active {
  border-color: rgba(44, 118, 234, 0.34);
  box-shadow: 0 0 0 4px rgba(44, 118, 234, 0.1), 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-homepage-sponsor-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(129, 171, 226, 0.24);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(234, 242, 255, 0.96));
}

.tk-homepage-sponsor-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
}

.tk-homepage-sponsor-item-copy {
  min-width: 0;
}

.tk-homepage-sponsor-item-copy span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #6a7e9e;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tk-homepage-sponsor-item-copy strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #153d73;
  font-size: 1rem;
}

.tk-homepage-sponsor-item-copy p {
  margin: 0;
  color: #17355c;
  line-height: 1.55;
}

.tk-homepage-sponsor-item-empty {
  color: #6c809e;
  font-style: italic;
}

.tk-homepage-sponsor-item-actions {
  display: flex;
  gap: 0.55rem;
}

.tk-homepage-sponsor-preview-shell {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(130, 172, 230, 0.24);
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
}

.tk-homepage-sponsor-preview-note {
  margin: 0;
  color: #5e7391;
  font-size: 0.92rem;
}

.tk-admin-photo-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
}

.tk-admin-photo-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.tk-admin-photo-link:hover .tk-admin-photo-frame,
.tk-admin-photo-link:focus-visible .tk-admin-photo-frame {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -24px rgba(16, 42, 74, 0.34);
}

.tk-admin-photo-link:focus-visible {
  outline: none;
}

.tk-admin-photo-media {
  display: flex;
  flex: 0 0 320px;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(237, 245, 255, 0.9), rgba(255, 255, 255, 0.88));
}

.tk-admin-photo-frame {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tk-admin-photo-media > img {
  display: block;
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
  max-height: 32rem;
  border-radius: 24px;
  object-fit: contain;
}

.tk-admin-photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-admin-photo-card-body {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem 0.6rem;
}

.tk-admin-photo-copy {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.tk-admin-photo-delete-form {
  flex: 0 0 auto;
  align-self: center;
}

.tk-admin-photo-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0 1.1rem 1.1rem;
}

.tk-admin-photo-card-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.tk-admin-photo-copy h3 {
  margin: 0 0 0.5rem;
}

.tk-admin-photo-copy p {
  margin: 0;
}

.tk-admin-photo-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (max-width: 767.98px) {
  .tk-homepage-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-homepage-settings-card-tools {
    justify-content: flex-start;
  }

  .tk-admin-photo-media {
    flex-basis: 260px;
  }

  .tk-homepage-trainer-costs-toolbar {
    align-items: flex-start;
  }

  .tk-homepage-trainer-cost-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-homepage-sponsor-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-homepage-sponsor-item-actions {
    justify-content: flex-start;
  }

  .tk-sports-settings-grid,
  .tk-sports-admin-grid,
  .tk-sports-public-grid,
  .tk-sports-reservation-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-sports-facility-card-head,
  .tk-sports-reservation-card-head,
  .tk-sports-public-card-head,
  .tk-sports-public-hero,
  .tk-sports-facility-list-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tk-sports-reservation-card-head h3 {
    font-size: 1.7rem;
  }

  .tk-sports-reservation-primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-sports-reservation-card-tools {
    max-width: none;
    justify-content: flex-start;
  }

  .tk-sports-reservation-slot-date {
    font-size: 1.15rem;
  }

  .tk-sports-reservation-slot-time {
    font-size: 1.15rem;
  }

  .tk-sports-reservation-table th,
  .tk-sports-reservation-table td {
    display: block;
    width: 100%;
  }

  .tk-sports-reservation-table th {
    padding-bottom: 0.25rem;
    border-bottom: 0;
    background: transparent;
  }

  .tk-sports-reservation-table td {
    padding-top: 0;
  }

  .tk-sports-reservation-actions {
    justify-content: flex-start;
  }
}

.site-footer {
  color: #eff6ff;
  background: linear-gradient(180deg, #123a72 0%, #0d2d5d 100%);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 2rem;
}

.footer-contact-item + .footer-contact-item {
  margin-top: 0.7rem;
}

.footer-contact-label {
  display: block;
  color: rgba(199, 222, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(135, 183, 255, 0.24);
  background: rgba(135, 183, 255, 0.12);
  color: #eff6ff;
  font-weight: 700;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: rgba(135, 183, 255, 0.2);
  color: #ffffff;
  outline: 0;
}

.flash-stack {
  position: sticky;
  top: 88px;
  z-index: 30;
}

.tk-toastr-container {
  position: fixed;
  top: calc(var(--site-header-height, 76px) + 1rem);
  right: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 2rem));
}

.tk-toastr {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(129, 164, 213, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
  box-shadow: 0 18px 38px rgba(16, 37, 75, 0.16);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tk-toastr::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: #1f5ead;
}

.tk-toastr.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tk-toastr.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.tk-toastr-message {
  color: #17355c;
  font-weight: 600;
  line-height: 1.5;
}

.tk-toastr-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 235, 250, 0.9);
  color: #4f6483;
  font-size: 1.1rem;
  line-height: 1;
}

.tk-toastr-close:hover {
  background: rgba(209, 225, 248, 0.96);
  color: #17355c;
}

.tk-toastr-success::before {
  background: #149347;
}

.tk-toastr-success {
  border-color: rgba(69, 183, 103, 0.24);
  background: linear-gradient(180deg, rgba(248, 255, 250, 0.98), rgba(239, 251, 243, 0.98));
}

.tk-toastr-info::before {
  background: #1f5ead;
}

.tk-toastr-warning::before {
  background: #d98a12;
}

.tk-toastr-warning {
  border-color: rgba(223, 170, 73, 0.24);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 247, 229, 0.98));
}

.tk-toastr-error::before {
  background: #d13e4c;
}

.tk-toastr-error {
  border-color: rgba(218, 88, 102, 0.24);
  background: linear-gradient(180deg, rgba(255, 248, 249, 0.98), rgba(255, 240, 242, 0.98));
}

@media (max-width: 991px) {
  .hero-grid,
  .feature-grid,
  .post-grid,
  .gallery-grid,
  .board-grid,
  .stats-grid,
  .dashboard-links,
  .gallery-preview-grid,
  .footer-grid,
  .compact-grid,
  .large-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .table-card-head,
  .permission-entry-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-hmenu {
    grid-template-columns: 1fr;
  }

  .permission-grid,
  .compact-permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-section,
  .section-block,
  .page-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    max-width: none;
  }
}

.tk-home-page,
.tk-admin-page {
  --tk-card-soft-blue-border: rgba(27, 111, 200, 0.16);
  background:
    radial-gradient(980px 420px at 86% -15%, rgba(216, 232, 255, 0.92) 0%, rgba(216, 232, 255, 0) 60%),
    radial-gradient(780px 360px at -10% 90%, rgba(228, 241, 255, 0.95) 0%, rgba(228, 241, 255, 0) 66%),
    linear-gradient(140deg, #edf3ff 0%, #f8fbff 55%, #ffffff 100%);
}

.tk-home-page .site-header,
.tk-admin-page .site-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(18, 54, 105, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.tk-home-page .navbar-brand,
.tk-home-page .nav-link,
.tk-home-page .site-header .btn-outline-light,
.tk-admin-page .navbar-brand,
.tk-admin-page .nav-link,
.tk-admin-page .site-header .btn-outline-light {
  color: #17315c;
}

.tk-home-page .navbar-toggler,
.tk-admin-page .navbar-toggler {
  border-color: rgba(23, 49, 92, 0.18);
}

.tk-admin-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 1px solid rgba(98, 154, 222, 0.38);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.98), rgba(214, 231, 252, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 24px rgba(66, 123, 197, 0.14);
}

.tk-admin-header-toggle:hover,
.tk-admin-header-toggle:focus-visible {
  border-color: rgba(70, 128, 203, 0.44);
  background: linear-gradient(180deg, rgba(242, 248, 255, 1), rgba(223, 237, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 28px rgba(66, 123, 197, 0.2);
}

.tk-admin-header-toggle:focus-visible {
  outline: 0;
}

.tk-admin-header-toggle-icon {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  opacity: 0.84;
}

.tk-home-page .brand-logo,
.tk-admin-page .brand-logo {
  filter: drop-shadow(0 6px 12px rgba(0, 95, 196, 0.14));
}

.tk-home-page .site-footer,
.tk-admin-page .site-footer {
  background: linear-gradient(180deg, #13284d 0%, #102447 100%);
}

.tk-count-badge,
.tk-count-badge-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 126, 209, 0.24);
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.98), rgba(224, 239, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 20px rgba(40, 102, 180, 0.12);
  color: #1f5ead;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.tk-count-badge.is-success {
  background: rgba(221, 243, 239, 0.98);
  color: #156a62;
}

.tk-count-badge.is-danger {
  background: rgba(255, 232, 235, 0.96);
  color: #b4233d;
}

.tk-count-badge.is-lilac,
.tk-admin-chip.is-lilac {
  background: rgba(238, 228, 255, 0.98);
  color: #7047a5;
}

.tk-tournament-registration-status-menu {
  display: inline-flex;
  position: relative;
}

.tk-tournament-registration-status-menu:has(.tk-user-action-menu:not([hidden])) {
  z-index: 31;
}

.tk-tournament-registration-status-menu > .tk-user-action-menu {
  position: fixed;
  z-index: 10000;
  right: auto;
  min-width: 10rem;
}

.tk-detail-value.tk-count-badge-capsule {
  flex: none !important;
  text-align: center !important;
  width: auto;
}

.tk-detail-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 199, 231, 0.58);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(232, 240, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(40, 102, 180, 0.06);
  color: #607594;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tk-card-surface {
  border: 1px solid var(--tk-card-soft-blue-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(21, 93, 252, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  box-shadow: 0 20px 45px -30px rgba(16, 37, 75, 0.22);
}

.tk-card-surface.is-soft-blue {
  border-color: #c4d9f4;
  background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%);
}

.tk-card-surface.is-plain {
  background: #fff;
}

.tk-home-dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.7rem;
}

.tk-dashboard-title {
  margin: 0;
  font-size: clamp(1.85rem, 2.9vw, 2.65rem);
  font-weight: 800;
  color: #13284d;
}

.tk-dashboard-copy {
  margin: 0.75rem 0 0;
  max-width: none;
  color: #5e6f88;
  line-height: 1.65;
}

.tk-kicker,
.tk-widget-kicker,
.tk-admin-kpi-label,
.tk-module-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 86, 188, 0.08);
  color: #1652b8;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Einheitlicher Atemraum zwischen Card-Kicker und direkt folgendem Titel. */
.tk-widget-kicker + h1,
.tk-widget-kicker + h2,
.tk-widget-kicker + h3 {
  margin-top: 0.5rem;
}

.tk-plan-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.tk-plan-usage-grid .tk-plan-usage-info-card {
  min-width: 0;
}

.tk-plan-usage-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: clamp(0.85rem, 4vw, 2rem);
  row-gap: 0.5rem;
  margin: 0;
  flex-wrap: wrap;
}

.tk-plan-usage-values__pair {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 0.5rem;
  min-width: 0;
}

.tk-plan-usage-values .tk-admin-chip {
  font-size: 1rem;
}

.tk-plan-usage-values__key {
  font-weight: 400;
}

.tk-plan-usage-info-card.is-success::before {
  background: #218c3a;
}

.tk-plan-usage-info-card.is-warning::before {
  background: #d97706;
}

.tk-plan-usage-info-card.is-danger::before {
  background: #c62828;
}

.tk-plan-usage-info-card .tk-admin-chip.is-success,
.tk-platform-list-panel .tk-plan-status-chip.is-success {
  background: #218c3a;
  color: #fff;
}

.tk-plan-usage-grid strong,
.tk-plan-usage-grid .tk-admin-chip {
  white-space: nowrap;
}

.tk-home-hero,
.tk-admin-hero {
  margin-top: 0.75rem;
}

.tk-context-shell,
.tk-admin-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.tk-finance-entry-receipts-title,
.tk-finance-entry-receipts-count,
.tk-finance-panel-count-badge {
  white-space: nowrap;
}

.tk-finance-panel-count-head {
  position: relative;
  align-items: flex-start;
  padding-right: 7rem;
  min-height: 2.75rem;
}

.tk-finance-panel-count-copy {
  min-width: 0;
}

.tk-finance-panel-count-badge {
  position: absolute;
  top: 0;
  right: 0;
}

.tk-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(226, 240, 255, 0.92);
  color: #165dff;
  font-weight: 700;
}

.tk-context-note,
.tk-admin-user-subline,
.tk-admin-field-note,
.tk-admin-info-item p,
.tk-inline-card p,
.tk-contact-card p {
  color: #667892;
  font-size: 0.94rem;
  line-height: 1.55;
}

.tk-module-grid,
.tk-admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tk-home-page .tk-home-shell {
  padding-top: 1.5rem;
}

.tk-home-page .container {
  max-width: min(1720px, calc(100vw - 2rem));
}

.tk-home-page .tk-module-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: start;
  column-gap: clamp(1.75rem, 2vw, 2rem);
  row-gap: clamp(1.75rem, 2vw, 2rem);
  padding-bottom: var(--tk-module-grid-expanded-card-overflow, 0px);
  perspective: 1400px;
}

.tk-home-page .tk-module-grid:has(.tk-module-card-with-image:hover) {
  z-index: 1021;
}

.tk-home-page .tk-module-card-with-image {
  min-width: 0;
}

.tk-module-card,
.tk-admin-kpi-card,
.tk-admin-panel,
.tk-widget {
  border-radius: 24px;
  border: 1px solid rgba(18, 54, 105, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.97));
  box-shadow: 0 18px 40px rgba(16, 37, 75, 0.10);
}

.tk-module-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 210px;
  padding: 1.3rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tk-home-page .tk-widget-head > div {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tk-home-page .tk-home-widget-stack > .tk-widget:nth-child(2) .tk-widget-head h2 {
  display: none;
}

.tk-module-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 14px;
  border-radius: 24px 24px 0 0;
  background: rgba(0, 129, 255, 0.18);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.tk-module-card-with-image::before {
  content: none;
}

.tk-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 93, 255, 0.24);
  box-shadow: 0 22px 46px rgba(16, 37, 75, 0.14);
}

.tk-module-card:hover::before {
  background: #0081ff;
  box-shadow: 0 6px 14px rgba(0, 129, 255, 0.22);
}

.tk-module-card h2,
.tk-widget h2,
.tk-admin-panel h2 {
  margin: 0;
  color: #13284d;
  font-size: 1.28rem;
}

.tk-module-card p,
.tk-admin-kpi-card p {
  margin: 0;
  color: #5e6f88;
  line-height: 1.6;
}

.tk-module-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  color: #58708f;
  font-weight: 700;
}

.tk-module-card-with-image {
  padding: 0;
  flex-direction: column;
  gap: 0;
  min-height: auto;
  overflow: hidden;
  grid-column: span 1;
  min-width: 240px;
}

.tk-module-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.3rem;
  background: rgba(0, 129, 255, 0.18);
  min-height: 55px;
  transition: background-color 180ms ease;
}

.tk-module-card-with-image:hover .tk-module-card-header {
  background: #0081ff;
}

.tk-module-card-header h2 {
  text-align: center;
  margin: 0;
  color: #13284d;
  font-size: 1.15rem;
  line-height: 1.3;
}

.tk-module-card-with-image:hover .tk-module-card-header h2 {
  color: #ffffff;
}

.tk-module-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: transparent;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.tk-module-card-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 1rem;
  border: 1px dashed rgba(83, 143, 219, .4);
  color: #58708f;
  font-size: .9rem;
  line-height: 1.45;
  text-align: center;
}

.tk-module-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.tk-module-card-with-image > p {
  padding: 1.3rem;
  padding-top: 1rem;
  color: #5e6f88;
  line-height: 1.6;
  margin: 0;
}

/* Homepage-Themenkarten vergrößern sich gleichmäßig aus ihrer Mitte. */
@media (hover: hover) and (min-width: 768px) {
  .tk-home-page .tk-module-card-with-image {
    transform-origin: center center;
    transition: transform 420ms cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 420ms ease, border-color 220ms ease;
    will-change: transform;
  }

  .tk-home-page .tk-module-card-with-image:hover {
    z-index: 10;
    transform: scale(1.03);
    border-color: rgba(22, 93, 255, 0.42);
    box-shadow: 0 34px 70px rgba(11, 43, 91, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-home-page .tk-module-card-with-image {
    transition: none;
  }
}

.tk-dashboard-grid,
.tk-admin-users-layout,
.tk-admin-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1rem;
}

.tk-dashboard-grid-bottom {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
}

.tk-home-widget-stack {
  display: grid;
  gap: 1.25rem;
}

.tk-home-page .tk-home-widget-stack > .tk-widget {
  padding: 1.1rem 1.15rem 1.15rem;
}

.tk-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
  gap: 1.25rem;
}

.tk-home-feature-grid > .tk-widget {
  min-width: 0;
}

.tk-home-page .tk-home-widget-stack .tk-widget-head {
  margin-bottom: 0.8rem;
}

.tk-widget,
.tk-admin-panel {
  padding: 1.3rem;
}

.tk-widget-head,
.tk-admin-panel-head,
.tk-admin-selection-head,
.table-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tk-post-stack,
.tk-admin-info-list,
.tk-admin-side-stack,
.tk-contact-list,
.tk-admin-mini-list {
  display: grid;
  gap: 0.9rem;
}

.tk-inline-card,
.tk-contact-card,
.tk-admin-info-item,
.tk-admin-mini-user,
.tk-admin-toggle-card,
.tk-admin-choice-card {
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.10);
  background: rgba(247, 251, 255, 0.92);
}

.tk-admin-choice-card {
  background: rgba(247, 251, 255, 0.92) !important;
}

.tk-inline-card {
  align-items: center;
  justify-content: space-between;
}

.tk-inline-card-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-inline-card-media {
  flex: 0 0 132px;
  width: 132px;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(18, 54, 105, 0.08);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(239, 245, 255, 0.98));
}

.tk-inline-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-inline-date {
  display: block;
  margin-bottom: 0.35rem;
  color: #6f82a3;
  font-size: 0.82rem;
  font-weight: 700;
}

.tk-inline-card strong,
.tk-admin-mini-user strong,
.tk-admin-info-item strong,
.tk-contact-card strong,
.tk-admin-user-cell strong {
  display: block;
  color: #16375f;
}

.tk-schedule-list {
  display: grid;
  gap: 0.8rem;
}

.tk-schedule-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(18, 54, 105, 0.08);
}

.tk-schedule-item:last-child {
  border-bottom: 0;
}

.tk-schedule-item strong,
.tk-admin-kpi-card strong {
  color: #13284d;
  font-family: "Space Grotesk", sans-serif;
}

.tk-highlight-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(221, 243, 239, 0.98);
  color: #156a62;
  font-weight: 700;
}

.tk-training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 0.95rem;
  align-items: start;
}

.tk-training-location-row {
  grid-column: 1 / -1;
}

.tk-training-location-note {
  display: flex;
  width: 100%;
  margin-top: 0;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  flex-direction: column;
  border-radius: 28px;
  padding: 1rem 1.2rem;
}

.tk-training-map-panel {
  min-height: 0;
}

.tk-training-map {
  display: block;
  width: 100%;
  height: 180px;
  min-height: 180px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(239, 245, 255, 0.94));
}

.tk-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.tk-home-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.tk-home-gallery-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tk-home-gallery-toggle .tk-user-icon-btn.is-active {
  border-color: rgba(22, 93, 255, 0.34);
  background: linear-gradient(180deg, rgba(228, 239, 255, 0.98), rgba(210, 229, 255, 0.94));
}

.tk-home-gallery-panel.is-grid [data-home-gallery-grid] {
  display: flex;
}

.tk-home-gallery-panel.is-grid [data-home-gallery-carousel] {
  display: none;
}

.tk-home-gallery-panel.is-carousel [data-home-gallery-grid] {
  display: none;
}

.tk-home-gallery-panel.is-carousel [data-home-gallery-carousel] {
  display: block;
}

.tk-home-gallery-grid {
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.tk-home-gallery-carousel {
  overflow: hidden;
}

.tk-home-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.tk-home-gallery-item {
  display: grid;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-content: start;
}

.tk-home-gallery-item.is-carousel {
  scroll-snap-align: start;
}

.tk-home-gallery-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 640px);
  max-height: 480px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(233, 240, 252, 0.96));
  box-shadow: 0 20px 44px rgba(16, 37, 75, 0.12);
}

.tk-home-gallery-image {
  display: block;
  width: auto;
  max-width: min(100%, 640px);
  height: auto;
  max-height: 480px;
  object-fit: contain;
}

.tk-home-gallery-caption {
  color: #16375f;
  font-weight: 700;
}

.tk-club-history { scroll-margin-top: 6rem; }
.tk-club-history-list { display: grid; gap: .8rem; }
.tk-club-history-period { border: 1px solid var(--line); border-radius: 16px; background: rgba(247,250,255,.78); overflow: hidden; }
.tk-club-history-period summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; color: #17355c; font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none; }
.tk-club-history-period summary::-webkit-details-marker { display: none; }
.tk-club-history-period summary::after { content: ""; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #e6f0ff url('/static/icons/circle-caret-down.svg') center / 1.15rem no-repeat; }
.tk-club-history-period[open] summary::after { background-image: url('/static/icons/circle-caret-up.svg'); }
.tk-club-history-list[data-club-history-reorder-url] .tk-club-history-period { cursor: grab; }
.tk-club-history-list[data-club-history-reorder-url] .tk-club-history-period.is-dragging { opacity: .55; cursor: grabbing; }
.tk-club-history-list[data-club-history-reorder-url] .tk-club-history-period.is-drop-before { box-shadow: inset 0 3px 0 #165dff; }
.tk-club-history-list[data-club-history-reorder-url] .tk-club-history-period.is-drop-after { box-shadow: inset 0 -3px 0 #165dff; }
.tk-club-history-content { padding: 0 1.15rem 1.2rem; color: #334a68; line-height: 1.7; }
.tk-club-history-content p:last-child { margin-bottom: 0; }
.tk-club-history-layout { position: relative; min-height: 1px; }
.tk-club-history-layout-item { position: absolute; overflow: hidden; }
.tk-club-history-layout-caption { position:absolute; right:0; bottom:0; left:0; max-height:50%; overflow:auto; padding:.35rem .5rem; color:#fff; background:rgba(12, 38, 70, .78); font-size:.8rem; line-height:1.35; }
.tk-club-history-layout-item > img, .tk-club-history-carousel, .tk-club-history-carousel .carousel-inner, .tk-club-history-carousel .carousel-item, .tk-club-history-carousel img { width: 100%; height: 100%; }
.tk-club-history-layout-item > img, .tk-club-history-carousel img { display: block; object-fit: cover; border-radius: 10px; box-shadow: 0 5px 14px rgba(23, 50, 79, .22); }
.tk-club-history-layout-item[data-history-image-fit="fit"] > img, .tk-club-history-layout-item[data-history-image-fit="fit"] .tk-club-history-carousel img { object-fit: contain; background: #eef3f9; }
.tk-club-history-layout-item[data-history-image-fit="stretch"] > img, .tk-club-history-layout-item[data-history-image-fit="stretch"] .tk-club-history-carousel img { object-fit: fill; }
.tk-club-history-layout-item[data-history-image-fit="original"] > img, .tk-club-history-layout-item[data-history-image-fit="original"] .tk-club-history-carousel img { width: auto; height: auto; max-width: none; max-height: none; }
.tk-club-history-carousel { overflow: hidden; border-radius: 10px; }
.tk-club-history-carousel .carousel-item { position: relative; }
.tk-club-history-layout-text { width: 100%; height: 100%; overflow: auto; white-space: pre-line; }
.tk-club-history-content figure { float: right; width: min(42%, 390px); margin: .25rem 0 1rem 1.25rem; }
.tk-club-history-content figure img { display: block; width: 100%; max-height: 330px; object-fit: contain; border-radius: 12px; background: #eef3f9; }
.tk-club-history-content figcaption { margin-top: .4rem; color: var(--muted); font-size: .86rem; text-align: center; }
.tk-club-history-content::after { content: ""; display: block; clear: both; }
@media (max-width: 700px) { .tk-club-history-content figure { float: none; width: 100%; margin: 0 0 1rem; } }

.tk-club-history-editor-viewport { max-height: min(72vh, 48rem); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; }
.tk-club-history-editor-canvas { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f8fbff; }
.tk-club-history-editor-object { position: absolute; z-index: 1; display: flex; flex-direction: column; min-width: 0; border: 2px solid transparent; background: #fff; box-shadow: 0 1px 3px rgba(23, 50, 79, .12); }
.tk-club-history-editor-object.is-selected, .tk-club-history-editor-object:focus { z-index: 2; border-color: #165dff; outline: none; }
.tk-club-history-editor-object > header { flex: 0 0 auto; padding: .3rem .55rem; color: #17355c; font-size: .8rem; cursor: grab; user-select: none; touch-action: none; }
.tk-club-history-editor-object > header:active { cursor: grabbing; }
.tk-club-history-editor-delete { display: none; position: absolute; top: .2rem; right: .2rem; z-index: 1; border: 0; border-radius: .3rem; padding: .2rem .4rem; color: #fff; background: #b42318; font-size: .72rem; line-height: 1.2; }
.tk-club-history-editor-object.is-selected .tk-club-history-editor-delete, .tk-club-history-editor-object:focus .tk-club-history-editor-delete { display: inline-flex; }
.tk-club-history-editor-object-content { flex: 1 1 auto; min-height: 0; padding: .5rem; overflow: auto; white-space: pre-wrap; }
.tk-club-history-editor-object-content.has-caption-field { display:flex; flex-direction:column; gap:.35rem; }
.tk-club-history-editor-caption-field { display:grid; flex:0 0 auto; gap:.2rem; color:#17355c; font-size:.75rem; }
.tk-club-history-editor-caption-field textarea { min-height:3.8rem; resize:vertical; font-size:.8rem; }
.tk-club-history-editor-object-content img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-club-history-editor-object[data-image-fit="fit"] .tk-club-history-editor-object-content > img, .tk-club-history-editor-object[data-image-fit="fit"] .tk-club-history-dropzone-stage > img { object-fit: contain; background: #eef3f9; }
.tk-club-history-editor-object[data-image-fit="stretch"] .tk-club-history-editor-object-content > img, .tk-club-history-editor-object[data-image-fit="stretch"] .tk-club-history-dropzone-stage > img { object-fit: fill; }
.tk-club-history-editor-object[data-image-fit="original"] .tk-club-history-editor-object-content > img, .tk-club-history-editor-object[data-image-fit="original"] .tk-club-history-dropzone-stage > img { width: auto; height: auto; max-width: none; max-height: none; }
.tk-club-history-editor-object > i { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #165dff; cursor: nwse-resize; touch-action: none; }
.tk-club-history-dropzone { display: flex; flex-direction: column; gap: .45rem; }
.tk-club-history-dropzone-stage { display: grid; flex: 1 1 auto; min-height: 0; place-items: center; overflow: hidden; border: 1px dashed #8aabd3; color: #55708d; cursor: pointer; }
.tk-club-history-dropzone-stage img { width: 100%; height: 100%; object-fit: cover; }
.tk-club-history-image-fit-options { display:flex; flex:0 0 auto; flex-wrap:wrap; gap:.45rem .8rem; align-items:center; color:#17355c; font-size:.75rem; }
.tk-club-history-image-fit-options legend { float:none; width:auto; margin:0 .15rem 0 0; color:inherit; font-size:inherit; font-weight:700; }
.tk-club-history-image-fit-options label { display:inline-flex; align-items:center; gap:.25rem; cursor:pointer; }
.tk-club-history-image-fit-options input { margin:0; }
.tk-club-history-dropzone-thumbnails { display: flex; flex: 0 0 auto; gap: .35rem; min-width: 0; overflow-x: auto; padding-bottom: .1rem; }
.tk-club-history-dropzone-thumbnail { position: relative; flex: 0 0 3.25rem; height: 2.5rem; overflow: hidden; border: 2px solid transparent; border-radius: .3rem; cursor: grab; }
.tk-club-history-dropzone-thumbnail.is-active { border-color: #165dff; }
.tk-club-history-dropzone-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.tk-club-history-dropzone-thumbnail button { position: absolute; top: 0; right: 0; width: 1rem; height: 1rem; border: 0; padding: 0; border-radius: 0 0 0 .25rem; color: #fff; background: #b42318; line-height: 1; }
.tk-club-history-dropzone-add { flex: 0 0 auto; align-self: center; border: 0; border-radius: .3rem; padding: .25rem .45rem; color: #165dff; background: #e6f0ff; font-size: .75rem; white-space: nowrap; }

.tk-home-sponsor-card {
  overflow: hidden;
}

.tk-module-card-join {
  background: linear-gradient(180deg, rgba(245, 252, 255, 0.98), rgba(226, 240, 255, 0.94));
  border-color: rgba(93, 148, 218, 0.28);
}

.tk-membership-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 1.65rem;
  border-radius: 30px;
  border: 1px solid rgba(99, 149, 213, 0.24);
  background: linear-gradient(180deg, rgba(234, 245, 255, 0.98), rgba(247, 251, 255, 0.96));
}

/* Override for membership application page - only hero section should be rectangular */
body.tk-membership-application-page section.tk-membership-hero,
section.tk-membership-application-page section.tk-membership-hero {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
}

.tk-membership-hero > div {
  flex: 1;
}

.tk-membership-hero .tk-widget-kicker {
  padding: 0.5rem 1.1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.tk-membership-application-page .narrow-container {
  max-width: min(1180px, calc(100vw - 2rem));
}

.tk-membership-page-stack {
  display: grid;
  gap: 1.5rem;
}

.tk-membership-application-form {
  display: grid;
  gap: 1.5rem;
  padding: 1.35rem;
}

.tk-membership-section-copy,
.tk-membership-panel-copy {
  margin: 0.35rem 0 0;
  color: #60708a;
}

.tk-membership-checklist {
  display: grid;
  gap: 0.85rem;
}

.tk-membership-required-asterisk {
  margin-left: 0.2rem;
  color: #cf4352;
  font-weight: 800;
}

.tk-membership-submit-row {
  display: flex;
  justify-content: flex-end;
}

.tk-membership-submit-tooltip {
  display: inline-flex;
}

.tk-membership-submit-btn {
  min-width: 220px;
}

.tk-membership-submit-icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(53, 117, 201, 0.18);
}

.tk-membership-submit-icon-btn {
  background: linear-gradient(180deg, rgba(229, 243, 255, 0.99), rgba(194, 223, 255, 0.97));
  border-color: rgba(88, 141, 215, 0.32);
}

.tk-membership-submit-icon-btn .tk-season-icon-image {
  filter: brightness(0) saturate(100%) invert(22%) sepia(34%) saturate(1372%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.tk-membership-submit-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.tk-membership-submit-icon-btn[aria-disabled="true"] {
  box-shadow: 0 12px 24px rgba(53, 117, 201, 0.12);
}

.tk-membership-submit-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid #e74c3c;
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.99), rgba(255, 230, 230, 0.97));
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: #17355c;
}

.tk-membership-submit-hero-btn:hover {
  border-color: #d63c2d;
  box-shadow: 0 12px 32px rgba(231, 76, 60, 0.25);
  transform: translateY(-2px);
}

.tk-membership-submit-hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.tk-membership-submit-hero-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.tk-membership-submit-hero-btn .tk-season-icon-image {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(22%) sepia(34%) saturate(1372%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.tk-membership-submit-text {
  font-weight: 600;
}

.tk-membership-submit-primary {
  border-color: rgba(88, 141, 215, 0.32);
  background: linear-gradient(180deg, rgba(229, 243, 255, 0.99), rgba(194, 223, 255, 0.97));
  color: #2a5ca6;
}

.tk-membership-submit-primary:hover {
  border-color: rgba(88, 141, 215, 0.5);
  background: linear-gradient(180deg, rgba(210, 235, 255, 0.99), rgba(175, 215, 255, 0.97));
  box-shadow: 0 12px 32px rgba(53, 117, 201, 0.2);
  transform: translateY(-2px);
}

.tk-membership-submit-primary .tk-season-icon-image {
  filter: brightness(0) saturate(100%) invert(22%) sepia(34%) saturate(1372%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.tk-membership-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

/* Die Antragsliste folgt der Mitgliederakte: Liste unter dem Hero, Details darunter. */
.tk-membership-admin-layout > .tk-membership-admin-list-panel,
.tk-membership-admin-layout > .tk-membership-admin-detail-panel {
  min-width: 0;
}

.tk-membership-template-admin-layout {
  --tk-split-primary-width: 400px;
  --tk-split-primary-min: 320px;
  --tk-split-primary-max: 560px;
  --tk-split-secondary-min: 560px;
  row-gap: 1rem;
}

.tk-message-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.tk-message-admin-layout > .tk-message-admin-list-panel,
.tk-message-admin-layout > .tk-message-admin-detail-panel {
  min-width: 0;
}

.tk-announcement-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.tk-announcement-admin-layout > .tk-announcement-admin-list-panel,
.tk-announcement-admin-layout > .tk-announcement-admin-detail-panel {
  min-width: 0;
}

.tk-announcement-list-grid {
  margin-bottom: 0;
}

.tk-announcement-grid-row {
  cursor: pointer;
}

.tk-membership-admin-list-panel,
.tk-membership-admin-detail-panel,
.tk-membership-template-list-panel,
.tk-membership-template-detail-panel,
.tk-message-admin-list-panel,
.tk-message-admin-detail-panel,
.tk-announcement-admin-list-panel,
.tk-announcement-admin-detail-panel {
  display: flex;
  flex-direction: column;
}

.tk-membership-admin-list {
  display: grid;
  gap: 0.85rem;
}

/* Filter controls stay above the cards; pagination follows the grid with clear separation. */
.tk-membership-admin-list-panel {
  display: flex;
  flex-direction: column;
}

.tk-membership-admin-list-panel .tk-membership-applications-toolbar {
  display: contents;
}

.tk-membership-admin-list-panel .tk-membership-applications-status-form {
  width: 16rem;
  flex: 0 0 16rem;
}

.tk-membership-admin-list-panel .tk-membership-applications-filter-group {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(16rem, 1fr) minmax(23rem, 1.35fr);
  gap: 0.45rem;
  order: 1;
  max-width: 58rem;
}

.tk-membership-application-search-wrap {
  position: relative;
  min-width: 0;
}

.tk-membership-application-search-wrap input {
  padding-right: 2.5rem;
}

.tk-membership-application-search-clear {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54749a;
  font-size: 1.25rem;
  line-height: 1;
}

.tk-membership-application-search-clear:hover,
.tk-membership-application-search-clear:focus-visible {
  background: #e8f1fc;
  color: #1768c2;
}

.tk-membership-admin-list-panel .tk-membership-admin-list {
  order: 2;
}

.tk-membership-admin-list-panel .tk-membership-applications-toolbar-meta {
  order: 3;
  margin-left: 0;
  justify-content: flex-start;
}

.tk-membership-admin-list-panel .tk-membership-applications-toolbar-meta .tk-user-pagination-links {
  justify-content: flex-start;
}

.tk-membership-admin-list-panel .tk-membership-applications-toolbar-meta > .tk-user-page-size-form {
  margin-left: auto;
}

.tk-membership-template-list {
  display: grid;
  gap: 0.85rem;
}

.tk-message-admin-list {
  display: grid;
  gap: 0.85rem;
}

.tk-announcement-admin-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.65rem;
}

.tk-membership-admin-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 92, 0.1);
  background: rgba(246, 250, 255, 0.92);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tk-membership-template-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 92, 0.1);
  background: rgba(246, 250, 255, 0.92);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tk-message-admin-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 92, 0.1);
  background: rgba(246, 250, 255, 0.92);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tk-announcement-admin-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 92, 0.1);
  background: rgba(246, 250, 255, 0.92);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tk-membership-admin-card:hover,
.tk-membership-admin-card:focus-visible,
.tk-membership-admin-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(74, 128, 200, 0.34);
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.98), rgba(228, 240, 255, 0.96));
  box-shadow: 0 18px 32px rgba(30, 67, 120, 0.12);
}

.tk-membership-template-card:hover,
.tk-membership-template-card:focus-visible,
.tk-membership-template-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(74, 128, 200, 0.34);
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.98), rgba(228, 240, 255, 0.96));
  box-shadow: 0 18px 32px rgba(30, 67, 120, 0.12);
}

.tk-membership-template-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.tk-membership-template-search-wrap,
.tk-membership-template-filter-wrap {
  width: 100%;
}

.tk-membership-template-panel-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.tk-membership-template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-membership-template-rich-copy {
  color: #577097;
  line-height: 1.65;
}

.tk-membership-template-designer-form {
  display: grid;
  gap: 1rem;
}

.tk-membership-template-designer-layout {
  --tk-split-primary-width: 980px;
  --tk-split-primary-min: 640px;
  --tk-split-primary-max: 1320px;
  --tk-split-secondary-min: 280px;
}

.tk-membership-template-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.tk-membership-template-toolbar-row.tk-membership-template-canvas-toolbar {
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.tk-membership-template-canvas-components-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0.75rem;
}

.tk-membership-template-canvas-components-row .tk-membership-template-palette,
.tk-membership-template-canvas-components-row .tk-membership-template-arrange-actions {
  gap: 0;
}

.tk-membership-template-toolbar-btn {
  flex: 0 0 auto;
}

.tk-membership-template-palette,
.tk-membership-template-arrange-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tk-membership-template-component-list,
.tk-membership-template-properties {
  display: grid;
  gap: 0.75rem;
}

.tk-membership-template-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tk-membership-template-page-tabs .tk-user-icon-btn {
  min-width: 5.25rem;
  white-space: nowrap;
}

.tk-membership-template-page-tabs .tk-user-icon-btn.is-active {
  border-color: rgba(74, 135, 214, 0.52);
  background: linear-gradient(180deg, rgba(93, 160, 240, 0.96), rgba(59, 127, 218, 0.94));
  box-shadow: 0 16px 28px -22px rgba(43, 104, 185, 0.42);
  color: #ffffff;
}

.tk-membership-template-page-tabs .tk-user-icon-btn.is-active .tk-user-icon-image {
  filter: brightness(0) invert(1);
}

.tk-membership-template-canvas-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.tk-membership-template-page-stage {
  overflow: auto;
  position: relative;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(230, 240, 250, 0.5), rgba(240, 245, 255, 0.3));
}

.tk-membership-template-properties-panel {
  max-width: 420px;
}

.tk-membership-template-properties-panel .tk-admin-panel-head {
  margin-bottom: 0.75rem;
}

.tk-template-designer-page {
  position: relative;
  width: 794px;
  min-height: 1123px;
  border-radius: 0;
  border: 1px dashed rgba(155, 186, 231, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  margin: 20px 20px 20px 20px;
}

.tk-template-designer-component {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  border: 1px dashed rgba(118, 160, 225, 0.48);
  padding: 0.25rem;
  background: transparent;
  cursor: pointer;
}

.tk-template-designer-selection-box {
  position: absolute;
  border: 1px dashed rgba(48, 118, 222, 0.75);
  background: rgba(48, 118, 222, 0.12);
  border-radius: 10px;
  pointer-events: none;
  z-index: 20;
}

.tk-template-designer-component-content {
  width: 100%;
  height: 100%;
  background: transparent;
}

.tk-template-designer-resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(48, 118, 222, 0.92);
  box-shadow: 0 4px 10px rgba(23, 49, 92, 0.2);
  cursor: nwse-resize;
  display: none;
  pointer-events: none;
}

.tk-template-designer-component.is-selected .tk-template-designer-resize-handle {
  display: block;
  pointer-events: auto;
}

.tk-template-designer-resize-handle.is-n,
.tk-template-designer-resize-handle.is-s,
.tk-template-designer-resize-handle.is-e,
.tk-template-designer-resize-handle.is-w {
  width: 12px;
  height: 12px;
}

.tk-template-designer-resize-handle.is-n { top: -7px; left: calc(50% - 6px); cursor: ns-resize; }
.tk-template-designer-resize-handle.is-s { bottom: -7px; left: calc(50% - 6px); cursor: ns-resize; }
.tk-template-designer-resize-handle.is-e { right: -7px; top: calc(50% - 6px); cursor: ew-resize; }
.tk-template-designer-resize-handle.is-w { left: -7px; top: calc(50% - 6px); cursor: ew-resize; }
.tk-template-designer-resize-handle.is-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.tk-template-designer-resize-handle.is-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.tk-template-designer-resize-handle.is-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.tk-template-designer-resize-handle.is-se { right: -7px; bottom: -7px; cursor: nwse-resize; }

.tk-template-designer-component.is-selected {
  border-color: rgba(48, 118, 222, 0.9);
  box-shadow: 0 0 0 3px rgba(48, 118, 222, 0.15);
  background: transparent;
}

.tk-template-designer-component.is-selected.is-field,
.tk-template-designer-component.is-selected.is-table,
.tk-template-designer-component.is-selected.is-image {
  box-shadow: none;
}

.tk-template-designer-component.is-selected .tk-template-designer-component-content,
.tk-template-designer-component.is-selected .tk-template-designer-component-content > * {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
}

.tk-template-designer-component.is-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tk-template-designer-component.is-image {
  background: transparent;
}

.tk-template-designer-component.is-image .tk-template-designer-component-content {
  display: block;
  background: transparent;
}

.tk-template-designer-image-dropzone {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 140px;
  padding: 0.85rem;
  border: 0;
  border: 1px dashed rgba(118, 160, 225, 0.68);
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(235, 243, 255, 0.96));
  color: #577097;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tk-template-designer-component.is-image .tk-template-designer-image-dropzone {
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(235, 243, 255, 0.96)) !important;
  color: #577097 !important;
}

.tk-template-designer-image-dropzone-icon {
  width: 34px;
  height: 34px;
  opacity: 0.88;
}

.tk-template-designer-image-dropzone strong {
  color: #17355c;
  font-size: 0.92rem;
}

.tk-template-designer-image-dropzone span {
  color: #577097;
}

.tk-template-designer-image-dropzone small {
  color: #6c7f9a;
}

.tk-template-designer-image-dropzone.is-dragover,
.tk-template-designer-image-dropzone:hover,
.tk-template-designer-image-dropzone:focus-visible {
  border-color: rgba(48, 118, 222, 0.86);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.98), rgba(224, 238, 255, 0.96));
  box-shadow: 0 0 0 4px rgba(48, 118, 222, 0.12);
  outline: 0;
}

.tk-template-designer-component.is-image .tk-template-designer-component-content,
.tk-template-designer-component.is-table .tk-template-designer-component-content,
.tk-template-designer-component.is-field .tk-template-designer-component-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #577097;
}

.tk-template-designer-component.is-image .tk-template-designer-component-content span,
.tk-template-designer-component.is-table .tk-template-designer-component-content span,
.tk-template-designer-component.is-field .tk-template-designer-component-content span {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.tk-template-designer-component.is-line {
  padding: 0;
  border: 0;
}

.tk-template-designer-property-field {
  display: grid;
  gap: 0.35rem;
}

.tk-template-designer-properties-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(165, 196, 238, 0.3);
  background: rgba(245, 249, 255, 0.7);
  color: #4d6588;
  font-size: 0.9rem;
}

.tk-template-designer-properties-meta strong {
  color: #17355c;
  font-weight: 700;
}

.tk-template-designer-properties-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.tk-template-designer-component-chip.is-active {
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.98), rgba(228, 240, 255, 0.96));
}

.tk-membership-template-designer-flags {
  display: grid;
  gap: 0.55rem;
  padding-top: 2rem;
}

.tk-membership-template-catalog-grid {
  align-items: stretch;
}

.tk-membership-template-catalog-item {
  text-decoration: none;
  color: inherit;
}

.tk-membership-template-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-membership-template-public-form {
  display: grid;
  gap: 1.25rem;
}

.tk-template-doc-page-shell {
  overflow-x: visible;
}

.tk-template-doc-page {
  position: relative;
  width: var(--tk-doc-width, 794px);
  min-height: var(--tk-doc-height, 1123px);
  border-radius: 28px;
  border: 1px solid rgba(188, 211, 243, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  box-shadow: 0 26px 42px -30px rgba(16, 42, 74, 0.24);
}

.tk-template-doc-component {
  position: absolute;
}

.tk-template-doc-text {
  display: flex;
  white-space: pre-wrap;
  line-height: 1.3;
}

.tk-template-doc-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tk-template-doc-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px dashed rgba(118, 160, 225, 0.48);
  color: #577097;
}

.tk-template-doc-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.tk-template-doc-table th,
.tk-template-doc-table td {
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(23, 49, 92, 0.24);
  vertical-align: top;
}

.tk-template-doc-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.tk-template-doc-radio-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  max-width: 100% !important;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.tk-template-doc-radio-group legend {
  display: block !important;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  white-space: normal;
  margin-right: 0;
  width: 100% !important;
  min-width: auto !important;
}

.tk-template-doc-radio-group .tk-template-doc-radio-options {
  display: flex !important;
  flex-direction: row;
  flex: 1;
  width: 100%;
  flex-wrap: wrap;
}

.tk-template-doc-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tk-template-doc-field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #17355c;
  flex-shrink: 0;
  min-width: -webkit-fill-available;
}

.tk-template-doc-field > input,
.tk-template-doc-field > textarea {
  flex: 1;
}

.tk-template-doc-radio-options {
  display: flex !important;
  gap: 0.75rem;
  flex-wrap: wrap !important;
  align-items: flex-start;
}

.tk-template-doc-radio-options.is-horizontal {
  flex-direction: row !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: auto !important;
}

.tk-template-doc-radio-options.is-vertical {
  flex-direction: column !important;
  gap: 0.45rem;
  width: auto;
  flex-wrap: wrap;
}

.tk-template-doc-radio-options .tk-member-form-checkbox {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: -webkit-fill-available !important;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .tk-membership-template-designer-layout {
    --tk-split-primary-width: 100%;
    --tk-split-primary-min: 0px;
    --tk-split-primary-max: 100%;
    --tk-split-secondary-min: 0px;
  }
}

.tk-message-admin-card:hover,
.tk-message-admin-card:focus-visible,
.tk-message-admin-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(122, 191, 147, 0.42);
  background: linear-gradient(180deg, rgba(241, 251, 244, 0.98), rgba(231, 246, 236, 0.96));
  box-shadow: 0 18px 32px rgba(47, 108, 69, 0.12);
}

.tk-announcement-admin-card:hover,
.tk-announcement-admin-card:focus-visible,
.tk-announcement-admin-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(92, 147, 223, 0.34);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.98), rgba(228, 239, 255, 0.96));
  box-shadow: 0 18px 32px rgba(30, 67, 120, 0.12);
}

.tk-user-pagination-bar.tk-membership-applications-toolbar {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-top: 0;
  border-top: 0;
  justify-content: space-between;
}

.tk-membership-applications-toolbar .tk-user-page-size-form {
  justify-content: flex-start;
}

.tk-membership-applications-status-form {
  flex: 0 1 auto;
}

.tk-membership-applications-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.tk-membership-applications-toolbar-meta .tk-user-pagination-links {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

.tk-membership-applications-toolbar-meta > .tk-user-page-size-form {
  margin-left: auto;
}

.tk-membership-status-select {
  width: 16rem;
  min-width: 16rem;
}

.tk-membership-applications-department-form,
.tk-membership-applications-department-form .tk-filter-select-control,
.tk-membership-applications-department-form .tk-filter-select-trigger {
  width: 23rem;
  min-width: 23rem;
}

@media (max-width: 1199.98px) {
  .tk-membership-admin-list-panel .tk-membership-applications-filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 40rem;
  }

  .tk-membership-admin-list-panel .tk-membership-applications-status-form,
  .tk-membership-admin-list-panel .tk-membership-applications-department-form,
  .tk-membership-admin-list-panel .tk-membership-applications-department-form .tk-filter-select-control,
  .tk-membership-admin-list-panel .tk-membership-applications-department-form .tk-filter-select-trigger {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .tk-membership-admin-page .tk-membership-applications-filter-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-membership-admin-page .tk-membership-admin-list-panel .tk-membership-applications-toolbar {
    display: contents;
  }

  .tk-membership-admin-page .tk-membership-admin-list-panel .tk-admin-panel-head {
    position: relative;
    padding-right: 5.25rem;
  }

  .tk-membership-admin-page .tk-membership-admin-list-panel .tk-admin-panel-head .tk-count-badge {
    position: absolute;
    top: 0;
    right: 0;
  }

  .tk-membership-admin-page .tk-user-pagination-bar.tk-membership-applications-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
  }

  .tk-membership-admin-page .tk-membership-applications-status-form {
    width: 100%;
  }

  .tk-membership-admin-page .tk-membership-applications-filter-group {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    width: 100%;
  }

  .tk-membership-admin-page .tk-membership-applications-status-form .tk-membership-status-select {
    width: 100%;
    min-width: 0;
  }

  .tk-membership-admin-page .tk-membership-applications-toolbar-meta {
    width: 100%;
    margin-left: 0;
    display: flex;
    min-height: 0;
    margin-bottom: 0.5rem;
    padding: 0;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .tk-membership-admin-page .tk-membership-applications-toolbar-meta .tk-user-pagination-links {
    justify-content: flex-start;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tk-membership-admin-page .tk-membership-applications-toolbar-meta .tk-user-page-size-form {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-direction: row !important;
    margin-left: 0;
    gap: 0.45rem;
  }

  .tk-membership-admin-page .tk-membership-admin-list-panel .tk-membership-applications-toolbar-meta > .tk-user-page-size-form {
    margin-left: 0;
  }

  .tk-membership-admin-page .tk-membership-admin-detail-head {
    min-height: 3rem;
    padding-right: 5.75rem;
  }

  .tk-membership-admin-page .tk-membership-admin-detail-head .tk-season-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
  }

  .tk-membership-admin-page .tk-membership-detail-table td:first-child {
    width: 8rem;
    min-width: 8rem;
  }
}

.tk-membership-admin-card-head,
.tk-membership-admin-detail-head,
.tk-message-admin-card-head,
.tk-message-admin-detail-head,
.tk-announcement-admin-card-head,
.tk-announcement-admin-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-membership-admin-detail-head {
  position: relative;
}

.tk-announcement-admin-card-head-copy {
  display: grid;
  gap: 0.35rem;
}

.tk-announcement-admin-card-head-copy strong {
  color: #12345f;
  font-size: 1.05rem;
}

.tk-announcement-admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tk-message-admin-card-head-copy {
  display: grid;
  gap: 0.45rem;
}

.tk-message-admin-card-head-copy strong {
  color: #12345f;
}

.tk-message-admin-card-head-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tk-membership-admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1rem;
}

.tk-message-admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-announcement-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tk-membership-detail-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 161, 218, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.96));
  box-shadow: 0 16px 34px -28px rgba(17, 54, 106, 0.42);
}

.tk-membership-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(31, 112, 229, 0.78), rgba(74, 191, 214, 0.52));
}

.tk-membership-detail-card-wide {
  grid-column: 1 / -1;
}

.tk-membership-detail-card .tk-widget-kicker {
  margin-bottom: 0.35rem;
}

.tk-membership-detail-card .tk-member-info-list {
  gap: 0;
  margin-top: 0.75rem;
}

.tk-membership-detail-card .tk-member-info-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(128, 174, 233, 0.16);
}

.tk-membership-detail-card .tk-member-info-row:last-child {
  border-bottom: 0;
}

.tk-membership-detail-card .tk-member-info-row .tk-data-key-badge {
  display: block;
  justify-self: start;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60738f;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: left;
}

.tk-membership-detail-value {
  min-width: 0;
  max-width: 100%;
  color: #334a68;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
}

.tk-membership-detail-value .tk-admin-status-chip {
  display: inline-flex;
}

.tk-membership-delivery-log {
  margin-top: 0.8rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(128, 174, 233, 0.16);
  color: #60738f;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-line;
}

.tk-membership-contribution-total {
  margin-top: 0.15rem;
  border-top: 1px solid rgba(73, 132, 211, 0.3);
  border-bottom: 0 !important;
}

.tk-membership-contribution-total .tk-data-key-badge,
.tk-membership-contribution-total .tk-membership-detail-value {
  color: #234e87;
  font-weight: 600;
}

.tk-membership-contribution-note {
  margin: 0.75rem 0 0;
  color: #71839c;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
}

.tk-membership-audit-list {
  display: grid;
  gap: 0;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.tk-membership-audit-entry {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(128, 174, 233, 0.16);
}

.tk-membership-audit-entry:last-child {
  border-bottom: 0;
}

.tk-membership-audit-marker {
  width: 9px;
  height: 9px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #6b9edf;
  box-shadow: 0 0 0 4px rgba(107, 158, 223, 0.14);
}

.tk-membership-audit-entry[data-tone="success"] .tk-membership-audit-marker {
  background: #48a871;
  box-shadow: 0 0 0 4px rgba(72, 168, 113, 0.14);
}

.tk-membership-audit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #334a68;
  font-size: 0.95rem;
  font-weight: 500;
}

.tk-membership-audit-head time,
.tk-membership-audit-entry p {
  color: #60738f;
  font-size: 0.86rem;
  font-weight: 400;
}

.tk-membership-audit-head time {
  flex: 0 0 auto;
}

.tk-membership-audit-entry p {
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.tk-membership-detail-card-head {
  margin-bottom: 0.75rem;
}

.tk-membership-detail-section-badge {
  min-height: 2rem;
  padding-inline: 0.85rem;
  font-size: 0.82rem;
}

.tk-membership-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tk-membership-detail-table tr + tr td {
  border-top: 1px solid rgba(18, 54, 105, 0.08);
}

.tk-membership-detail-table td {
  padding: 0.6rem 0;
  vertical-align: top;
}

.tk-membership-detail-table td:first-child {
  width: 8rem;
  min-width: 8rem;
  padding-right: 1rem;
  white-space: nowrap;
}

.tk-membership-detail-table td:first-child .tk-data-key-badge {
  width: 8rem;
  max-width: 8rem;
  padding-inline: 0.45rem;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

.tk-membership-detail-table td + td {
  padding-left: 0.55rem;
}

.tk-membership-detail-table strong {
  display: block;
  min-width: 0;
  color: #12345f;
}

/* Announcement details use the quiet Stammdaten presentation as well. */
.tk-announcement-admin-detail-panel .tk-membership-detail-card:not(.tk-announcement-detail-card-wide) {
  box-shadow: 0 12px 28px -30px rgba(17, 54, 106, 0.32);
}

.tk-announcement-admin-detail-panel .tk-membership-detail-table td:first-child .tk-data-key-badge {
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60738f;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
}

.tk-announcement-admin-detail-panel .tk-membership-detail-table td {
  padding-block: 0.7rem;
}

.tk-announcement-admin-detail-panel .tk-membership-detail-table td + td {
  text-align: right;
}

.tk-announcement-admin-detail-panel .tk-membership-detail-table strong {
  font-weight: 400;
}

.tk-announcement-admin-detail-panel .tk-membership-address-value {
  align-items: flex-start;
  text-align: right;
}


.tk-membership-address-value {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  align-items: flex-end;
}

.tk-membership-address-value > span {
  display: block;
}

.tk-message-list-grid {
  margin-bottom: 0;
}

.tk-message-grid-row {
  cursor: pointer;
}

.tk-message-admin-card-copy {
  color: #587091;
  line-height: 1.55;
}

.tk-comments-admin-surface {
  padding: 1.35rem;
}

.tk-comments-list-grid-wrap {
  border: 1px solid rgba(120, 161, 218, 0.24);
  border-radius: 1.15rem;
  overflow: hidden;
}

.tk-reservations-table { margin-bottom: 0; min-width: 980px; }
.tk-reservation-grid-row { cursor: pointer; }

/* Reservation lists keep every control inside the card; wide tables scroll in
   their central responsive wrapper instead of widening the card or pagination. */
.tk-reservations-list-card,
.tk-reservations-list-content,
.tk-reservations-list-card .row,
.tk-reservations-list-card .row > * {
  min-width: 0;
  max-width: 100%;
}

.tk-reservations-list-card .tk-homepage-sponsors-list-head-inline,
.tk-reservations-list-card .tk-sports-facility-list-tools {
  flex-wrap: wrap;
  max-width: 100%;
}

.tk-reservations-list-card .tk-homepage-sponsors-list-head-inline > :first-child {
  min-width: 0;
}

.tk-reservations-list-card .table-responsive.tk-member-list-grid-wrap,
.tk-reservations-list-card .table-responsive.tk-global-grid-surface {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.tk-reservations-list-card .tk-user-pagination-bar,
.tk-reservations-list-card .tk-user-pagination-links,
.tk-reservations-list-card .tk-user-page-size-form {
  max-width: 100%;
}

/* Identical footer spacing for both reservation tabs. */
.tk-reservation-detail-card { margin-top: 1.5rem; border: 1px solid rgba(120, 161, 218, 0.24); border-radius: 1.15rem; background: rgba(250, 252, 255, 0.98); box-shadow: 0 18px 36px -26px rgba(23, 47, 104, 0.2); }

.tk-comments-list-grid { margin-bottom: 0; }
.tk-comments-table-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.45rem; flex-wrap: wrap; }
.tk-comments-table-actions form { margin: 0; }
.tk-comments-grid-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(18, 54, 105, 0.08); }

.tk-user-pagination-bar.tk-comments-grid-footer {
  border-top: 0 !important;
  box-shadow: none;
}

.tk-comments-admin-filter-surface {
  padding: 1.15rem 1.2rem;
}

.tk-comments-admin-filter-row {
  align-items: center;
  margin-bottom: 0.85rem;
}

.tk-comments-admin-filter-row .tk-user-search-wrap {
  flex: 1 1 320px;
}

.tk-comments-admin-filter-row .tk-user-search-input {
  min-height: var(--form-control-height);
}

.tk-comments-admin-date-range {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tk-comments-admin-date-input {
  width: 170px;
  min-height: var(--form-control-height);
}

.tk-comments-admin-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tk-comments-admin-filter-actions .tk-season-icon-btn {
  width: var(--form-control-height);
  height: var(--form-control-height);
}

.tk-user-pagination-bar.tk-comments-admin-pagination-bar {
  margin-top: 0;
}

.tk-comments-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.tk-comments-admin-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(23, 49, 92, 0.1);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(241, 247, 255, 0.96));
  box-shadow: 0 18px 36px rgba(17, 54, 106, 0.08);
}

.tk-comments-admin-card.is-visible {
  border-color: rgba(107, 201, 136, 0.24);
}

.tk-comments-admin-card.is-pending {
  border-color: rgba(132, 164, 212, 0.22);
}

.tk-comments-admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-comments-admin-card-head-copy {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.tk-comments-admin-card-head-copy h2 {
  margin: 0;
  color: #12345f;
  font-size: 1.3rem;
}

.tk-comments-admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tk-comments-admin-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tk-comments-admin-card-actions form {
  margin: 0;
}

.tk-comments-admin-body {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 49, 92, 0.07);
  background: rgba(255, 255, 255, 0.74);
  color: #345277;
  line-height: 1.65;
  min-height: 108px;
}

.tk-comments-admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tk-comments-admin-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .tk-admin-comments-page .tk-admin-hero {
    padding-right: 1.3rem;
  }

  .tk-admin-comments-page .tk-admin-hero-actions {
    position: static;
    margin-left: auto;
  }

  .tk-comments-admin-date-input {
    width: 100%;
  }
}

.tk-announcement-admin-card-copy,
.tk-announcement-detail-copy {
  color: #587091;
  line-height: 1.6;
}

.tk-message-detail-card-wide {
  grid-column: 1 / -1;
}

.tk-announcement-detail-card-wide {
  grid-column: 1 / -1;
}

.tk-announcement-detail-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(128, 174, 233, 0.18);
  background: rgba(241, 247, 255, 0.9);
}

.tk-announcement-detail-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.tk-announcement-modal-dialog {
  max-width: 1140px;
}

.tk-announcements-page .tk-upload-dropzone-stage {
  min-height: 260px;
}

.tk-announcement-upload-shell,
.tk-announcement-description-card {
  min-height: 100%;
}

.tk-announcement-description-card {
  align-content: start;
}

.tk-announcement-description-textarea {
  min-height: 260px;
  resize: vertical;
}

.tk-home-announcement-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tk-home-announcement-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 14px;
  border-radius: 24px 24px 0 0;
  background: rgba(0, 129, 255, 0.18);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.tk-home-announcement-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 93, 255, 0.24);
  box-shadow: 0 22px 46px rgba(16, 37, 75, 0.14);
}

.tk-home-announcement-card:hover::before {
  background: #0081ff;
  box-shadow: 0 6px 14px rgba(0, 129, 255, 0.22);
}

.tk-home-announcement-count-badge {
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.tk-home-announcement-carousel {
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  border: 0;
  background:
    radial-gradient(circle at top left, rgba(60, 127, 219, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
  box-shadow: none;
}

.tk-home-announcement-carousel .carousel-inner {
  border-radius: 0 0 30px 30px;
}

.tk-home-announcement-slide {
  display: block;
  padding: 1.35rem 1.35rem 1.5rem;
  color: inherit;
  text-decoration: none;
}

.tk-home-announcement-slide:focus-visible {
  outline: 2px solid rgba(46, 115, 199, 0.42);
  outline-offset: -2px;
}

.tk-home-announcement-datetime {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.tk-home-announcement-date-large,
.tk-home-announcement-time-large {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.55rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.98), rgba(220, 234, 252, 0.96));
  border: 1px solid rgba(95, 145, 217, 0.22);
  color: #12345f;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tk-home-announcement-time-large {
  background: linear-gradient(180deg, rgba(248, 242, 226, 0.98), rgba(240, 229, 203, 0.96));
  border-color: rgba(189, 149, 74, 0.24);
  color: #7b5a16;
}

.tk-home-announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.tk-home-announcement-layout.has-media {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.tk-home-announcement-copy h2 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.04;
  color: #12345f;
}

.tk-home-announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.tk-home-announcement-address {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  color: #587091;
  font-weight: 600;
}

.tk-home-announcement-copy p {
  margin: 0;
  color: #5f7594;
  line-height: 1.72;
  white-space: pre-wrap;
}

.tk-home-announcement-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(128, 174, 233, 0.2);
  background: rgba(243, 248, 255, 0.96);
  min-height: 260px;
}

.tk-home-announcement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-home-announcement-control {
  z-index: 2;
}

.tk-home-announcement-indicators {
  bottom: 0.8rem;
}

.tk-announcements-public-shell {
  display: grid;
  gap: 1rem;
}

.tk-announcements-public-head {
  align-items: end;
}

.tk-announcements-public-head h1 {
  margin: 0.2rem 0 0.65rem;
  color: #12345f;
}

.tk-announcements-public-head p {
  margin: 0;
  color: #5e7494;
  max-width: 68ch;
}

.tk-announcements-public-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.tk-announcements-public-scroll {
  max-height: min(72vh, 980px);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.tk-announcements-public-list {
  display: grid;
  gap: 1rem;
}

.tk-announcements-public-card {
  align-items: stretch;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(241, 247, 255, 0.94));
}

.tk-announcements-public-copy {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.tk-announcements-public-copy p {
  margin: 0;
  color: #5e7494;
  line-height: 1.72;
  white-space: pre-wrap;
}

.tk-announcements-public-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-announcements-public-media {
  flex: 0 0 220px;
  width: 220px;
  height: 164px;
  border-radius: 18px;
}

.tk-announcements-public-page .tk-home-announcement-address {
  margin-bottom: 0;
}

.tk-message-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-message-recipient-list {
  display: grid;
  gap: 0.75rem;
}

.tk-message-recipient-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(18, 54, 105, 0.08);
}

.tk-message-recipient-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tk-message-body {
  color: #12345f;
  line-height: 1.7;
  white-space: pre-wrap;
}

.tk-message-body-subject {
  display: block;
  margin-bottom: 0.6rem;
  color: #17315c;
}

.tk-message-modal-dialog {
  max-width: 980px;
}

.tk-message-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.tk-message-group-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 49, 92, 0.1);
  background: rgba(247, 250, 255, 0.9);
}

.tk-message-group-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: #17315c;
}

.tk-message-checkbox-list {
  display: grid;
  gap: 0.65rem;
  max-height: 220px;
  overflow-y: auto;
}

.tk-message-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #24426f;
  line-height: 1.45;
}

.tk-message-checkbox-item small {
  color: #6a7f9e;
}

.tk-message-checkbox-item input {
  margin-top: 0.18rem;
}

.tk-message-group-modal-dialog {
  max-width: 780px;
}

.tk-message-group-description {
  min-height: 4.5rem;
}

.tk-message-inline-empty-state {
  min-height: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
}

.tk-message-groups-toolbar-actions {
  width: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.tk-message-groups-page .tk-user-filter-row .tk-user-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .tk-membership-admin-layout,
  .tk-message-admin-detail-grid,
  .tk-home-announcement-layout.has-media {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tk-sponsor-carousel {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(126, 171, 229, 0.22);
  background:
    radial-gradient(circle at top left, rgba(60, 127, 219, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
  box-shadow: 0 24px 48px -34px rgba(14, 45, 93, 0.3);
}

.tk-sponsor-carousel .carousel-inner {
  border-radius: 30px;
}

.tk-sponsor-slide {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(0, 0.95fr);
  min-height: 360px;
}

.tk-sponsor-slide.is-media-only {
  grid-template-columns: minmax(0, 1fr);
}

.tk-sponsor-slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  background:
    radial-gradient(circle at center, rgba(47, 120, 217, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(236, 243, 255, 0.96));
}

.tk-sponsor-slide-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(137, 176, 228, 0.22);
}

.tk-sponsor-slide.is-media-only .tk-sponsor-slide-image {
  max-height: 380px;
}

.tk-sponsor-slide-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.8rem 1.8rem 2rem 0.6rem;
}

.tk-sponsor-slide-copy h3 {
  margin: 0;
  color: #143964;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.tk-sponsor-slide-copy p {
  margin: 0;
  color: #375476;
  font-size: 1.02rem;
  line-height: 1.75;
  white-space: pre-line;
}

.tk-sponsor-carousel-indicators {
  margin: 0;
  bottom: 1rem;
  gap: 0.45rem;
}

.tk-sponsor-carousel-indicators [data-bs-target] {
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  border-radius: 999px;
  border: 0;
  opacity: 0.45;
  background: rgba(39, 96, 170, 0.34);
}

.tk-sponsor-carousel-indicators .active {
  opacity: 1;
  background: #2e73c7;
}

.tk-sponsor-carousel-control {
  width: 3.4rem;
  height: 3.4rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0 1rem;
  border-radius: 999px;
  background: rgba(18, 55, 100, 0.16);
  opacity: 1;
}

.tk-sponsor-carousel-control .carousel-control-prev-icon,
.tk-sponsor-carousel-control .carousel-control-next-icon {
  width: 1.2rem;
  height: 1.2rem;
}

@media (max-width: 991.98px) {
  .tk-homepage-sponsors-layout,
  .tk-homepage-sponsors-form-grid,
  .tk-sponsor-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-sponsor-slide-copy {
    padding: 0 1.35rem 1.65rem;
  }

  .tk-announcements-public-card {
    flex-direction: column;
  }

  .tk-announcements-public-media {
    width: 100%;
    height: 240px;
    flex-basis: auto;
  }
}

@media (max-width: 767.98px) {
  .tk-sponsor-slide {
    min-height: 0;
  }

  .tk-sponsor-slide-media {
    padding: 1rem;
  }

  .tk-sponsor-slide-image {
    max-height: 220px;
  }

  .tk-sponsor-carousel-control {
    width: 2.85rem;
    height: 2.85rem;
    margin: 0 0.45rem;
  }
}

.tk-gallery-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-radius: 18px;
}

.tk-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-gallery-tile span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(7, 18, 41, 0.74));
}

.tk-contact-card,
.tk-admin-mini-user {
  align-items: start;
}

.tk-contact-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tk-contact-list-grid .tk-contact-card {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.tk-avatar,
.tk-admin-user-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(159, 208, 255, 0.35), rgba(37, 184, 171, 0.22));
  color: #16375f;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.tk-member-avatar,
.tk-admin-member-photo,
.tk-member-photo-preview img {
  object-fit: cover;
  background: rgba(240, 245, 252, 0.9);
}

.tk-member-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(14, 39, 76, 0.12);
}

.tk-admin-member-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tk-admin-member-photo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(18, 54, 105, 0.12);
}

.tk-member-photo-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.10);
  background: rgba(247, 251, 255, 0.92);
}

.tk-member-photo-preview img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.tk-member-photo-preview p {
  margin: 0.25rem 0 0;
  color: #60708a;
}

.tk-season-shell {
  display: grid;
  gap: 1rem;
}

.tk-season-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.2rem;
  padding: 1.2rem 1.35rem;
  background:
    linear-gradient(90deg, rgba(35, 134, 127, 0.96), rgba(82, 150, 143, 0.86)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  border-color: rgba(45, 120, 112, 0.28);
}

.tk-season-hero-copy {
  display: grid;
  gap: 0.9rem;
}

.tk-season-hero-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.94);
  color: #123f80;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
  box-shadow: 0 16px 30px -22px rgba(8, 31, 55, 0.55);
}

.tk-season-hero-text {
  margin: 0;
  max-width: none;
  color: rgba(247, 252, 255, 0.94);
  line-height: 1.7;
}

.tk-season-hero-actions,
.tk-season-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tk-season-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(55, 126, 209, 0.18);
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 12px 24px -18px rgba(15, 46, 90, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tk-season-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -18px rgba(15, 46, 90, 0.32);
}

.tk-season-icon-btn.is-primary {
  background: linear-gradient(180deg, rgba(239, 248, 255, 0.98), rgba(224, 239, 255, 0.96));
}

.tk-season-icon-btn.is-success {
  background: linear-gradient(180deg, rgba(236, 255, 241, 0.98), rgba(223, 250, 230, 0.96));
  border-color: rgba(78, 188, 112, 0.22);
}

.tk-season-icon-btn.is-danger {
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(255, 233, 233, 0.96));
  border-color: rgba(225, 94, 94, 0.18);
}

.tk-season-icon-btn.is-muted {
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.98), rgba(236, 242, 250, 0.96));
}

.tk-season-icon-btn button {
  border: 0;
}

.tk-season-icon-image,
.tk-season-inline-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tk-season-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tk-season-kpi-card {
  padding: 1.15rem 1.2rem;
}

.tk-season-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tk-season-kpi-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #13284d;
}

.tk-season-panel {
  padding: 1.25rem 1.35rem;
}

.tk-season-panel-head {
  margin-bottom: 1.1rem;
}

.tk-season-panel-head-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.tk-post-management-page .tk-season-panel {
  container-type: inline-size;
}

.tk-post-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "title actions count"
    "description description description";
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0.75rem;
}

.tk-post-panel-head-copy {
  display: contents;
}

.tk-post-panel-head-title {
  grid-area: title;
  margin: 0;
  min-width: 0;
}

.tk-post-panel-head-description {
  grid-area: description;
  margin: 0;
  min-width: 0;
}

.tk-post-panel-head-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  align-self: start;
}

.tk-post-panel-head-count {
  grid-area: count;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: start;
  min-width: 2.7rem;
}

.tk-season-panel-head h2 {
  margin: 0;
  font-size: 1.7rem;
}

.tk-season-panel-head p {
  margin: 0.35rem 0 0;
  color: #617490;
}

.tk-season-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tk-season-search {
  min-width: min(100%, 320px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.tk-season-search-wide {
  min-width: min(100%, 560px);
  flex: 1 1 auto;
}

.tk-admin-search-form {
  min-width: min(100%, 320px);
  flex: 1 1 320px;
}

.tk-admin-search-form.is-wide {
  min-width: min(100%, 640px);
  flex-basis: 640px;
}

.tk-season-filter-select {
  display: flex;
  align-items: center;
  min-width: 220px;
}

.tk-season-filter-select .form-select {
  min-width: 220px;
}

.tk-season-search .form-control {
  flex: 1 1 320px;
  min-width: min(100%, 280px);
}

.tk-season-search .form-control,
.tk-season-search .form-select {
  width: 100%;
}

.tk-season-search .tk-user-search-wrap {
  flex: 1 1 320px;
  min-width: min(100%, 280px);
  width: auto;
}

.tk-season-search .form-control::placeholder {
  color: var(--textfield-placeholder);
}

.tk-season-filter-pills,
.tk-season-meta-pills,
.tk-season-history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-season-filter-pills-head {
  justify-content: flex-end;
}

.tk-season-filter-pill,
.tk-season-meta-pill,
.tk-season-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  font-size: 0.84rem;
  border: 1px solid rgba(135, 161, 205, 0.24);
}

.tk-season-filter-pill.is-active,
.tk-season-status-pill.is-active,
.tk-season-meta-pill.is-highlight {
  background: rgba(230, 255, 238, 0.95);
  color: #149347;
  border-color: rgba(80, 196, 111, 0.28);
}

.tk-season-filter-pill.is-planning,
.tk-season-status-pill.is-planning {
  background: rgba(255, 247, 220, 0.98);
  color: #cf8b00;
  border-color: rgba(240, 185, 47, 0.28);
}

.tk-team-lineup-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tk-team-lineup-section {
  display: grid;
  gap: 0.75rem;
}

.tk-team-lineup-section-title {
  display: block;
  color: #13284d;
}

.tk-team-lineup-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.tk-team-lineup-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-team-public-lineup-card .tk-season-meta-pill {
  display: none;
}

.tk-team-lineup-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #24426f;
}

.tk-team-roster-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(221, 236, 255, 0.95);
  color: #245a98;
  font-size: 0.78rem;
  font-weight: 700;
}

.tk-season-filter-pill.is-completed,
.tk-season-status-pill.is-completed {
  background: rgba(233, 242, 255, 0.96);
  color: #1d66d2;
  border-color: rgba(77, 135, 224, 0.24);
}

.tk-season-filter-pill.is-inactive,
.tk-season-status-pill.is-inactive,
.tk-season-meta-pill {
  background: rgba(246, 248, 252, 0.98);
  color: #60708a;
}

.tk-season-status-pill.is-danger {
  background: rgba(255, 235, 238, 0.98);
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.28);
}

.tk-season-list {
  display: grid;
  gap: 1rem;
}

.tk-season-item {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(128, 174, 233, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 34px -28px rgba(15, 46, 90, 0.24);
}

.tk-season-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.tk-season-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.tk-season-title-row h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #13284d;
}

.tk-season-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #55729d;
}

.tk-season-history-box {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 198, 142, 0.32);
  background: linear-gradient(90deg, rgba(255, 251, 245, 0.98), rgba(255, 242, 225, 0.92));
}

.tk-season-history-box strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #13284d;
}

.tk-season-history-box p {
  margin: 0 0 0.85rem;
  color: #6b7d96;
}

.tk-season-history-summary span {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #8a6320;
  border: 1px solid rgba(232, 192, 127, 0.28);
}

@media (max-width: 767.98px) {
  .tk-season-form-page .form-card h1 {
    font-size: 1.65rem;
    line-height: 1.1;
    padding-right: 0;
    white-space: nowrap;
  }

  .tk-season-management-page .tk-admin-hero {
    position: relative;
    display: block;
    padding-right: 1.35rem;
  }

  .tk-season-management-page .tk-admin-hero > :first-child {
    display: block;
    min-width: 0;
  }

  .tk-season-management-page .tk-admin-hero .tk-dashboard-title {
    max-width: calc(100% - 8rem);
  }

  .tk-season-management-page .tk-admin-hero .tk-dashboard-copy {
    margin: 0;
    margin-top: 0.6rem;
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .tk-season-management-page .tk-admin-hero-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .tk-season-management-page .tk-season-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title count"
      "copy copy";
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0.65rem;
    margin-bottom: 0.95rem;
  }

  .tk-season-management-page .tk-season-panel-head h2 {
    grid-area: title;
    min-width: 0;
  }

  .tk-season-management-page .tk-season-panel-head p {
    grid-area: copy;
    min-width: 0;
    width: 100%;
    margin: 0;
  }

  .tk-season-management-page .tk-season-panel-head > .tk-count-badge {
    grid-area: count;
    justify-self: end;
    align-self: start;
  }

  .tk-season-management-page .tk-season-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .tk-season-management-page .tk-season-filter-pills {
    order: 1;
    flex-wrap: wrap;
    overflow: visible;
  }

  .tk-season-management-page .tk-season-filter-pill {
    white-space: nowrap;
  }

  .tk-season-management-page .tk-season-title-row h3 {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .tk-season-management-page .tk-admin-search-form {
    order: 2;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .tk-season-management-page .tk-admin-search-form .tk-user-search-wrap {
    width: 100%;
    min-width: 0;
  }
}

.tk-season-actions form {
  margin: 0;
}

.tk-season-management-page .section-block {
  padding-top: 1.15rem;
}

.tooltip.tk-metronic-tooltip {
  --bs-tooltip-bg: transparent;
  --bs-tooltip-opacity: 1;
}

.tooltip.tk-metronic-tooltip .tooltip-inner {
  max-width: 260px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(141, 176, 227, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(73, 147, 255, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.98));
  box-shadow: 0 18px 40px -24px rgba(15, 46, 90, 0.38);
  color: #183963;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tooltip.tk-handicap-explanation-tooltip .tooltip-inner {
  max-width: 420px;
  border-color: #d7dfe9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 37, 61, .16);
  color: #111;
  text-align: left;
}

.tooltip.tk-handicap-explanation-tooltip .tooltip-inner strong {
  color: #111;
}

.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #fff;
}

.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: #fff;
}

.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  border-left-color: #fff;
}

.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.tk-handicap-explanation-tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  border-right-color: #fff;
}

.tooltip.tk-handicap-explanation-tooltip .tooltip-inner ol {
  margin: .45rem 0 0;
  padding-left: 1.2rem;
}

.tooltip.tk-handicap-explanation-tooltip .tooltip-inner li + li {
  margin-top: .28rem;
}

.tooltip.tk-metronic-tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.tk-metronic-tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: rgba(240, 247, 255, 0.98);
}

.tooltip.tk-metronic-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.tk-metronic-tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: rgba(240, 247, 255, 0.98);
}

.tooltip.tk-metronic-tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.tk-metronic-tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  border-left-color: rgba(240, 247, 255, 0.98);
}

.tooltip.tk-metronic-tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.tk-metronic-tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  border-right-color: rgba(240, 247, 255, 0.98);
}

.tk-contact-role {
  color: #165dff;
  font-weight: 700;
  margin: 0.2rem 0 0.35rem;
}

.tk-contact-extra {
  margin-top: 0.45rem;
  color: #60708a;
  font-size: 0.92rem;
}

.tk-empty-state {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(240, 245, 252, 0.9);
  border: 1px dashed rgba(117, 140, 178, 0.28);
  color: #60708a;
  line-height: 1.6;
}

.tk-admin-kpi-card {
  padding: 1.1rem 1.2rem;
}

.tk-admin-kpi-card strong {
  display: block;
  margin: 0.65rem 0 0.35rem;
  font-size: 2rem;
}

.tk-admin-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tk-admin-pill,
.admin-hmenu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(27, 132, 255, 0.22);
  background: rgba(233, 243, 255, 0.82);
  color: #24426f;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(27, 132, 255, 0.10);
}

.tk-admin-pill.is-active,
.admin-hmenu-link.is-active {
  color: #123f80;
  background: rgba(190, 219, 255, 0.94);
  border-color: rgba(22, 93, 255, 0.56);
}

.admin-hmenu,
.admin-hmenu-items {
  gap: 0.75rem;
}

.admin-hmenu-group {
  border-radius: 20px;
  border: 1px solid rgba(19, 45, 99, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.96));
}

.admin-hmenu-title {
  color: #16375f;
}

.tk-admin-users-panel {
  min-width: 0;
}

.tk-admin-table thead th {
  background: #edf4fc;
  color: #17324f !important;
  font-size: 0.88rem;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-color: rgba(18, 54, 105, 0.08);
}

.tk-admin-table tbody td {
  border-bottom-color: rgba(18, 54, 105, 0.06);
  vertical-align: middle;
}

.tk-admin-table :is(th, td, th *, td *) {
  font-weight: 400 !important;
}

.tk-admin-table thead th,
.tk-admin-table thead th * {
  color: #17324f !important;
  font-weight: 600 !important;
}

/* Shared admin grid interaction states. */
.tk-admin-table tbody tr {
  cursor: pointer;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.tk-admin-table tbody tr:hover > * {
  background-color: rgba(23, 104, 194, 0.08) !important;
}

.tk-admin-table tbody tr.is-selected > *,
.tk-admin-table tbody tr.is-active > * {
  background-color: rgba(23, 104, 194, 0.15) !important;
  box-shadow: inset 0 0 0 9999px rgba(23, 104, 194, 0.15);
}

.tk-admin-table tbody tr.is-selected > :first-child,
.tk-admin-table tbody tr.is-active > :first-child {
  box-shadow: inset 3px 0 0 #1768c2, inset 0 0 0 9999px rgba(23, 104, 194, 0.15);
}

/* Shared schedule states for past and next upcoming matches. */
.tk-admin-table tbody tr.tk-schedule-game-row--past > * {
  background-color: #fbe4ea !important;
}

.tk-admin-table tbody tr.tk-schedule-game-row--next > * {
  background-color: #fff4c9 !important;
  font-size: 1.05rem;
  font-weight: 700 !important;
}

.tk-admin-user-cell,
.tk-admin-permission-stack,
.tk-admin-action-row,
.tk-admin-chip-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tk-admin-chip,
.tk-admin-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(243, 247, 253, 0.92);
  color: #506687;
  font-size: 0.76rem;
  font-weight: 700;
}

.tk-admin-chip.is-primary,
.tk-admin-chip.is-success,
.tk-admin-status-chip.is-success {
  background: rgba(221, 243, 239, 0.98);
  color: #156a62;
}

.tk-admin-chip.is-soft {
  background: rgba(226, 240, 255, 0.92);
  color: #165dff;
}

.tk-admin-chip.is-danger {
  background: rgba(255, 232, 235, 0.96);
  color: #b4233d;
}

.tk-admin-chip.is-warning {
  background: rgba(255, 239, 209, 0.98);
  color: #a85d00;
}

button.tk-admin-chip {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.tk-game-location-badge {
  border: 0;
  cursor: pointer;
}

.tk-game-overview-sidebar .tk-member-list-grid-wrap {
  overflow: visible;
}

.tk-game-overview-sidebar .tk-game-location-menu {
  z-index: 30;
}

.tk-data-key-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 199, 231, 0.58);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(232, 240, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(40, 102, 180, 0.06);
  color: #607594;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

/* Mitgliedsanträge: Feldnamen sind ruhige Textlabels, keine Pills. */
.tk-membership-admin-detail-panel .tk-member-info-row > .tk-data-key-badge {
  all: unset;
  display: block;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  color: #60738f;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tk-admin-chip.is-muted,
.tk-admin-status-chip {
  background: rgba(238, 243, 249, 0.92);
  color: #6b7d96;
}

.tk-counter-qr-table-badge {
  min-width: 2.55rem;
  justify-content: center;
  font-size: 1.2rem;
}

.tk-counter-qr-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 320px minmax(10rem, 1fr);
  align-items: center;
  gap: 0;
}

.tk-counter-qr-team,
.tk-counter-qr-team-avatars,
.tk-counter-qr-team-badges {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-counter-qr-team {
  min-width: 0;
  flex-direction: column;
  gap: .8rem;
}

.tk-counter-qr-team-avatars {
  width: 100%;
  min-height: 76px;
  padding: 0 10px;
  gap: 6px;
}

.tk-counter-qr-team .tk-counter-qr-player-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex: 0 1 auto;
  border: 3px solid #d8e8ff;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(27, 87, 158, .16);
}

.tk-counter-qr-team .tk-counter-qr-player-avatar.is-placeholder {
  background: linear-gradient(135deg, #d7e6f8, #eef5fd);
}

.tk-counter-qr-team.is-team .tk-counter-qr-team-avatars {
  padding: 0 5px;
}

.tk-counter-qr-team.is-team .tk-counter-qr-player-avatar {
  flex: 1 1 0;
  min-width: 0;
}

.tk-counter-qr-team-badges {
  max-width: 100%;
  flex-direction: column;
  gap: .4rem;
}

.tk-counter-qr-team-badges .tk-admin-chip {
  max-width: 100%;
  font-size: .96rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tk-counter-qr-layout {
    grid-template-columns: 1fr;
  }

  .tk-counter-qr-layout > .d-flex {
    grid-row: 1;
  }

  .tk-counter-qr-team {
    flex-direction: row;
  }
}

.tk-admin-inline-btn,
.tk-action-btn {
  border-radius: 14px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.tk-admin-form-control {
  min-height: var(--form-control-height);
  border-radius: 16px;
  border: 1px solid rgba(24, 33, 38, 0.12);
  background: rgba(249, 251, 255, 0.94);
}

.tk-admin-toggle-card,
.tk-admin-choice-card {
  align-items: start;
}

.tk-admin-toggle-card input,
.tk-admin-choice-card input {
  margin-top: 0.2rem;
}
.tk-admin-hero {
  padding: 1.6rem 1.7rem;
}

.tk-admin-toggle-card small,
.tk-admin-choice-card small {
  display: block;
  color: #667892;
  margin-top: 0.2rem;
}

.tk-admin-page .tk-admin-shell,
.tk-admin-page .tk-season-shell {
  padding-top: 0.25rem;
}

.tk-admin-page .tk-admin-hero,
.tk-admin-page .tk-season-hero {
  margin-top: 0;
}

.tk-admin-page .tk-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.tk-admin-page .tk-admin-hero > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-admin-page .tk-admin-hero-actions {
  flex: 0 0 auto;
  align-self: flex-start;
  align-items: flex-end;
  justify-content: flex-start;
  margin-left: auto;
  white-space: nowrap;
}

.tk-admin-page main > .container.pt-3 {
  padding-top: 0 !important;
}

.tk-user-management-page .tk-admin-shell {
  padding-top: 0.25rem;
}

.tk-user-management-page .tk-admin-hero {
  margin-top: 0;
}

.tk-user-management-page main > .container.pt-3 {
  padding-top: 0 !important;
}

.tk-admin-permission-grid {
  gap: 1.5rem;
}

/* Expliziter Abstand für Grid-Children */
.tk-admin-permission-grid > .permission-option,
.tk-admin-permission-grid > .permission-card {
  margin-bottom: 0;
}

.tk-admin-permission-grid > .permission-option:last-of-type,
.tk-admin-permission-grid > .permission-card:last-of-type {
  margin-bottom: 0;
}

.tk-admin-permission-card {
  border-radius: 20px;
  border: 1px solid rgba(18, 54, 105, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.tk-user-management-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.tk-user-list-panel,
.tk-user-detail-card {
  min-width: 0;
}

.tk-user-list-panel,
.tk-user-management-table,
.tk-user-management-table tbody,
.tk-user-management-table tr,
.tk-user-management-table td {
  overflow: visible;
}

.tk-user-management-page .tk-user-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.tk-user-management-page .tk-user-management-table {
  width: 100%;
}

.tk-user-detail-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.tk-user-filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.tk-user-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tk-user-search-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
}

.tk-user-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  opacity: 0.66;
}

.tk-user-search-input {
  padding-left: 2.65rem;
}

.tk-finance-search .tk-user-search-input {
  min-width: 0;
}

.tk-user-management-table tbody tr.is-selected {
  background: rgba(236, 246, 255, 0.82);
}

.tk-user-row {
  cursor: pointer;
}

.tk-user-row:focus-visible {
  outline: 2px solid rgba(22, 93, 255, 0.35);
  outline-offset: -2px;
}

.tk-user-management-table tbody tr.is-selected td {
  box-shadow: inset 0 1px 0 rgba(22, 93, 255, 0.08), inset 0 -1px 0 rgba(22, 93, 255, 0.08);
}

.tk-member-record-page .tk-admin-shell {
  padding-top: 0.25rem;
}

.tk-member-record-page .tk-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
}

.tk-member-record-page .tk-admin-hero-actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

.tk-opponent-team-page .tk-admin-shell {
  padding-top: 0.25rem;
}

.tk-opponent-team-page .tk-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
}

.tk-opponent-team-page .tk-admin-hero-actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

.tk-department-management-page .tk-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
  border-radius: 0;
}

.tk-department-management-page .tk-admin-shell {
  padding-top: 0;
}

.tk-department-management-page .tk-admin-hero-actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

.tk-season-management-page .tk-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
}

.tk-season-management-page .tk-admin-hero-actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

.tk-team-management-page .tk-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
}

.tk-team-management-page .tk-admin-hero-actions {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

@container (max-width: 430px) {
  .tk-post-panel-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title count"
      "actions actions"
      "description description";
  }

  .tk-post-panel-head-actions {
    justify-self: end;
  }

  .tk-post-panel-head-actions {
    justify-content: flex-end;
  }
}

.tk-admin-hero > :first-child,
.tk-season-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-post-admin-title-cell strong {
  color: #17355c;
  font-size: 1rem;
  font-weight: 400;
}

.tk-permissions-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  align-items: end;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(18, 54, 105, 0.08);
}

.tk-permissions-filter-grid > div {
  min-width: 0;
}

.tk-permissions-filter-grid .form-label {
  margin-bottom: 0.4rem;
}

.tk-permissions-list-grid {
  min-width: 980px;
}

.tk-permissions-list-grid code {
  color: #24426f;
  white-space: nowrap;
}

.tk-permission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tk-permissions-items-per-page {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tk-permissions-items-per-page select {
  width: auto;
}

@media (max-width: 760px) {
  .tk-permissions-filter-grid {
    grid-template-columns: 1fr;
  }
}

.tk-post-management-page .action-cell {
  white-space: nowrap;
}

.tk-member-record-page main > .container.pt-3 {
  padding-top: 0 !important;
}

.tk-member-record-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.tk-member-list-panel,
.tk-member-detail-shell {
  min-width: 0;
}

.tk-member-list-panel-head {
  position: relative;
  padding-right: 4.4rem;
}

.tk-member-list-count-badge {
  position: absolute;
  top: 0;
  right: 0;
  flex: 0 0 auto;
}

.tk-member-list-meta {
  margin-bottom: 0.9rem;
  color: #7386a3;
  font-size: 0.82rem;
}

.tk-member-list-stack,
.tk-member-detail-column {
  display: grid;
  gap: 0.85rem;
}

.tk-member-list-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(128, 174, 233, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.98));
  color: #17355c;
  text-decoration: none;
  box-shadow: 0 18px 34px -28px rgba(15, 46, 90, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tk-member-list-card:hover {
  border-color: rgba(75, 140, 227, 0.36);
  transform: translateY(-1px);
}

.tk-member-list-card.is-selected {
  border-color: rgba(92, 170, 232, 0.54);
  box-shadow: 0 0 0 1px rgba(112, 185, 242, 0.22), 0 18px 34px -26px rgba(15, 46, 90, 0.22);
  background: linear-gradient(180deg, rgba(242, 248, 255, 0.98), rgba(248, 251, 255, 0.99));
}

.tk-member-list-card strong {
  font-size: 1rem;
}

.tk-member-list-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.tk-member-list-title strong {
  min-width: 0;
}

.tk-member-list-head,
.tk-member-list-chips,
.tk-member-detail-head {
  display: flex;
  gap: 0.75rem;
}

.tk-member-list-head,
.tk-member-detail-head {
  justify-content: space-between;
  align-items: start;
}

.tk-member-card-status-chip {
  flex: 0 0 auto;
}

.tk-member-list-chips {
  flex-wrap: wrap;
}

.tk-member-code {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(235, 243, 255, 0.96);
  color: #195cc0;
  font-size: 0.78rem;
  font-weight: 800;
}

.tk-member-detail-shell {
  display: grid;
  gap: 1rem;
}

.tk-member-detail-subline {
  margin: 0.35rem 0 0;
  color: #667892;
}

.tk-member-detail-head {
  position: relative;
}

.tk-member-record-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.tk-member-tab-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(201, 210, 224, 0.92);
  background: linear-gradient(180deg, rgba(247, 249, 252, 0.98), rgba(238, 242, 247, 0.98));
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tk-member-tab-card:hover {
  border-color: rgba(153, 186, 232, 0.95);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.98), rgba(219, 233, 252, 0.98));
  box-shadow: 0 14px 28px -24px rgba(16, 57, 112, 0.18);
}

.tk-member-tab-card:focus-visible {
  outline: 2px solid rgba(22, 93, 255, 0.34);
  outline-offset: 2px;
}

.tk-member-tab-card strong {
  color: #17355c;
  font-size: 0.96rem;
  line-height: 1.2;
}

.tk-member-tab-card:hover,
.tk-member-tab-card:focus-visible,
.tk-member-tab-card.is-active {
  border-color: rgba(153, 186, 232, 0.98);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.99), rgba(219, 233, 252, 0.99));
  box-shadow: 0 18px 34px -26px rgba(14, 52, 111, 0.2);
}

.tk-member-tab-card:hover strong,
.tk-member-tab-card:focus-visible strong,
.tk-member-tab-card.is-active strong {
  color: #123a68;
}

.tk-member-tab-card:hover .tk-member-tab-icon-wrap,
.tk-member-tab-card:focus-visible .tk-member-tab-icon-wrap,
.tk-member-tab-card.is-active .tk-member-tab-icon-wrap {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(169, 197, 237, 0.82);
}

.tk-member-tab-card:hover .tk-member-tab-icon,
.tk-member-tab-card:focus-visible .tk-member-tab-icon,
.tk-member-tab-card.is-active .tk-member-tab-icon {
  filter: none;
}

.tk-member-tab-main {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-width: 0;
}

.tk-member-tab-icon-wrap {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(150, 185, 231, 0.24);
}

.tk-member-tab-icon,
.tk-member-photo-placeholder-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tk-member-tab-main strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tk-member-list-grid-wrap {
  margin: 0.5rem 0 1.5rem;
}

.tk-member-list-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.tk-member-list-head-actions .tk-member-list-count-badge {
  position: static;
}

.tk-member-list-grid {
  margin-bottom: 0;
}

.tk-member-list-grid :is(th, td) {
  vertical-align: top !important;
}

.tk-member-grid-footer {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 54, 105, 0.08);
}

/* Shared spacing for every table/grid followed by pagination. */
.tk-grid-pagination-footer {
  margin-top: 1rem;
}

.tk-grid-pagination-grid-wrap {
  margin-bottom: 1rem !important;
}

/* Reserve space below the last tournament row for overlay scrollbars. */
[data-tournament-list-panel] .tk-grid-pagination-grid-wrap {
  padding-bottom: .75rem;
}

/* Keep the responsive wrapper from collapsing the standard grid spacing. */
.tk-member-list-grid-wrap:has(+ .tk-grid-pagination-footer) {
  margin-bottom: 0;
}

.tk-member-grid-row:focus-visible,
.tk-membership-grid-row:focus-visible {
  outline: 2px solid rgba(22, 93, 255, 0.42);
  outline-offset: -2px;
}

.tk-membership-list-grid {
  min-width: 820px;
}

.tk-member-grid-name,
.tk-member-grid-chips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tk-member-grid-name,
.tk-member-grid-membership-duration .tk-admin-user-subline,
.tk-member-grid-contact .tk-admin-user-subline {
  white-space: nowrap;
}

.tk-member-grid-chips {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tk-member-role-scope-list {
  display: grid;
  gap: 0.45rem;
}

.tk-member-role-scope-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.55rem;
  white-space: nowrap;
}

.tk-member-list-grid:has([data-groups-list]) tbody td {
  white-space: nowrap;
}

.tk-inventory-page .tk-member-tab-card {
  justify-content: center;
  text-align: center;
}

.tk-inventory-page .tk-member-tab-main {
  flex: 0 1 auto;
  justify-content: center;
}

.tk-member-tab-count {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: #1a9954;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tk-member-tab-panel {
  display: grid;
  gap: 1rem;
}

/* Hide all panels - only non-hidden ones will be shown */
[hidden][data-member-tab-panel] {
  display: none !important;
}

.tk-member-panel-grid {
  display: grid;
  gap: 1rem;
}

.tk-member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.tk-member-panel-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-member-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.tk-member-profile-info-stack {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.tk-member-info-card,
.tk-group-details-block,
.tk-member-photo-card,
.tk-member-notes-card {
  position: relative;
  padding: 1rem 1.05rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(128, 174, 233, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px -28px rgba(34, 77, 128, 0.62);
}

.tk-member-info-card::before,
.tk-group-details-block::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, rgba(31, 112, 229, .78), rgba(74, 191, 214, .52));
  content: "";
}

.tk-member-info-card h3,
.tk-group-details-block h4,
.tk-member-photo-card h3,
.tk-member-notes-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.15rem;
  color: #17355c;
}

.tk-member-photo-card p,
.tk-member-notes-card p {
  color: #667892;
}

.tk-member-info-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.tk-member-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.1rem;
  padding: 0;
  border-bottom: 1px dashed rgba(128, 174, 233, 0.22);
}

.tk-member-info-row strong {
  color: #17355c;
  text-align: right;
  line-height: 1;
}

[data-member-contact-form] .tk-member-info-row .form-control {
  flex: 1 1 12rem;
  max-width: 18rem;
}

.tk-member-portal-group-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0 0.75rem;
  border: 0;
  border-bottom: 1px dashed rgba(128, 174, 233, 0.3);
  background: transparent;
  color: #17355c;
  text-align: left;
}

.tk-member-portal-group-trigger > span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.tk-member-portal-group-trigger strong {
  color: #527197;
  font-size: 0.82rem;
  font-weight: 600;
}

.tk-member-portal-group-training {
  margin-top: 1rem;
}

.tk-member-portal-group-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tk-member-portal-group-training h4 {
  margin: 0 0 0.6rem;
  color: #17355c;
  font-size: 1rem;
}

[data-member-training-pagination] {
  overflow: hidden;
  border: 1px solid rgba(128, 174, 233, 0.34);
  border-radius: 16px;
  background: #fff;
}

[data-member-training-pagination] .tk-training-times-table {
  margin: 0;
}

/* Absagen bleiben als Badges erkennbar, heben sich aber klar von den
   regulären Teilnehmern ab. */
[data-member-training-pagination] .tk-training-times-table tbody td:nth-child(5) .tk-widget-kicker {
  background: #f3dfb9;
  color: #76501c;
}

[data-member-training-controls] {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.75rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(128, 174, 233, 0.24);
}

.dropdown-menu .dropdown-item:has(.tk-user-icon-image) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tk-member-photo-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(147, 181, 231, 0.34);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(239, 245, 255, 0.98));
  overflow: hidden;
}

.tk-member-photo-avatar-stage {
  width: min(100%, 360px);
  min-height: 0;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
}

.tk-member-photo-upload-form {
  margin: 0;
}

.tk-member-photo-dropzone {
  position: relative;
  width: 100%;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tk-member-photo-dropzone.tk-user-photo-avatar-stage {
  width: 150px;
  min-width: 150px;
  height: 150px;
  min-height: 150px;
  margin: 0 auto;
}

.tk-member-photo-dropzone:hover,
.tk-member-photo-dropzone:focus-visible,
.tk-member-photo-dropzone.is-dragover {
  border-color: rgba(44, 118, 234, 0.42);
  box-shadow: 0 0 0 4px rgba(44, 118, 234, 0.12);
  transform: translateY(-1px);
}

.tk-member-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(12, 34, 68, 0.04), rgba(12, 34, 68, 0.34));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tk-member-photo-overlay-actions {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tk-member-photo-dropzone:hover .tk-member-photo-overlay,
.tk-member-photo-dropzone:focus-within .tk-member-photo-overlay {
  opacity: 1;
  pointer-events: auto;
}

.tk-member-photo-overlay form {
  margin: 0;
  display: inline-flex;
}

.tk-member-photo-overlay-btn {
  box-shadow: 0 10px 24px rgba(17, 45, 86, 0.18);
}

.tk-upload-dropzone-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(128, 174, 233, 0.22);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-upload-dropzone {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tk-upload-dropzone:hover,
.tk-upload-dropzone:focus-visible,
.tk-upload-dropzone.is-dragover {
  border-color: rgba(44, 118, 234, 0.42);
  box-shadow: 0 0 0 4px rgba(44, 118, 234, 0.12);
  transform: translateY(-1px);
}

.tk-upload-dropzone-stage {
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(147, 181, 231, 0.34);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(239, 245, 255, 0.98));
  overflow: hidden;
}

.tk-upload-dropzone-preview {
  display: block;
  width: 100%;
  min-height: 240px;
  max-height: 340px;
  border-radius: 18px;
  object-fit: cover;
}

.tk-upload-dropzone-placeholder {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 1.5rem;
  text-align: center;
  color: #5b6f8f;
}

.tk-upload-dropzone-placeholder strong {
  color: #183c68;
  font-size: 1rem;
}

.tk-upload-dropzone-placeholder span {
  color: #6f82a0;
}

.tk-upload-dropzone-icon {
  width: 42px;
  height: 42px;
  opacity: 0.88;
}

.tk-upload-dropzone-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: #6b7f9c;
}

.tk-upload-dropzone-meta strong {
  color: #17355c;
  font-size: 0.95rem;
}

.tk-upload-dropzone-meta span {
  font-size: 0.88rem;
}

.tk-upload-dropzone-preview.is-hidden,
.tk-upload-dropzone-placeholder.is-hidden {
  display: none;
}

.tk-photo-upload-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.tk-photo-upload-thumb {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(188, 211, 243, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.95));
}

.tk-photo-upload-thumb-frame {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(235, 243, 255, 0.88);
}

.tk-photo-upload-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-photo-upload-thumb-meta {
  display: grid;
  gap: 0.25rem;
  color: #60728b;
}

.tk-photo-upload-thumb-meta strong {
  color: #17355c;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-post-image-caption-field {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
  color: #17355c;
  font-weight: 600;
}

.tk-photo-upload-thumb .tk-post-image-caption-field {
  margin-top: 0;
  font-size: 0.88rem;
}

.tk-post-image-caption-field textarea {
  min-height: 72px;
  resize: vertical;
  font-weight: 400;
}

.tk-post-form-page .tk-upload-dropzone-preview {
  width: auto;
  max-width: 100%;
  min-height: 0;
  height: auto;
  max-height: min(70vh, 720px);
  margin: auto;
  object-fit: contain;
  object-position: center;
}

.tk-post-form-page .tk-photo-upload-thumb-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  min-height: 180px;
  max-height: min(55vh, 520px);
}

.tk-post-form-page .tk-photo-upload-thumb-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(55vh, 520px);
  object-fit: contain;
  object-position: center;
}

.tk-photo-upload-thumb-checkbox {
  margin: 0;
}

.tk-gallery-group-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-gallery-group-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 0.85rem;
}

.tk-gallery-group-header {
  display: grid;
  gap: 0.45rem;
}

.tk-gallery-group-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tk-gallery-group-header-main h1 {
  margin: 0;
}

.tk-gallery-group-description {
  margin-bottom: 0;
}

.tk-gallery-group-columns-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tk-gallery-group-columns-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  color: #17355c;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.tk-gallery-group-columns-form .form-select {
  width: auto;
  min-width: 96px;
}

.tk-gallery-group-grid {
  display: grid;
  grid-template-columns: repeat(var(--tk-gallery-columns, 4), minmax(0, 1fr));
  gap: 1rem;
}

.tk-gallery-group-item {
  display: block;
}

.tk-gallery-group-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(188, 211, 243, 0.82);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(239, 246, 255, 0.95));
  box-shadow: 0 22px 38px -30px rgba(16, 42, 74, 0.32);
}

.tk-gallery-group-preview-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
}

.tk-gallery-group-preview-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(44, 118, 234, 0.18);
  border-radius: 24px;
}

.tk-gallery-group-overlay {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}

.tk-gallery-group-overlay .tk-user-icon-btn {
  pointer-events: auto;
}

.tk-gallery-group-overlay .tk-photo-detail-overlay-actions {
  justify-content: flex-end;
}

.tk-gallery-group-overlay form {
  display: inline-flex;
  margin: 0;
}

.tk-gallery-group-thumb:hover .tk-gallery-group-overlay,
.tk-gallery-group-thumb:focus-within .tk-gallery-group-overlay {
  opacity: 1;
}

.tk-gallery-group-thumb:hover .tk-gallery-group-overlay .tk-photo-detail-overlay-actions,
.tk-gallery-group-thumb:focus-within .tk-gallery-group-overlay .tk-photo-detail-overlay-actions {
  transform: translateY(0);
}

.tk-gallery-group-overlay .tk-photo-detail-overlay-actions {
  transform: translateY(6px);
  transition: transform 180ms ease;
  margin: 0;
}

.tk-gallery-group-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .tk-gallery-group-header-main {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-gallery-group-toolbar {
    justify-content: flex-start;
  }

  .tk-gallery-group-columns-form {
    flex-wrap: wrap;
  }

  .tk-photo-detail-modal .modal-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    margin: 0;
  }

  .tk-photo-detail-modal .modal-content {
    min-height: 100dvh;
    border-radius: 0;
  }

  .tk-photo-detail-modal .modal-header {
    display: none;
  }

  .tk-photo-detail-modal .modal-body {
    padding: 0;
  }

  .tk-photo-detail-modal-stage {
    min-height: 100dvh;
    border-radius: 0;
  }

  .tk-photo-detail-modal-image {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}

.tk-member-photo-stage img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.tk-member-photo-placeholder {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  color: #6d81a0;
  text-align: center;
  padding: 1.5rem;
}

.tk-member-photo-editor {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(128, 174, 233, 0.22);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.98));
}

.tk-member-photo-editor-canvas {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(128, 174, 233, 0.28);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(230, 239, 252, 0.96));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.3), 0 18px 38px rgba(15, 46, 90, 0.12);
  cursor: grab;
  touch-action: none;
}

.tk-member-photo-editor-canvas.is-dragging {
  cursor: grabbing;
}

.tk-member-photo-editor-image {
  position: absolute;
  max-width: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.tk-member-photo-editor-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: #6b7f9b;
  font-weight: 700;
  text-align: center;
}

.tk-member-photo-editor-controls {
  display: grid;
  gap: 0.75rem;
}

.tk-member-photo-editor-copy {
  margin: 0.25rem 0 0;
  color: #667892;
}

.tk-member-photo-editor-zoom {
  width: 100%;
}

.tk-member-photo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.tk-member-photo-note {
  margin: 0.8rem 0 0;
}

.tk-member-notes-card p {
  margin: 0.35rem 0 0;
}

.tk-member-status-card {
  min-height: 100%;
}

.tk-member-form-group-card {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(136, 177, 232, 0.28);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.95), rgba(229, 239, 255, 0.9));
  box-shadow: 0 20px 36px -32px rgba(15, 46, 90, 0.24);
}

.tk-member-form-group-details {
  display: grid;
  gap: 0;
}

.tk-member-form-group-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
}

.tk-member-form-group-summary::-webkit-details-marker {
  display: none;
}

.tk-member-form-group-summary > .tk-widget-kicker {
  order: -1;
}

.tk-member-form-group-caret {
  width: 1.2rem;
  height: 1.2rem;
  color: #1f5ead;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-left: auto;
}

.tk-admin-panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.tk-member-list-panel-head {
  padding-right: 0;
}

.tk-member-form-group-details[open] > .tk-member-form-group-summary .tk-member-form-group-caret {
  transform: rotate(180deg);
}

.tk-member-form-group-details[open] > .tk-member-form-group-summary + * {
  margin-top: 0.8rem;
}

.tk-member-form-group-card .row {
  margin-top: 0;
}

.tk-member-form-group-card .row > * {
  min-width: 0;
}

.tk-member-form-group-card .tk-membership-inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: 1rem;
  width: 100%;
  margin-inline: 0;
}

.tk-member-form-group-card .tk-membership-inline-field {
  min-width: 0;
}

.tk-member-form-group-card .form-label {
  margin-bottom: 0.45rem;
  color: #27466f;
  font-weight: 600;
}

.tk-member-department-roles-editor,
.tk-member-department-roles-list {
  display: grid;
  gap: 1rem;
}

.tk-member-department-roles-head,
.tk-member-department-role-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tk-member-department-roles-head h3 {
  margin: 0;
  color: #173760;
  font-size: 1.05rem;
}

.tk-member-department-roles-head p {
  margin: 0.25rem 0 0;
  color: #617898;
}

.tk-member-department-role-row {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(100, 154, 226, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.tk-member-role-scopes-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: stretch;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
}

.tk-member-role-scope-card {
  box-sizing: border-box;
  align-content: start;
  min-width: 0;
  max-width: 100%;
  gap: 0.75rem;
}

.tk-member-role-scope-card .form-label,
.tk-member-role-scope-card strong,
.tk-member-role-scope-card .tk-member-form-checkbox {
  overflow-wrap: anywhere;
}

.tk-member-role-scope-card .form-select {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.tk-member-role-scope-departments {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.tk-member-role-scope-departments .form-check {
  min-width: 0;
}

.tk-member-role-scope-departments .form-check-label {
  overflow-wrap: anywhere;
}

.tk-member-department-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  align-items: start;
}

.tk-member-department-role-grid .tk-member-form-checkbox {
  min-height: 46px;
  align-self: end;
}

@media (max-width: 720px) {
  .tk-member-department-roles-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.tk-training-times-editor {
  display: grid;
  gap: 0.9rem;
}

.tk-training-times-list {
  display: grid;
  gap: 0.85rem;
}

.tk-training-time-form-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(120px, 0.75fr) minmax(120px, 0.75fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(100, 154, 226, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px -26px rgba(16, 60, 118, 0.45);
}

.tk-training-time-field {
  min-width: 0;
}

.tk-training-time-field .form-label {
  display: block;
}

.tk-training-time-remove {
  margin-bottom: 1px;
}

.tk-training-time-add {
  justify-self: start;
}

.tk-training-times-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(79, 137, 214, 0.38);
  border-radius: 16px;
  color: #58718f;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.tk-training-times-empty.is-hidden {
  display: none;
}

.tk-training-times-legacy-note {
  padding: 0.9rem 1rem;
  border-left: 4px solid #7aaeea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #304e73;
}

.tk-training-times-legacy-note p {
  margin: 0.3rem 0;
  white-space: pre-line;
}

.tk-training-times-display {
  display: grid;
  gap: 0.55rem;
}

.tk-training-time-display-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(92px, auto) minmax(115px, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(126, 168, 224, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(248, 252, 255, 0.98), rgba(235, 244, 255, 0.78));
  color: #26476f;
}

.tk-training-time-display-title {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #102f58;
  font-weight: 700;
}

.tk-training-time-display-day {
  color: #4d6889;
}

.tk-training-time-display-hours {
  white-space: nowrap;
  color: #0b5fc5;
  font-weight: 700;
}

.tk-training-times-public-group {
  width: 100%;
  gap: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.tk-training-time-public-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: initial;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tk-training-time-public-row + .tk-training-time-public-row {
  margin-top: 0.75rem;
  border-top: 0;
}

.tk-training-time-public-row .tk-training-time-display-day {
  color: #333;
  font-weight: 400;
}

.tk-training-time-public-row .tk-training-time-display-hours {
  text-align: right;
  color: #333;
  font-weight: 400;
}

.tk-member-bank-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tk-member-bank-fields > [class*="col-"] {
  width: auto;
  max-width: none;
  grid-column: auto;
}

/* Die Checkbox liegt neben Bankfeldern mittig auf Höhe ihrer Eingaben. */
.tk-member-bank-fields > .tk-member-bank-debit-field {
  align-self: auto;
  padding-top: 1.8rem;
  padding-bottom: 0;
}

@media (max-width: 480px) {
  .tk-member-bank-fields > .tk-member-bank-debit-field {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.tk-member-family-card {
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(126, 168, 224, 0.32);
  border-radius: 16px;
  background: rgba(248, 252, 255, 0.72);
}

.tk-member-family-card-head,
.tk-member-family-add-row,
.tk-member-family-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tk-member-family-card-head {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tk-member-family-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.tk-member-family-card-head p {
  margin: 0.25rem 0 0;
  color: #5e6f88;
}

.tk-member-family-add-row {
  align-items: stretch;
}

.tk-member-family-add-row > * {
  flex: 1 1 0;
}

.tk-member-family-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.tk-member-family-item {
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
  height: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(126, 168, 224, 0.3);
  border-radius: 12px;
  background: #fff;
}

.tk-member-family-item > div {
  display: grid;
  gap: 0.15rem;
}

.tk-member-family-item span {
  color: #5e6f88;
  font-size: 0.88rem;
}

.tk-family-primary-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  vertical-align: -0.1rem;
}

.tk-member-family-profile-list {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(126, 168, 224, 0.24);
}

.tk-member-membership-type-row {
  border-bottom: 0;
}

.tk-member-family-profile-label {
  color: #304e73;
  font-size: 0.9rem;
  font-weight: 600;
}

.tk-member-family-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 1rem;
  padding-left: 0.25rem;
}

.tk-member-family-profile-person {
  min-width: 0;
}

.tk-member-family-profile-name {
  color: #17355c;
  font-weight: 400;
}

.tk-member-family-profile-birth {
  color: #5e6f88;
  white-space: nowrap;
  text-align: right;
}

.tk-member-family-profile-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
}

.tk-member-family-profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eaf2ff;
  border: 1px solid #bdd5f2;
}

.tk-member-family-profile-avatar-placeholder img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .tk-member-family-card-head,
  .tk-member-family-add-row,
  .tk-member-family-item {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .tk-training-time-form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tk-training-time-remove {
    justify-self: end;
    grid-column: 2;
  }
}

@media (max-width: 575.98px) {
  .tk-training-time-form-row,
  .tk-training-time-display-row {
    grid-template-columns: 1fr;
  }

  .tk-training-time-remove {
    grid-column: 1;
  }
}

.tk-membership-checkbox-row {
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(136, 177, 232, 0.16);
  background: rgba(248, 251, 255, 0.58);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tk-membership-checkbox-copy {
  flex: 1 1 auto;
  color: #27466f;
  font-weight: 600;
  white-space: normal;
}

.tk-template-doc-radio-options .tk-membership-checkbox-copy {
  flex: 0 1 auto !important;
  white-space: nowrap !important;
}

.tk-membership-checkbox-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 18px -14px rgba(15, 46, 90, 0.35);
}

.tk-membership-checkbox-row.is-invalid {
  border-color: rgba(209, 62, 76, 0.44);
  box-shadow: 0 0 0 0.2rem rgba(209, 62, 76, 0.08);
  background: rgba(255, 245, 247, 0.72);
}

.tk-membership-checkbox-row.is-invalid .tk-membership-checkbox-indicator {
  background: linear-gradient(180deg, rgba(255, 234, 237, 0.98), rgba(255, 214, 220, 0.96));
  color: #c53e4e;
  border: 1px solid rgba(209, 62, 76, 0.24);
}

.tk-membership-checkbox-row.is-valid {
  border-color: rgba(47, 145, 87, 0.3);
  box-shadow: 0 0 0 0.2rem rgba(47, 145, 87, 0.08);
  background: rgba(240, 252, 244, 0.8);
}

.tk-membership-checkbox-row.is-valid .tk-membership-checkbox-indicator {
  background: linear-gradient(180deg, rgba(231, 250, 238, 0.98), rgba(206, 241, 219, 0.96));
  color: #1f8a53;
  border: 1px solid rgba(47, 145, 87, 0.24);
}

.tk-member-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  width: 100%;
  margin-left: 0;
  padding: 0.45rem 0;
}

.tk-member-form-checkbox .form-check-input {
  margin-top: 0;
  margin-left: 0;
  flex: 0 0 auto;
}

.tk-member-form-checkbox .form-check-label {
  color: #27466f;
  font-weight: 600;
  margin-bottom: 0;
}

.tk-member-form-checkbox-col {
  display: flex;
  align-items: flex-start;
  padding-top: 1.95rem;
}

.tk-member-form-checkbox-col .tk-member-form-checkbox {
  padding-top: 0;
  padding-bottom: 0;
}

.tk-season-form-checkbox .form-check-label {
  white-space: nowrap;
}

.tk-member-team-card-grid,
.tk-member-games-list,
.tk-member-document-grid,
.tk-member-transfer-list {
  gap: 1rem;
}

.tk-member-team-card,
.tk-member-game-card,
.tk-member-document-card,
.tk-member-transfer-card,
.tk-member-games-filter-card,
.tk-member-document-upload-card,
.tk-member-transfer-form-card {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(128, 174, 233, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-member-team-card-head,
.tk-member-game-card-head,
.tk-member-transfer-card-head,
.tk-member-games-filter-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk-member-team-card h3,
.tk-member-game-card h3,
.tk-member-document-card h3,
.tk-member-transfer-card h3,
.tk-member-games-filter-card h3,
.tk-member-document-upload-card h3,
.tk-member-transfer-form-card h3 {
  margin: 0.3rem 0 0;
  color: #17355c;
  font-size: 1.05rem;
}

.tk-member-game-meta,
.tk-member-transfer-summary,
.tk-member-document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.9rem;
  color: #667892;
  font-size: 0.9rem;
}

.tk-member-games-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.tk-member-games-filter-card.is-season-select-stacked {
  flex-wrap: wrap;
}

.tk-member-games-filter-card.is-season-select-stacked .tk-member-games-filter-form {
  justify-content: flex-end;
}

.tk-member-games-season-select {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.tk-member-games-filter-form label,
.tk-member-transfer-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: #667892;
  font-size: 0.88rem;
}

.tk-member-document-upload-card {
  display: grid;
  gap: 1rem;
}

.tk-member-document-upload-form {
  display: none;
}

.tk-member-document-dropzone {
  min-height: 200px;
  display: grid;
  gap: 0.55rem;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(147, 181, 231, 0.38);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(239, 245, 255, 0.98));
  cursor: pointer;
  color: #5b6f8f;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tk-member-document-dropzone:hover,
.tk-member-document-dropzone:focus-visible,
.tk-member-document-dropzone.is-dragover {
  border-color: rgba(44, 118, 234, 0.42);
  box-shadow: 0 0 0 4px rgba(44, 118, 234, 0.12);
  transform: translateY(-1px);
}

.tk-member-document-dropzone strong {
  color: #183c68;
}

.tk-member-document-dropzone-icon,
.tk-member-document-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tk-member-document-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tk-member-document-card {
  display: grid;
  gap: 0.85rem;
}

.tk-member-document-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.tk-member-document-card-head h3 {
  word-break: break-word;
}

.tk-member-document-actions,
.tk-member-transfer-card-actions,
.tk-member-transfer-card-actions form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tk-member-document-actions form {
  margin: 0;
}

.tk-member-transfer-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 1rem;
}

.tk-member-transfer-form-grid.is-compact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(128, 174, 233, 0.24);
}

.tk-member-transfer-notes-field,
.tk-member-transfer-form-actions {
  grid-column: 1 / -1;
}

.tk-member-transfer-form-actions {
  display: flex;
  justify-content: flex-end;
}

.tk-opponent-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tk-admin-split-layout {
  --tk-split-primary-width: 340px;
  --tk-split-primary-min: 260px;
  --tk-split-primary-max: 480px;
  --tk-split-secondary-min: 420px;
  --tk-splitter-size: 10px;
  display: grid;
  grid-template-columns: minmax(var(--tk-split-primary-min), var(--tk-split-primary-width)) var(--tk-splitter-size) minmax(var(--tk-split-secondary-min), 1fr);
  column-gap: 0.35rem;
  row-gap: 1.5rem;
  align-items: start;
}

.tk-opponent-team-screen {
  --tk-split-primary-width: 340px;
  --tk-split-primary-min: 260px;
  --tk-split-primary-max: 480px;
  --tk-split-secondary-min: 420px;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.5rem;
}

.tk-opponent-team-screen .tk-admin-splitter {
  display: none;
}

.tk-opponent-team-screen .tk-opponent-list-panel,
.tk-opponent-team-screen .tk-opponent-detail-panel {
  min-width: 0;
}

.tk-admin-splitter {
  position: relative;
  align-self: stretch;
  min-height: 100%;
  cursor: col-resize;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.tk-admin-splitter::before {
  content: "";
  position: absolute;
  inset: 0.35rem 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(162, 188, 226, 0.08), rgba(104, 149, 212, 0.45), rgba(162, 188, 226, 0.08));
}

.tk-admin-splitter-grip {
  position: sticky;
  top: 10rem;
  display: block;
  width: 10px;
  height: 74px;
  margin: 1.2rem auto;
  border-radius: 999px;
  border: 1px solid rgba(137, 176, 227, 0.34);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(232, 242, 255, 0.98));
  box-shadow: 0 18px 30px -24px rgba(21, 68, 131, 0.45);
}

.tk-admin-splitter-grip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(57, 114, 193, 0.75) 0 1px, transparent 1.5px) center/4px 8px repeat-y;
}

.tk-admin-splitter:hover .tk-admin-splitter-grip,
.tk-admin-splitter:focus-visible .tk-admin-splitter-grip,
.tk-admin-split-layout.is-resizing .tk-admin-splitter-grip {
  border-color: rgba(74, 135, 214, 0.46);
  background: linear-gradient(180deg, rgba(239, 247, 255, 1), rgba(219, 235, 255, 0.99));
  box-shadow: 0 22px 34px -22px rgba(21, 68, 131, 0.4);
}

.tk-opponent-list-panel,
.tk-opponent-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Search and filters share one responsive toolbar. */
.tk-opponent-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  gap: 0.75rem;
}

.tk-opponent-filter-selects {
  display: contents;
}

.tk-opponent-filter-controls {
  display: block;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.tk-opponent-filter-controls .tk-filter-select-control {
  width: 100%;
}

.tk-opponent-filter-controls .tk-filter-select-control.is-content-width {
  width: min(var(--tk-filter-select-content-width), calc(100vw - 4rem));
}

.tk-opponent-filter-row > .tk-user-search-wrap {
  flex: 2 1 18rem;
  width: 100%;
  min-width: 0;
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  .tk-opponent-filter-controls,
  .tk-opponent-filter-row > .tk-user-search-wrap {
    flex-basis: 100%;
  }
}

.tk-opponent-list-stack,
.tk-opponent-player-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tk-opponent-list-grid-wrap { margin: 0.5rem 0 0; }
.tk-opponent-list-grid { min-width: 980px; margin-bottom: 0; }
.tk-opponent-grid-row { cursor: pointer; }
.tk-opponent-grid-row.is-selected { background: rgba(227, 239, 255, 0.7); }
.tk-opponent-grid-row:focus-visible { outline: 2px solid rgba(22, 93, 255, 0.42); outline-offset: -2px; }

.tk-opponent-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(135, 161, 205, 0.2);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(244, 248, 255, 0.96));
  color: #1d3b68;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tk-opponent-list-card:hover,
.tk-opponent-list-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(84, 144, 226, 0.34);
  box-shadow: 0 18px 34px -28px rgba(17, 54, 106, 0.42);
}

.tk-opponent-list-head,
.tk-opponent-list-meta,
.tk-opponent-detail-meta,
.tk-opponent-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tk-opponent-list-chip-row {
  margin-top: -0.1rem;
}

.tk-opponent-list-location {
  display: grid;
  gap: 0.35rem;
}

.tk-opponent-list-count-badge {
  padding: 0.32rem 0.62rem;
  font-size: 0.72rem;
  box-shadow: none;
}

.tk-opponent-detail-primary {
  min-width: 0;
  flex: 1 1 0;
}

.tk-admin-chip.tk-admin-chip-sand {
  background: rgba(246, 233, 211, 0.92);
  color: #9a681a;
}

.tk-opponent-player-textarea {
  min-height: 240px;
  resize: vertical;
}

.tk-opponent-preview-card {
  padding: 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(135, 161, 205, 0.18);
  background: linear-gradient(180deg, rgba(252, 248, 240, 0.95), rgba(246, 249, 255, 0.98));
}

.tk-opponent-preview-badge {
  margin-bottom: 0.95rem;
}

.tk-opponent-preview-card h3 {
  margin: 0.25rem 0 0.75rem;
  color: #173b67;
}

.tk-role-management-screen {
  --tk-split-primary-width: 360px;
  --tk-split-primary-min: 300px;
  --tk-split-primary-max: 520px;
  --tk-split-secondary-min: 620px;
}

.tk-role-detail-column,
.tk-role-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tk-role-list-panel {
  min-width: 0;
}

.tk-role-detail-column {
  min-width: 0;
}

.tk-role-panel-copy {
  margin: 0.35rem 0 0;
  color: #627897;
}

.tk-role-toolbar-row {
  align-items: stretch;
}

.tk-role-permission-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.tk-role-club-filter-controls {
  width: 100%;
  margin-left: 0;
  flex: 1 1 100%;
  --educ8-field-focus-border: var(--dropdown-focus-border);
  --educ8-field-focus-glow: var(--dropdown-focus-glow);
  --educ8-select-border: var(--dropdown-border);
  --educ8-select-border-inner: var(--dropdown-border-inner);
  --educ8-select-bg: linear-gradient(180deg, var(--dropdown-bg-top), var(--dropdown-bg-bottom));
  --educ8-select-text: var(--dropdown-text);
}

.tk-role-club-filter-controls .select2-container,
.tk-role-club-filter-controls .select2-container--bootstrap5,
.tk-role-club-filter-controls .select2-selection,
.tk-role-club-filter-controls .select2-selection--single {
  width: 100% !important;
}

.tk-role-permission-category-select {
  min-width: 220px;
  width: 220px;
}

.tk-role-list-stack,
.tk-role-permission-list,
.tk-role-detail-stack,
.tk-role-detail-meta,
.tk-role-inline-facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tk-role-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(135, 161, 205, 0.2);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(244, 248, 255, 0.96));
  color: #1d3b68;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tk-role-card:hover,
.tk-role-card:focus-visible,
.tk-role-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(84, 144, 226, 0.34);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.99), rgba(233, 243, 255, 0.98));
  box-shadow: 0 18px 34px -28px rgba(17, 54, 106, 0.42);
}

.tk-role-card:focus-visible {
  outline: 0;
}

.tk-role-card-head,
.tk-role-card-meta,
.tk-role-detail-head,
.tk-role-detail-actions,
.tk-role-inline-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tk-role-card h3,
.tk-role-detail-title {
  margin: 0;
  color: #183f73;
}

.tk-role-card-description,
.tk-role-detail-description,
.tk-role-permission-description {
  margin: 0;
  color: #60748f;
}

.tk-role-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tk-role-card-badge-row,
.tk-role-detail-badge-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tk-swal-delete-warning {
  margin: 1rem 0 0;
  color: #b42318;
  font-weight: 700;
}

.tk-swal-conflict-content { text-align: left; }
.tk-swal-conflict-content > section + section { margin-top: 1.1rem; }
.tk-swal-conflict-section { display: grid; gap: .2rem; }
.tk-swal-conflict-section > strong,
.tk-swal-conflict-list > strong { color: var(--bs-heading-color, #0f2440); font-weight: 750; }
.tk-swal-conflict-section > span { font-weight: 650; }
.tk-swal-conflict-section > small { color: #61718a; }
.tk-swal-conflict-list { display: grid; gap: .8rem; }
.tk-swal-conflict-list > strong { display: block; }
.tk-swal-conflict-list .tk-swal-conflict-section { padding-top: .8rem; border-top: 1px solid rgba(119, 154, 202, .28); }
.tk-swal-conflict-question { margin: 1.35rem 0 0; font-weight: 700; text-align: center; }

.tk-role-list-panel .tk-admin-panel-head {
  align-items: flex-start;
}

.tk-role-list-panel .tk-role-card-badge-row {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.tk-role-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 173, 220, 0.22);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.94));
  color: #24426f;
  font-size: 0.8rem;
  font-weight: 700;
}

.tk-role-meta-pill.is-system {
  border-color: rgba(198, 166, 96, 0.28);
  background: linear-gradient(180deg, rgba(250, 245, 233, 0.98), rgba(245, 236, 214, 0.96));
  color: #8b6110;
}

.tk-role-detail-card {
  min-height: 240px;
}

.tk-role-detail-head {
  align-items: flex-start;
}

.tk-role-detail-subtitle {
  margin: 0.35rem 0 0;
  color: #6b809f;
}

.tk-role-detail-stack {
  min-width: 0;
}

.tk-platform-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tk-platform-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.tk-platform-summary-card h2 {
  margin: 0.3rem 0 0;
  color: #153e72;
  font-size: 1.7rem;
}

.tk-platform-club-screen {
  --tk-split-primary-width: 360px;
  --tk-split-primary-min: 320px;
  --tk-split-primary-max: 460px;
  --tk-split-secondary-min: 680px;
}

.tk-platform-list-panel,
.tk-platform-detail-column,
.tk-platform-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tk-platform-detail-column {
  min-width: 0;
}

.tk-platform-club-list {
  min-width: 0;
}

.tk-platform-club-card {
  text-decoration: none;
}

.tk-platform-club-card-meta {
  display: grid;
  gap: 0.55rem;
}

.tk-platform-club-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #617894;
}

.tk-platform-club-meta-line strong {
  color: #1f4478;
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tk-platform-detail-card {
  min-height: 720px;
}

.tk-platform-detail-head {
  align-items: flex-start;
}

.tk-platform-form-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(145, 181, 228, 0.22);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(236, 244, 255, 0.95));
  color: #38567d;
}

.tk-platform-form-banner strong {
  display: block;
  margin-top: 0.22rem;
  color: #21416e;
}

.tk-platform-group-card {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(145, 181, 228, 0.22);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(236, 244, 255, 0.94));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-platform-group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
}

.tk-platform-group-card .tk-admin-field-note {
  margin: 0;
}

.tk-platform-club-details-table {
  min-width: 820px;
  table-layout: fixed;
}

.tk-platform-club-details-table__key {
  width: 20%;
}

.tk-platform-club-details-table__value {
  width: 30%;
}

.tk-platform-club-details-table th:nth-child(3),
.tk-platform-club-details-table td:nth-child(3) {
  padding-left: 2rem;
  border-left: 1px solid rgba(145, 181, 228, 0.42);
}

.tk-platform-club-details-table th:nth-child(3) {
  color: #17324f;
}

.tk-platform-club-details-table td {
  overflow-wrap: anywhere;
}

.tk-platform-logo-dropzone .tk-upload-dropzone-stage {
  min-height: 190px;
}

.tk-platform-logo-dropzone .tk-upload-dropzone-preview {
  min-height: 0;
  height: 190px;
  max-height: 190px;
  padding: 1rem;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(238, 244, 255, 0.96));
}

.tk-platform-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.tk-platform-admin-card {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 0.9rem 1rem;
  border-top: 0;
}

.tk-platform-admin-card > span {
  display: grid;
  gap: 0.2rem;
}

.tk-platform-admin-grid > .tk-platform-admin-card:first-of-type {
  padding-top: 0.9rem;
}

.tk-platform-admin-card strong,
.tk-platform-admin-card small {
  white-space: nowrap;
}

.tk-platform-admin-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk-platform-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(169, 189, 219, 0.26);
}

.tk-platform-section-head h3 {
  margin: 0;
  color: #183f73;
  font-size: 1rem;
}

.tk-platform-clubs-page .tk-admin-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 1399px) {
  .tk-platform-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tk-role-detail-meta-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(133, 168, 221, 0.2);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(240, 247, 255, 0.95));
}

.tk-role-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tk-role-detail-stat {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(133, 168, 221, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.tk-role-detail-stat span {
  color: #6c819f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tk-role-detail-stat strong {
  color: #183f73;
  font-size: 1.05rem;
}

.tk-role-detail-actions {
  padding-top: 0.25rem;
}

.tk-role-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tk-role-action-group form {
  margin: 0;
}

.tk-role-inline-status {
  min-height: 1.35rem;
  margin: 0;
  color: #617793;
  font-size: 0.92rem;
  font-weight: 600;
}

.tk-role-inline-status[data-tone="success"] {
  color: #1f8a45;
}

.tk-role-inline-status[data-tone="error"] {
  color: #b24747;
}

.tk-role-inline-status[data-tone="pending"] {
  color: #275efe;
}

.tk-role-permission-list {
  min-width: 0;
}

.tk-role-permission-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.08);
  background: rgba(249, 252, 255, 0.96);
}

.tk-role-permission-row.is-assigned {
  border-color: rgba(74, 135, 214, 0.24);
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.98), rgba(235, 244, 255, 0.97));
}

.tk-role-permission-main {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.tk-role-permission-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.tk-role-permission-code {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.tk-role-permission-category {
  color: #6c819f;
  font-size: 0.84rem;
  font-weight: 700;
}

.tk-role-permission-toggle {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.tk-role-permission-toggle input {
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
}

.tk-role-permission-toggle input:disabled {
  cursor: not-allowed;
}

.tk-role-list-panel .tk-role-pagination-bar,
.tk-role-permissions-card .tk-role-pagination-bar {
  justify-content: space-between;
  padding-top: 0;
  border-top: 0;
}

.tk-role-list-panel .tk-role-pagination-bar {
  margin-top: 0;
}

.tk-role-permissions-card .tk-role-pagination-bar {
  margin-top: 0;
}

.tk-role-pagination-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tk-role-page-size-form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.tk-role-page-size-select {
  width: 92px;
  min-width: 92px;
}

.tk-opponent-player-row {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(135, 161, 205, 0.14);
}

.tk-department-item {
  gap: 1rem;
}

.tk-department-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.tk-department-panel-count-badge {
  flex: 0 0 auto;
}

.tk-department-panel-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.tk-department-panel-members-badge {
  flex: 0 0 auto;
}

.tk-department-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tk-department-search-form {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-department-accordion {
  padding: 0;
  overflow: hidden;
}

.tk-department-accordion-summary {
  position: relative;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1rem;
  padding-right: 8.4rem;
  cursor: pointer;
}

.tk-department-accordion-summary::-webkit-details-marker {
  display: none;
}

.tk-department-accordion-main {
  min-width: 0;
}

.tk-department-accordion-meta {
  margin-top: 0.85rem;
}

.tk-department-accordion-side {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.tk-department-accordion-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 173, 220, 0.28);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(234, 243, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(31, 94, 173, 0.08);
}

.tk-department-accordion-caret-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.tk-department-accordion-caret-icon.is-expanded {
  display: none;
}

.tk-department-accordion[open] .tk-department-accordion-caret-icon.is-collapsed {
  display: none;
}

.tk-department-accordion[open] .tk-department-accordion-caret-icon.is-expanded {
  display: block;
}

.tk-department-accordion-body {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.tk-department-toggle-all-btn {
  flex: 0 0 auto;
}

.tk-department-toggle-all-icon {
  width: 1rem;
  height: 1rem;
}

.tk-department-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.tk-department-profile-card {
  min-width: 0;
  height: auto;
}

.tk-department-lead-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-department-lead-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 180, 225, 0.34);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.98));
  color: #355985;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tk-department-lead-badge.is-primary {
  border-color: rgba(80, 138, 228, 0.34);
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.98), rgba(222, 237, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 18px rgba(25, 94, 185, 0.1);
  color: #1f5ead;
}

.tk-department-form-card {
  max-width: none;
  margin: 0 auto;
}

.tk-department-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-department-membership-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(128, 174, 233, 0.2);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-department-membership-select {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

.tk-department-membership-select input {
  margin-top: 0.2rem;
}

.tk-department-membership-select strong {
  display: block;
  color: #17355c;
}

.tk-department-membership-select small {
  color: #7386a3;
}

@media (max-width: 991.98px) {
  .tk-department-panel-head {
    padding-right: 7.5rem;
  }

  .tk-department-panel-badges {
    position: absolute;
    top: 0;
    right: 0;
  }

  .tk-department-panel-count-badge {
    position: static;
  }

  .tk-department-toolbar {
    align-items: stretch;
  }

  .tk-department-content-grid {
    grid-template-columns: 1fr;
  }

  .tk-department-accordion-summary {
    padding-right: 7.2rem;
  }

  .tk-department-accordion-side {
    top: 0.9rem;
    right: 0.9rem;
  }

  .tk-department-logo-card {
    min-height: 180px;
  }

  .tk-department-lead-badges {
    width: 100%;
  }

  .tk-department-lead-badge {
    flex: 1 1 100%;
    justify-content: center;
  }

  .tk-department-membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .tk-department-management-page .tk-admin-hero {
    display: block;
    padding-top: 1.3rem;
  }

  .tk-department-management-page .tk-admin-hero > :first-child {
    width: 100%;
    max-width: 100%;
  }

  .tk-department-management-page .tk-admin-hero-actions {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    margin-left: 0;
  }

  .tk-department-management-page .tk-admin-hero .tk-dashboard-copy {
    padding-right: 0;
  }

  .tk-department-panel-head {
    min-height: 3rem;
    margin-bottom: 0.55rem;
  }

  .tk-department-toolbar {
    gap: 0.55rem;
  }

  .tk-department-search-form {
    flex: 1 1 0;
  }

  .tk-department-accordion-summary {
    padding-right: 6.4rem;
  }

  .tk-department-accordion-side {
    gap: 0.4rem;
  }

  .tk-department-accordion-side .tk-season-status-pill {
    padding-inline: 0.7rem;
    font-size: 0.82rem;
  }
}

.tk-user-select-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid #8eb2e3;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tk-user-management-table tbody tr.is-selected .tk-user-select-btn {
  border-color: #39c8bb;
  background: linear-gradient(180deg, #86efe2, #38cabc);
  box-shadow: 0 0 0 1px rgba(57, 200, 187, 0.22);
}

.tk-user-action-menu-shell {
  position: relative;
}

.tk-user-menu-toggle {
  position: relative;
}

.tk-user-menu-image,
.tk-user-icon-image,
.tk-user-action-icon-image,
.tus-admin-sidebar-icon-image,
.tus-admin-sidebar-arrow-image,
.tus-admin-sidebar-pin-image {
  display: block;
  object-fit: contain;
}

.tk-user-menu-image,
.tk-user-icon-image {
  width: 18px;
  height: 18px;
}

.tk-user-action-icon-image {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.tk-user-action-menu {
  position: fixed;
  z-index: 9999;
  min-width: 280px;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98));
  box-shadow: 0 24px 48px rgba(11, 34, 73, 0.18);
  top: auto;
  left: auto;
}

.tk-user-action-form {
  margin: 0;
}

.tk-user-action-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #16375f;
  font-weight: 700;
  text-align: left;
}

.tk-user-action-item.is-regular {
  font-weight: 400;
}

.tk-user-action-item:hover {
  background: rgba(236, 246, 255, 0.86);
}

.tk-user-action-item.is-disabled {
  color: #94a4bc;
  cursor: not-allowed;
}

.tk-user-action-item.is-disabled:hover {
  background: transparent;
}

.tk-user-action-item.is-danger {
  color: #d13e4c;
}

.tk-user-table-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tk-user-icon-btn,
.tk-modal-icon-btn,
.tk-password-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(141, 173, 220, 0.28);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(234, 243, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(31, 94, 173, 0.08);
}

.tk-user-icon-btn:hover,
.tk-modal-icon-btn:hover,
.tk-password-toggle-btn:hover {
  border-color: rgba(71, 128, 204, 0.38);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(223, 237, 255, 0.94));
}

.tk-password-toggle-icon {
  opacity: 0.72;
}

.tk-password-toggle-btn.is-active .tk-password-toggle-icon {
  opacity: 1;
}

.tk-modal .modal-dialog {
  max-width: 840px;
}

.tk-opponent-modal-dialog {
  max-width: 960px;
}

/* The opponent form uses the shared member form cards.  Normalize the
   Bootstrap row gutter against the card padding so labels align with the
   card's upper edge and every label/control pair keeps the same rhythm. */
.tk-opponent-modal-dialog .tk-member-form-group-card {
  padding: 1rem 1.2rem;
}

.tk-opponent-modal-dialog .tk-member-form-group-card > .row {
  --bs-gutter-y: 0.75rem;
  margin-top: calc(-1 * var(--bs-gutter-y));
}

.tk-opponent-modal-dialog .tk-member-form-group-card:has(.tk-opponent-player-textarea) {
  gap: 0.45rem;
}

.tk-opponent-modal-dialog .tk-member-form-group-card:has(.tk-opponent-player-textarea) > .form-label {
  margin-bottom: 0;
}

.tk-opponent-modal-dialog .tk-member-form-group-card:has(.tk-opponent-player-textarea) .tk-admin-user-subline.mt-2 {
  margin-top: 0.3rem !important;
}

.tk-modal-content {
  border: 1px solid rgba(18, 54, 105, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
  box-shadow: 0 32px 80px rgba(11, 34, 73, 0.22);
}

.tk-modal-header,
.tk-modal-footer {
  padding: 1.35rem 1.5rem;
  border-color: rgba(18, 54, 105, 0.08);
}

.tk-modal-title {
  margin: 0;
  color: #13284d;
  font-size: 1.55rem;
}

.tk-tournament-create-dialog .tk-modal-header > .is-cancel { margin-left:auto; }

.tk-modal-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem 1.1rem;
}

.tk-modal-field {
  display: grid;
  gap: 0.55rem;
}

.tk-password-input-wrap {
  position: relative;
}

.tk-input-validation-wrap {
  position: relative;
}

.tk-validation-input {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tk-input-validation-wrap .tk-validation-input {
  padding-right: 3.35rem;
}

.tk-input-validation-wrap.is-with-action .tk-validation-input {
  padding-right: 6rem;
}

.tk-password-input-wrap .tk-password-input {
  padding-right: 6rem;
}

.tk-input-validation-indicator {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.tk-input-validation-indicator.is-with-action {
  right: 3.35rem;
}

.tk-input-validation-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 18px -14px rgba(15, 46, 90, 0.35);
}

.tk-input-validation-wrap[data-validation-state="invalid"] .tk-input-validation-glyph {
  background: linear-gradient(180deg, rgba(255, 234, 237, 0.98), rgba(255, 214, 220, 0.96));
  color: #c53e4e;
  border: 1px solid rgba(209, 62, 76, 0.24);
}

.tk-input-validation-wrap[data-validation-state="valid"] .tk-input-validation-glyph {
  background: linear-gradient(180deg, rgba(231, 250, 238, 0.98), rgba(206, 241, 219, 0.96));
  color: #1f8a53;
  border: 1px solid rgba(47, 145, 87, 0.24);
}

.tk-input-validation-wrap[data-validation-state="invalid"] .tk-validation-input,
.tk-input-validation-wrap[data-validation-state="invalid"] .tk-validation-input:focus,
.tk-input-validation-wrap[data-validation-state="invalid"] .tk-validation-input:active {
  border-color: rgba(209, 62, 76, 0.82) !important;
  box-shadow: 0 0 0 0.2rem rgba(209, 62, 76, 0.14), inset 0 0 0 1px rgba(209, 62, 76, 0.08) !important;
}

.tk-input-validation-wrap[data-validation-state="valid"] .tk-validation-input,
.tk-input-validation-wrap[data-validation-state="valid"] .tk-validation-input:focus,
.tk-input-validation-wrap[data-validation-state="valid"] .tk-validation-input:active {
  border-color: rgba(47, 145, 87, 0.82) !important;
  box-shadow: 0 0 0 0.2rem rgba(47, 145, 87, 0.14), inset 0 0 0 1px rgba(47, 145, 87, 0.08) !important;
}

.tk-input-validation-wrap[data-validation-state="invalid"] .tk-validation-input:-webkit-autofill,
.tk-input-validation-wrap[data-validation-state="invalid"] .tk-validation-input:-webkit-autofill:hover,
.tk-input-validation-wrap[data-validation-state="invalid"] .tk-validation-input:-webkit-autofill:focus {
  border-color: rgba(209, 62, 76, 0.82) !important;
  -webkit-text-fill-color: #17355c;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 0.2rem rgba(209, 62, 76, 0.14) !important;
}

.tk-input-validation-wrap[data-validation-state="valid"] .tk-validation-input:-webkit-autofill,
.tk-input-validation-wrap[data-validation-state="valid"] .tk-validation-input:-webkit-autofill:hover,
.tk-input-validation-wrap[data-validation-state="valid"] .tk-validation-input:-webkit-autofill:focus {
  border-color: rgba(47, 145, 87, 0.82) !important;
  -webkit-text-fill-color: #17355c;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 0.2rem rgba(47, 145, 87, 0.14) !important;
}

.tk-password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
}

.tk-modal-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tk-modal-role-option {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 54, 105, 0.08);
  background: rgba(248, 251, 255, 0.96);
}

.tk-modal-role-option small {
  display: block;
  color: #6d7f98;
  margin-top: 0.2rem;
}

.tk-modal-toggle-card {
  margin: 0;
}

.tk-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
}

.tk-modal-icon-btn.is-confirm .tk-user-icon-image {
  filter: saturate(1.05);
}

.tk-user-detail-list {
  display: grid;
  gap: 0.65rem;
}

.tk-directory-grid,
.tk-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-team-grid-public {
  grid-template-columns: minmax(0, 1fr);
}

.tk-team-department-section {
  display: grid;
  gap: 1rem;
}

.tk-team-department-section + .tk-team-department-section {
  margin-top: 1.5rem;
}

.tk-team-department-head {
  padding: 1rem 1.3rem;
}

.tk-team-department-head h2 {
  margin: 0;
}

.tk-directory-card,
.tk-team-card {
  padding: 1.3rem;
}

.tk-team-card {
  position: relative;
  padding-top: 1.5rem;
}

.tk-team-card .tk-widget-head {
  padding-right: 15rem;
}

.tk-team-card-league-badge {
  position: absolute;
  top: 1.15rem;
  right: 1.3rem;
  z-index: 1;
  max-width: calc(100% - 2.6rem);
}

.tk-directory-card.tk-department-card-split {
  display: grid;
  grid-template-columns: minmax(280px, 40%) minmax(0, 1fr);
  gap: 0;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
}

.tk-department-card-media {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(155deg, rgba(194, 227, 255, 0.95), rgba(102, 173, 224, 0.9));
}

.tk-department-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 53, 0.08), rgba(8, 27, 53, 0.18));
  pointer-events: none;
}

.tk-department-card-media-fallback {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.tk-department-card-media-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: flex-start;
  object-fit: contain;
  object-position: center top;
}

.tk-department-card-media-fallback {
  display: grid;
  place-items: center;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #143c73;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    linear-gradient(155deg, rgba(194, 227, 255, 0.95), rgba(102, 173, 224, 0.9));
}

.tk-department-card-content {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1.35rem;
}

.tk-department-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.tk-department-card-top h2 {
  margin: 0.2rem 0 0;
}

.tk-department-card-body {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(18, 54, 105, 0.10);
  background: rgba(247, 251, 255, 0.92);
}

.tk-department-card-summary {
  margin: 0;
}

.tk-department-card-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.tk-department-card-fact {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.08);
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.96), rgba(228, 240, 255, 0.92));
  color: inherit;
  text-decoration: none;
}

.tk-department-card-fact:hover {
  border-color: rgba(22, 93, 255, 0.24);
  color: inherit;
}

.tk-department-card-fact-label {
  color: #6f82a3;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tk-department-card-fact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tk-department-card-fact-action {
  flex: 0 0 auto;
}

.tk-department-card-fact-value {
  color: #16375f;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tk-department-card-fact-wide {
  grid-column: auto;
}

.tk-department-logo-dropzone .tk-upload-dropzone-stage {
  min-height: 220px;
}

.tk-department-logo-dropzone .tk-upload-dropzone-preview {
  width: auto;
  max-width: 100%;
  min-height: 0;
  height: auto;
  max-height: 200px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(238, 244, 255, 0.96));
}

.tk-department-item-head-aside:not(.tk-department-accordion-side) {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.tk-department-item-head-aside.tk-department-accordion-side {
  display: inline-flex;
  justify-items: initial;
}

.tk-department-logo-card {
  display: grid;
  place-items: center;
  order: -1;
  width: 100%;
  min-height: 0;
  padding: 0.25rem 0 0.65rem;
  align-self: auto;
}

.tk-department-overview-logo,
.tk-department-overview-logo-fallback {
  min-width: 0;
  max-width: min(100%, 360px);
  border-radius: 14px;
}

.tk-department-overview-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: none;
  mix-blend-mode: multiply;
}

.tk-department-overview-logo-fallback {
  display: grid;
  place-items: center;
  width: min(100%, 220px);
  height: 150px;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(14, 39, 76, 0.12);
}

.tk-department-profile-card .tk-member-panel-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
}

.tk-department-profile-card .tk-member-info-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid rgba(120, 161, 218, 0.22);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.96));
  box-shadow: 0 16px 34px -28px rgba(17, 54, 106, 0.42);
}

.tk-department-profile-card .tk-member-info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(31, 112, 229, 0.78), rgba(74, 191, 214, 0.52));
}

.tk-department-profile-card .tk-member-info-card .tk-widget-kicker {
  margin-bottom: 0.35rem;
}

.tk-department-profile-card .tk-member-info-list {
  gap: 0;
  margin-top: 0.75rem;
}

.tk-department-profile-card .tk-training-times-info-list {
  width: 100%;
}

.tk-department-profile-card .tk-member-info-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(128, 174, 233, 0.16);
}

.tk-department-profile-card .tk-member-info-row:last-child {
  border-bottom: 0;
}

.tk-department-profile-card .tk-member-info-row .tk-data-key-badge {
  display: block;
  justify-self: start;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60738f;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: left;
}

.tk-department-profile-card .tk-member-info-row strong {
  min-width: 0;
  max-width: 100%;
  color: #334a68;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tk-team-department-accordion-list {
  display: grid;
  gap: 1rem;
}

.tk-team-activity-filter {
  min-height: var(--form-control-height);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.2rem 0;
  flex: 0 1 auto;
  cursor: pointer;
}

.tk-team-activity-filter-label {
  color: #183864;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.tk-team-activity-filter-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.tk-team-activity-filter-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tk-team-activity-filter-slider {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(137, 171, 222, 0.34);
  background: linear-gradient(180deg, rgba(226, 233, 244, 0.95), rgba(213, 222, 237, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tk-team-activity-filter-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 8px 16px rgba(12, 37, 72, 0.18);
  transition: transform 0.2s ease;
}

.tk-team-activity-filter-switch input:checked + .tk-team-activity-filter-slider {
  border-color: rgba(81, 167, 105, 0.36);
  background: linear-gradient(180deg, rgba(188, 241, 200, 0.96), rgba(145, 223, 164, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 18px -14px rgba(49, 137, 78, 0.38);
}

.tk-team-activity-filter-switch input:checked + .tk-team-activity-filter-slider::after {
  transform: translateX(24px);
}

.tk-team-activity-filter-switch input:focus-visible + .tk-team-activity-filter-slider {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(59, 120, 206, 0.18);
}

.tk-team-department-accordion {
  padding: 0;
  overflow: hidden;
}

.tk-team-department-accordion-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(240, 246, 255, 0.95));
}

.tk-team-department-accordion-summary::-webkit-details-marker {
  display: none;
}

.tk-team-department-accordion-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.tk-team-department-accordion-main h3 {
  margin: 0;
}

.tk-team-department-accordion-main p {
  margin: 0.2rem 0 0;
  color: #667a99;
}

.tk-team-department-accordion-side {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.tk-team-department-accordion-logo,
.tk-team-department-accordion-logo-image,
.tk-team-department-accordion-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.tk-team-department-accordion-logo-image {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(122, 163, 220, 0.2);
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.99), rgba(237, 244, 255, 0.96));
  box-shadow: 0 12px 24px rgba(14, 39, 76, 0.12);
}

.tk-team-department-accordion-logo-fallback {
  display: grid;
  place-items: center;
  text-transform: uppercase;
  font-size: 1.35rem;
  font-weight: 800;
  color: #143c73;
  background: linear-gradient(155deg, rgba(194, 227, 255, 0.95), rgba(102, 173, 224, 0.9));
  box-shadow: 0 12px 24px rgba(14, 39, 76, 0.12);
}

.tk-team-department-accordion-toggle {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(133, 170, 225, 0.26);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(235, 244, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tk-team-department-accordion-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid #4470ab;
  border-bottom: 2px solid #4470ab;
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform 0.2s ease;
}

.tk-team-department-accordion[open] .tk-team-department-accordion-toggle::before {
  transform: translate(-50%, -38%) rotate(225deg);
}

.tk-team-department-accordion-body {
  padding: 0 1rem 1rem;
}

.tk-team-department-accordion-body .tk-team-item:first-child {
  margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
  .tk-team-activity-filter {
    margin-left: 0;
  }

  .tk-team-department-accordion-summary {
    align-items: flex-start;
  }

  .tk-team-department-accordion-side {
    align-self: center;
  }
}

@media (max-width: 767px) {
  .tk-team-activity-filter {
    width: 100%;
    justify-content: space-between;
  }

  .tk-team-activity-filter-switch {
    justify-content: flex-end;
  }

  .tk-team-department-accordion-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-team-department-accordion-side {
    justify-content: space-between;
  }

  .tk-team-department-accordion-logo,
  .tk-team-department-accordion-logo-image,
  .tk-team-department-accordion-logo-fallback {
    width: 60px;
    height: 60px;
  }
}

.tk-team-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.tk-team-card-copy {
  margin: 0 0 1rem;
  color: #5e6f88;
}

.tk-team-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.tk-team-public-layout.is-no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.tk-team-public-photo-card,
.tk-team-photo-card {
  display: block;
  width: 100%;
  max-width: 800px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(18, 54, 105, 0.12);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(239, 245, 255, 0.94));
  box-shadow: 0 22px 40px -34px rgba(18, 48, 104, 0.45);
}

.tk-team-public-photo-image,
.tk-team-photo-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.tk-team-public-lineup {
  display: grid;
  gap: 0.75rem;
}

.tk-team-public-lineup-shell {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.tk-team-public-lineup-card {
  height: fit-content;
  border-color: rgba(138, 178, 233, 0.28);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(232, 241, 255, 0.94));
}

.tk-team-public-lineup-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.10);
  background: rgba(247, 251, 255, 0.92);
}

.tk-team-public-lineup-copy {
  min-width: 0;
}

.tk-team-public-lineup-copy strong {
  display: block;
  color: #16375f;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .tk-team-public-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-team-public-photo-card {
    margin-left: auto;
    margin-right: auto;
  }
}

.tk-team-roster {
  display: grid;
  gap: 0.9rem;
}

.tk-team-member {
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.10);
  background: rgba(247, 251, 255, 0.92);
}

.tk-team-member strong {
  display: block;
  color: #16375f;
}

.tk-team-photo-dropzone-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 1rem;
  align-items: stretch;
}

.tk-team-photo-dropzone {
  align-content: start;
  min-height: 220px;
}

.tk-team-photo-dropzone-stage {
  min-height: 220px;
}

.tk-team-photo-dropzone-placeholder {
  min-height: 220px;
}

.tk-team-photo-preview-card {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(18, 54, 105, 0.12);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(239, 245, 255, 0.94));
  box-shadow: 0 22px 40px -34px rgba(18, 48, 104, 0.45);
}

.tk-team-photo-dropzone-wrap.is-dragover .tk-team-photo-dropzone,
.tk-team-photo-preview-card.is-dragover {
  border-color: rgba(44, 118, 234, 0.42);
  box-shadow: 0 0 0 4px rgba(44, 118, 234, 0.12);
}

.tk-team-photo-dropzone-wrap.is-dragover .tk-team-photo-preview-card,
.tk-team-photo-preview-card.is-dragover {
  transform: translateY(-1px);
}

.tk-team-photo-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.tk-team-photo-preview-card.is-empty .tk-team-photo-preview-image,
.tk-team-photo-preview-image.is-hidden {
  display: none;
}

.tk-team-photo-preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
  color: #16375f;
}

.tk-team-photo-preview-placeholder.is-hidden {
  display: none;
}

.tk-team-photo-preview-placeholder strong {
  font-size: 1.1rem;
}

.tk-team-item {
  gap: 1rem;
}

.tk-team-admin-layout {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.tk-team-admin-layout.is-no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.tk-team-head-main {
  min-width: 0;
}

.tk-team-head-side {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin-left: auto;
}

.tk-team-context-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}

.tk-team-context-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 180, 225, 0.34);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.98));
  color: #355985;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tk-team-context-badge.is-sand {
  border-color: rgba(214, 177, 118, 0.36);
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.98), rgba(246, 233, 210, 0.96));
  color: #8a6231;
}

.tk-team-context-badge[href] {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.tk-team-context-badge[href]:hover {
  border-color: rgba(214, 177, 118, 0.6);
  background: linear-gradient(180deg, rgba(255, 248, 237, 1), rgba(246, 233, 210, 1));
  box-shadow: 0 2px 4px rgba(214, 177, 118, 0.2);
}

.tk-team-context-badge[href]:focus {
  outline: 2px solid rgba(214, 177, 118, 0.5);
  outline-offset: 2px;
}

.tk-game-editor-section-badge {
  padding: 0.75rem 1.25rem;
  border-color: rgba(72, 128, 204, 0.4);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.99), rgba(223, 237, 255, 0.98));
  color: #184787;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px -22px rgba(22, 82, 184, 0.55);
}

.tk-team-roster-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tk-team-admin-lineup-list {
  display: grid;
  gap: 0.75rem;
}

.tk-team-admin-lineup-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 54, 105, 0.10);
  background: rgba(247, 251, 255, 0.92);
}

.tk-team-admin-lineup-copy {
  min-width: 0;
}

.tk-team-admin-lineup-copy strong {
  display: block;
  color: #16375f;
  font-size: 1rem;
}

.tk-team-roster-member {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 88px;
}

.tk-team-roster-avatar,
.tk-team-roster-avatar-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(14, 39, 76, 0.14);
}

.tk-team-roster-avatar {
  object-fit: cover;
  background: rgba(240, 245, 252, 0.9);
}

.tk-team-roster-avatar-placeholder {
  font-size: 1.1rem;
}

.tk-team-roster-name {
  max-width: 110px;
  color: #17355c;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 1100px) {
  .tk-team-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-team-photo-card {
    margin-left: auto;
    margin-right: auto;
  }
}

.tk-team-form-card {
  max-width: 1280px;
  margin: 0 auto;
}

.tk-team-lineup-shell {
  display: grid;
  gap: 1.25rem;
}

.tk-lineup-section-badge-wrap {
  margin-bottom: 0.95rem;
}

.tk-lineup-section-badge {
  padding: 0.78rem 1.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(226, 239, 255, 0.98), rgba(210, 229, 255, 0.96));
  border: 1px solid rgba(96, 146, 221, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tk-team-lineup-panel {
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(24, 72, 138, 0.12);
  background: linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(243, 248, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tk-team-lineup-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.tk-team-lineup-panel-header h2 {
  margin: 0;
  color: #16375f;
  font-size: 1.18rem;
}

.tk-team-lineup-panel-header p {
  margin: 0.3rem 0 0;
  color: #627894;
}

.tk-team-lineup-table {
  margin: 0;
  vertical-align: middle;
}

.tk-team-lineup-table thead th {
  border-bottom-color: rgba(24, 72, 138, 0.14);
  color: #58708f;
  font-size: 0.81rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tk-team-lineup-table tbody tr {
  border-color: rgba(24, 72, 138, 0.08);
}

.tk-team-lineup-table tbody tr.is-dragging {
  opacity: 0.55;
}

.tk-team-lineup-table tbody td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.tk-lineup-avatar-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
}

.tk-lineup-avatar-image,
.tk-lineup-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(14, 39, 76, 0.12);
}

.tk-lineup-avatar-image {
  object-fit: cover;
  background: rgba(240, 245, 252, 0.9);
}

.tk-lineup-avatar-placeholder {
  font-size: 1rem;
}

.tk-lineup-drop-indicator td {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  border: 0;
}

.tk-lineup-drop-indicator-bar {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 93, 255, 0.95), rgba(80, 164, 255, 0.95));
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.08);
}

.tk-lineup-position-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 179, 224, 0.34);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(235, 244, 255, 0.96));
  color: #214a84;
  font-weight: 800;
}

.tk-lineup-qttr-value {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 179, 224, 0.3);
  background: rgba(255, 255, 255, 0.72);
  color: #24426f;
  font-weight: 800;
}

.tk-lineup-action-btn {
  min-height: 2.45rem;
  border-radius: 14px;
  font-weight: 700;
}

.tk-lineup-action-btn.is-disabled-minimum,
.tk-lineup-action-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.tk-lineup-member-field {
  position: relative;
  --educ8-field-focus-border: var(--dropdown-focus-border);
  --educ8-field-focus-glow: var(--dropdown-focus-glow);
  --educ8-select-border: var(--dropdown-border);
  --educ8-select-border-inner: var(--dropdown-border-inner);
  --educ8-select-bg: linear-gradient(180deg, var(--dropdown-bg-top), var(--dropdown-bg-bottom));
  --educ8-select-text: var(--dropdown-text);
}

.select2-container--bootstrap5 {
  width: 100% !important;
}

.select2-container--bootstrap5 .select2-selection--single.form-select-solid {
  min-height: var(--form-control-height);
  height: var(--form-control-height);
  border-radius: 16px;
  border: 1px solid var(--educ8-select-border) !important;
  background: var(--educ8-select-bg);
  color: var(--educ8-select-text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--educ8-select-border-inner);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.select2-container--bootstrap5 .select2-selection--single.form-select-solid .select2-selection__rendered {
  display: flex;
  align-items: center;
  height: calc(var(--form-control-height) - 2px);
  padding-left: 1rem;
  padding-right: 2.5rem;
  color: var(--educ8-select-text);
  line-height: 1.2;
  font-weight: 700;
}

.select2-container--bootstrap5 .select2-selection--single.form-select-solid .select2-selection__placeholder {
  color: var(--educ8-select-text);
  opacity: 0.72;
}

.select2-container--bootstrap5 .select2-selection--single .select2-selection__arrow {
  height: calc(var(--form-control-height) - 2px);
  right: 0.8rem;
}

.select2-container--bootstrap5.select2-container--open:not(.select2-container--disabled) .select2-selection--single.form-select-solid,
.select2-container--bootstrap5.select2-container--focus:not(.select2-container--disabled) .select2-selection--single.form-select-solid {
  border-color: var(--educ8-field-focus-border);
  background: var(--educ8-select-bg);
  box-shadow: var(--educ8-field-focus-glow);
}

.select2-dropdown.tk-lineup-member-dropdown {
  border: 1px solid #e4e6ef;
  border-radius: 0.625rem;
  background: #ffffff;
  box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.12);
}

.select2-dropdown.tk-lineup-member-dropdown .select2-search {
  padding: 0.75rem;
  margin: 0;
  background: #ffffff;
}

.select2-dropdown.tk-lineup-member-dropdown .select2-search .select2-search__field {
  min-height: var(--form-control-height);
  border-radius: 0.625rem;
  border: 1px solid rgba(128, 178, 255, 0.85) !important;
  padding: 0.55rem 0.85rem;
  color: var(--educ8-select-text);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(128, 178, 255, 0.18) !important;
  outline: 0 !important;
}

.select2-dropdown.tk-lineup-member-dropdown .select2-search .select2-search__field:focus,
.select2-dropdown.tk-lineup-member-dropdown .select2-search .select2-search__field:active {
  border-color: rgba(128, 178, 255, 0.98) !important;
  box-shadow: 0 0 0 0.2rem rgba(22, 93, 255, 0.12), inset 0 0 0 1px rgba(128, 178, 255, 0.18) !important;
  outline: 0 !important;
}

.select2-dropdown.tk-lineup-member-dropdown .select2-results > .select2-results__options {
  max-height: 250px;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
}

.select2-dropdown.tk-lineup-member-dropdown .select2-results__option {
  padding: 0.75rem 1rem;
  color: #3f4254;
  font-weight: 500;
}

.select2-dropdown.tk-lineup-member-dropdown .select2-results__option.select2-results__option--highlighted {
  background: #f5f8fa;
  color: #0d6efd;
}

.select2-dropdown.tk-lineup-member-dropdown .select2-results__option.select2-results__option--selected {
  background: #ffffff;
  color: #0d6efd;
}

.select2-dropdown.tk-role-club-dropdown {
  border: 1px solid rgba(128, 178, 255, 0.3);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(18, 54, 105, 0.16);
  overflow: hidden;
}

.select2-dropdown.tk-role-club-dropdown .select2-search {
  padding: 0.85rem 0.85rem 0.6rem;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom: 1px solid rgba(128, 178, 255, 0.14);
}

.select2-dropdown.tk-role-club-dropdown .select2-search .select2-search__field {
  width: 100% !important;
  min-height: var(--form-control-height);
  border-radius: 14px;
  border: 1px solid rgba(128, 178, 255, 0.85) !important;
  padding: 0.55rem 0.95rem;
  color: var(--educ8-select-text);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(128, 178, 255, 0.12) !important;
  outline: 0 !important;
}

.select2-dropdown.tk-role-club-dropdown .select2-search .select2-search__field:focus,
.select2-dropdown.tk-role-club-dropdown .select2-search .select2-search__field:active {
  border-color: rgba(128, 178, 255, 0.98) !important;
  box-shadow: 0 0 0 0.2rem rgba(22, 93, 255, 0.12), inset 0 0 0 1px rgba(128, 178, 255, 0.12) !important;
  outline: 0 !important;
}

.select2-dropdown.tk-role-club-dropdown .select2-results > .select2-results__options {
  max-height: 320px;
  padding: 0.35rem;
  background: #ffffff;
}

.select2-dropdown.tk-role-club-dropdown .select2-results__option {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: #123669;
  font-weight: 700;
}

.select2-dropdown.tk-role-club-dropdown .select2-results__option.select2-results__option--highlighted {
  background: rgba(128, 178, 255, 0.14);
  color: #0d4fd6;
}

.select2-dropdown.tk-role-club-dropdown .select2-results__option.select2-results__option--selected {
  background: rgba(22, 93, 255, 0.08);
  color: #0d4fd6;
}

@media (max-width: 767.98px) {
  .tk-team-lineup-panel-header {
    flex-direction: column;
  }

  .tk-training-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tk-user-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}

.tk-user-pagination-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tk-user-page-link,
.tk-user-pagination-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(141, 173, 220, 0.22);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.94));
  color: #24426f;
  font-weight: 800;
  font-weight: 700;
}

.tk-user-page-link {
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.tk-user-page-link.is-active {
  border-color: rgba(22, 93, 255, 0.4);
  background: linear-gradient(180deg, rgba(227, 239, 255, 0.98), rgba(210, 229, 255, 0.94));
  color: #123f80;
}

.tk-user-page-size-form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tk-user-page-size-label {
  color: #24426f;
  font-weight: 700;
}

.tk-user-page-size-select {
  /* Pagination-Selects zeigen ausschließlich die Zahl der Einträge. */
  width: auto;
  min-width: max-content;
  max-width: 100%;
  field-sizing: content;
  padding-right: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(141, 173, 220, 0.28);
  background-color: rgba(248, 251, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tk-user-page-size-form .tk-filter-select-control {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.tk-user-page-size-form .tk-filter-select-trigger {
  width: max-content;
  max-width: 100%;
  padding: .5rem 1rem;
}

.tk-user-page-size-select.tk-member-games-season-select {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.tk-pagination-nav {
  gap: 0.35rem;
}

.tk-pagination-button,
.tk-pagination-button.tk-user-icon-btn,
.tk-user-pagination-bar .tk-user-page-link,
.tk-user-pagination-bar .tk-member-pagination-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1;
}

.tk-pagination-button .tk-user-icon-image,
.tk-user-pagination-bar .tk-user-page-link .tk-user-icon-image,
.tk-user-pagination-bar .tk-member-pagination-btn .tk-user-icon-image {
  width: 1rem;
  height: 1rem;
}

.tk-pagination-button.is-disabled,
.tk-user-pagination-bar .tk-user-page-link.is-disabled,
.tk-user-pagination-bar .tk-member-pagination-btn.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.tk-pagination-button.is-active,
.tk-user-pagination-bar .tk-user-page-link.is-active,
.tk-user-pagination-bar .tk-member-pagination-btn.is-active {
  border-color: rgba(22, 93, 255, 0.4);
  background: linear-gradient(180deg, rgba(227, 239, 255, 0.98), rgba(210, 229, 255, 0.94));
  color: #123f80;
}

.tk-pagination-ellipsis {
  display: inline-grid;
  min-width: 1rem;
  place-items: center;
  color: #58749a;
  font-weight: 800;
}

.tk-user-detail-row {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 54, 105, 0.08);
  background: rgba(249, 252, 255, 0.96);
}

.tk-user-detail-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  border-radius: 6px;
  border: 1.5px solid #8eb2e3;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
}

.tk-user-detail-check.is-active {
  border-color: #39c8bb;
  background: linear-gradient(180deg, #89efe4, #3bcbbd);
  box-shadow: 0 0 0 1px rgba(57, 200, 187, 0.22);
}

.tk-user-detail-check.is-active::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  margin: 3px 0 0 6px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(40deg);
}

.has-admin-sidebar .container {
  max-width: 100%;
}

.admin-main-layout {
  min-width: 0;
}

.tus-admin-sidebar {
  position: fixed;
  top: var(--site-header-height);
  left: 0;
  z-index: 40;
  width: 340px;
  height: calc(100vh - var(--site-header-height));
  padding: 1rem 0.8rem 1rem 0.95rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 246, 255, 0.96));
  border-right: 1px solid rgba(18, 54, 105, 0.08);
  box-shadow: 18px 0 45px rgba(16, 37, 75, 0.08);
}

.tus-admin-sidebar .tk-app-sidebar-inner {
  position: relative;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.98));
  border: 1px solid rgba(27, 111, 200, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tus-admin-sidebar .tk-app-sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 0.8rem;
}

.tk-app-sidebar-pin {
  position: absolute;
  top: 0.65rem;
  right: -0.75rem;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(27, 111, 200, 0.18);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: 0 12px 24px rgba(16, 37, 75, 0.16);
}

.tus-admin-sidebar-pin-image {
  width: 14px;
  height: 14px;
}

.tk-app-sidebar-section {
  border: 1px solid rgba(18, 54, 105, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(16, 37, 75, 0.05);
}

.tk-app-sidebar-section + .tk-app-sidebar-section {
  margin-top: 0.8rem;
}

.tk-app-sidebar-section-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 0;
  background: transparent;
  text-align: left;
}

.tk-app-sidebar-section-copy,
.tk-app-sidebar-link-copy {
  min-width: 0;
}

.tk-app-sidebar-section-title {
  display: block;
  color: #16375f;
  font-weight: 800;
}

.tk-app-sidebar-section-meta {
  display: block;
  margin-top: 0.15rem;
  color: #6b7d96;
  font-size: 0.78rem;
  line-height: 1.35;
}

.tk-app-sidebar-section-arrow {
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.tk-app-sidebar-section.is-open .tk-app-sidebar-section-arrow {
  transform: rotate(90deg);
}

.tus-admin-sidebar-arrow-image {
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

.tk-app-sidebar-submenu {
  display: none;
  padding: 0 0.6rem 0.7rem;
}

.tk-app-sidebar-section.is-open .tk-app-sidebar-submenu {
  display: grid;
  gap: 0.35rem;
}

.tk-app-sidebar-link {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  color: #24426f;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tk-app-sidebar-link-form {
  margin: 0;
}

.tk-app-sidebar-link-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tk-app-sidebar-link:hover {
  background: rgba(233, 243, 255, 0.84);
  color: #123f80;
  transform: translateX(2px);
}

.tk-app-sidebar-link.is-active {
  background: linear-gradient(180deg, rgba(227, 239, 255, 0.95), rgba(214, 232, 255, 0.95));
  color: #0f4d97;
  box-shadow: inset 0 0 0 1px rgba(22, 93, 255, 0.16);
}

.tk-app-sidebar-link.is-disabled {
  color: rgba(36, 66, 111, 0.42);
  background: rgba(247, 250, 255, 0.68);
  cursor: default;
}

.tk-app-sidebar-link-icon,
.tk-app-sidebar-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 10px;
  background: rgba(224, 239, 255, 0.92);
}

.tus-admin-sidebar-icon-image {
  width: 16px;
  height: 16px;
  opacity: 0.88;
}

.has-admin-sidebar .flash-stack {
  top: calc(var(--site-header-height) + 14px);
}

.tk-admin-sidebar-backdrop {
  position: fixed;
  inset: var(--site-header-height) 0 0 0;
  z-index: 35;
  background: rgba(11, 30, 57, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.tk-admin-sidebar-backdrop[hidden] {
  display: none;
}

@media (min-width: 992px) {
  .admin-sidebar-collapsed .tus-admin-sidebar {
    width: 92px;
  }

  .admin-sidebar-collapsed .tk-app-sidebar-section-copy,
  .admin-sidebar-collapsed .tk-app-sidebar-link-copy,
  .admin-sidebar-collapsed .tk-app-sidebar-section-arrow {
    display: none;
  }

  .admin-sidebar-collapsed .tk-app-sidebar-section-toggle,
  .admin-sidebar-collapsed .tk-training-sidebar-toggle,
  .admin-sidebar-collapsed .tk-app-sidebar-link {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .admin-sidebar-collapsed .tk-app-sidebar-submenu {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .has-admin-sidebar .site-header .container,
  .has-admin-sidebar main > .container,
  .has-admin-sidebar .section-block > .container,
  .has-admin-sidebar .page-header > .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .has-admin-sidebar .section-block,
  .has-admin-sidebar .page-header,
  .has-admin-sidebar .container.pt-3 {
    margin-left: 340px;
  }

  .admin-sidebar-collapsed .section-block,
  .admin-sidebar-collapsed .page-header,
  .admin-sidebar-collapsed .container.pt-3 {
    margin-left: 92px;
  }
}

@media (max-width: 991px) {
  .tus-admin-sidebar {
    width: min(320px, 88vw);
    transform: translateX(calc(-100% - 1rem));
    transition: width 180ms ease, transform 180ms ease;
  }

  .admin-sidebar-mobile-open .tus-admin-sidebar {
    transform: translateX(0);
  }

  .tk-app-sidebar-pin {
    right: -0.55rem;
  }

  .admin-sidebar-collapsed .tus-admin-sidebar {
    width: 92px;
  }

  .admin-sidebar-collapsed.admin-sidebar-mobile-open .tus-admin-sidebar {
    width: min(320px, 88vw);
  }

  .admin-sidebar-collapsed .tk-app-sidebar-section-copy,
  .admin-sidebar-collapsed .tk-app-sidebar-link-copy,
  .admin-sidebar-collapsed .tk-app-sidebar-section-arrow {
    display: none;
  }

  .admin-sidebar-mobile-open .tk-app-sidebar-section-copy,
  .admin-sidebar-mobile-open .tk-app-sidebar-link-copy,
  .admin-sidebar-mobile-open .tk-app-sidebar-section-arrow {
    display: initial;
  }

  .admin-sidebar-collapsed .tk-app-sidebar-section-toggle,
  .admin-sidebar-collapsed .tk-training-sidebar-toggle,
  .admin-sidebar-collapsed .tk-app-sidebar-link {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .admin-sidebar-mobile-open .tk-app-sidebar-section-toggle {
    grid-template-columns: 2rem minmax(0, 1fr) 1rem;
    justify-items: stretch;
  }

  .admin-sidebar-mobile-open .tk-training-sidebar-toggle {
    grid-template-columns: 1.75rem minmax(0, 1fr) 1rem;
    justify-items: stretch;
  }

  .admin-sidebar-mobile-open .tk-app-sidebar-link {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    justify-items: stretch;
  }

  .admin-sidebar-collapsed .tk-app-sidebar-submenu {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .admin-sidebar-mobile-open .tk-app-sidebar-submenu {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

@media (max-width: 767.98px) {
  .tus-admin-sidebar {
    width: min(340px, calc(100vw - 0.75rem));
    padding: 0.55rem 0.5rem 0.75rem;
  }

  .tus-admin-sidebar .tk-app-sidebar-inner {
    border-radius: 20px;
  }

  .tus-admin-sidebar .tk-app-sidebar-scroll {
    padding: 0.7rem;
  }

  .tk-app-sidebar-pin {
    top: 0.5rem;
    right: -0.35rem;
    width: 32px;
    height: 32px;
  }

  .tk-app-sidebar-section-toggle {
    grid-template-columns: 1.85rem minmax(0, 1fr) 0.9rem;
    gap: 0.6rem;
    padding: 0.8rem;
  }

  .tk-app-sidebar-section-meta {
    font-size: 0.74rem;
  }

  .tk-app-sidebar-link {
    min-height: 38px;
    padding: 0.55rem 0.65rem;
  }

  .tk-modal .modal-dialog,
  .tk-opponent-modal-dialog,
  .tk-photo-detail-modal .modal-dialog {
    width: auto;
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .tk-modal-content {
    border-radius: 16px;
  }

  .tk-modal-header,
  .tk-modal-body,
  .tk-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tk-modal-header,
  .tk-modal-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .tk-modal-body {
    padding-top: 1rem;
    padding-bottom: 0.95rem;
    gap: 0.9rem;
  }

  .tk-modal-title {
    font-size: 1.25rem;
  }

  .tk-modal-footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .tk-modal-footer > * {
    flex: 1 1 140px;
  }
}

@media (max-width: 1540px) {
  .tk-module-grid,
  .tk-admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-home-page .tk-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    column-gap: 1.75rem;
    row-gap: 1.75rem;
  }

  .tk-dashboard-grid,
  .tk-admin-users-layout,
  .tk-admin-form-layout,
  .tk-dashboard-grid-bottom,
  .tk-user-management-screen,
  .tk-opponent-kpi-grid,
  .tk-opponent-team-screen {
    grid-template-columns: 1fr;
  }

  .tk-admin-split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-admin-splitter {
    display: none;
  }

  .tk-role-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .tk-sports-booking-calendar .fc .fc-toolbar.fc-header-toolbar,
  .tk-sports-booking-calendar .fc .fc-toolbar-chunk,
  .tk-sports-booking-calendar .fc .fc-button-group {
    flex-wrap: wrap;
  }

  .tk-sports-booking-hero,
  .tk-sports-booking-card-head,
  .tk-sports-booking-facility-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tk-sports-booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-sports-booking-legend-pill {
    max-width: none;
  }

  .tk-home-dashboard-hero,
  .tk-admin-panel-head,
  .tk-admin-selection-head,
  .tk-widget-head {
    flex-direction: column;
    align-items: start;
  }

  .tk-context-shell,
  .tk-admin-hero-actions {
    align-items: start;
  }

  .tk-admin-page .tk-admin-hero-actions {
    align-items: flex-end;
  }

  .tk-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tk-announcements-public-stats {
    justify-content: flex-start;
  }

}

@media (max-width: 767px) {
  .tk-sports-booking-calendar {
    min-height: 640px;
  }

  .tk-sports-booking-info-grid,
  .tk-sports-booking-modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-module-grid,
  .tk-admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .tk-home-feature-grid {
    grid-template-columns: 1fr;
  }

  .tk-home-announcement-slide {
    padding: 1rem 1rem 1.4rem;
  }

  .tk-home-announcement-datetime {
    gap: 0.55rem;
  }

  .tk-home-announcement-date-large,
  .tk-home-announcement-time-large {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }

  .tk-announcements-public-scroll {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .tk-announcements-public-media {
    height: 200px;
  }

  .tk-home-page .container {
    max-width: calc(100vw - 1rem);
  }

  .tk-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-team-public-lineup {
    gap: 0.45rem;
  }

  .tk-team-card .tk-widget-head {
    padding-right: 0;
  }

  .tk-team-card-league-badge {
    top: 0.95rem;
    right: 0.95rem;
    max-width: calc(100% - 1.9rem);
    padding: 0.45rem 0.85rem;
    font-size: 0.86rem;
  }

  .tk-team-public-lineup-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .tk-team-public-lineup-copy strong {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .tk-team-public-lineup-row > .tk-team-roster-avatar,
  .tk-team-public-lineup-row > .tk-team-roster-avatar-placeholder {
    width: 46px;
    height: 46px;
    justify-self: end;
  }

  .tk-lineup-position-pill {
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: 0.35rem 0.5rem;
  }

  .tk-home-gallery-track {
    grid-auto-columns: minmax(280px, 88vw);
  }

  .tk-user-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-user-toolbar-actions {
    justify-content: flex-end;
  }

  .tk-modal-role-grid {
    grid-template-columns: 1fr;
  }

  .tk-user-pagination-bar,
  .tk-user-page-size-form {
    align-items: stretch;
    flex-direction: column;
  }

  .tk-user-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
  }

  .tk-role-detail-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-role-permission-filter-controls {
    width: 100%;
    margin-left: 0;
  }

  .tk-role-permission-category-select {
    min-width: 0;
    width: 100%;
  }

  .tk-role-card-head,
  .tk-role-card-meta,
  .tk-role-detail-head,
  .tk-role-detail-actions,
  .tk-role-permission-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-role-permission-toggle {
    align-self: flex-end;
  }

}


.tk-finance-page .tk-admin-hero {
  margin-top: -0.85rem;
}

.tk-finance-page .tk-admin-hero-actions {
  align-self: flex-start;
}

.tk-finance-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tk-finance-entry-screen {
  --tk-split-primary-width: 360px;
  --tk-split-primary-min: 300px;
  --tk-split-primary-max: 520px;
  --tk-split-secondary-min: 560px;
  margin-bottom: 1.5rem;
}

.tk-finance-run-screen {
  --tk-split-primary-width: 360px;
  --tk-split-primary-min: 300px;
  --tk-split-primary-max: 520px;
  --tk-split-secondary-min: 560px;
}

.tk-finance-entry-list-panel,
.tk-finance-entry-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tk-finance-run-list-actions {
  margin-bottom: 1rem;
}
.tk-training-sidebar-menu { margin: .25rem 0 .45rem; }
.tk-training-sidebar-toggle { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) 1rem; align-items: center; width: 100%; min-height: 40px; gap: .65rem; padding: .55rem .7rem; border: 0; border-radius: 14px; background: transparent; color: #24426f; font: inherit; font-weight: 700; text-align: left; }
.tk-training-sidebar-toggle:hover { background: rgba(233, 243, 255, .84); color: #123f80; }
.tk-training-sidebar-toggle .tk-app-sidebar-section-arrow { justify-self: end; }
.tk-training-sidebar-menu.is-open .tk-app-sidebar-section-arrow { transform: rotate(90deg); }
.tk-training-sidebar-submenu { display: none; gap: .2rem; margin: .2rem 0 0 1rem; padding-left: .65rem; border-left: 1px solid rgba(120, 161, 218, .3); }
.tk-training-sidebar-menu.is-open .tk-training-sidebar-submenu { display: grid; }
.tk-training-sidebar-submenu .tk-app-sidebar-link { min-height: 36px; padding: .42rem .6rem; font-size: .9rem; }

/* Baumstruktur und kompakte Abstände in der Adminnavigation. */
.tk-app-sidebar-submenu {
  position: relative;
  gap: 0;
  padding-bottom: .45rem;
}

.tk-app-sidebar-submenu::before {
  position: absolute;
  top: .3rem;
  bottom: .7rem;
  left: 1rem;
  width: 1px;
  background: rgba(120, 161, 218, .34);
  content: "";
}

.tk-app-sidebar-submenu > :is(.tk-app-sidebar-link, .tk-app-sidebar-link-form, .tk-training-sidebar-menu) {
  position: relative;
}

.tk-app-sidebar-submenu > :is(.tk-app-sidebar-link, .tk-training-sidebar-menu)::before,
.tk-app-sidebar-submenu > .tk-app-sidebar-link-form::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: -.2rem;
  width: .95rem;
  height: 1px;
  background: rgba(120, 161, 218, .42);
  content: "";
}

.tk-app-sidebar-submenu > .tk-app-sidebar-link,
.tk-app-sidebar-submenu .tk-app-sidebar-link-button,
.tk-training-sidebar-toggle {
  min-height: 35px;
  padding-top: .42rem;
  padding-bottom: .42rem;
}

.tk-training-sidebar-menu {
  margin: 0;
}

.tk-training-sidebar-submenu {
  margin-top: .1rem;
  margin-bottom: .2rem;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link {
  position: relative;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: -.65rem;
  width: .65rem;
  height: 1px;
  background: rgba(120, 161, 218, .42);
  content: "";
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link {
  box-sizing: border-box;
  min-height: 31px;
  padding-top: .31rem;
  padding-bottom: .31rem;
  border: 1px solid rgba(72, 137, 220, .16);
  border-top-color: rgba(72, 137, 220, .2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .54);
  transition: border-color 500ms ease, background-color 500ms ease, box-shadow 500ms ease;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link:hover {
  transform: none;
  border-color: rgba(72, 137, 220, .28);
  background: rgba(232, 243, 255, .88);
  box-shadow: none;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link.is-active {
  border-color: #2876db;
  background: linear-gradient(180deg, #dceeff, #cce5ff);
  box-shadow: inset 0 0 0 1px rgba(24, 95, 194, .1), 0 4px 10px rgba(35, 95, 171, .12);
}

.tk-training-sidebar-submenu {
  margin-left: 0.4rem;
  padding-left: 0.45rem;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link {
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.45rem;
  padding-inline: 0.45rem;
  font-size: 0.78rem;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link .tk-app-sidebar-link-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link .tk-app-sidebar-link-copy {
  white-space: nowrap;
}

/* Die Äste beginnen sauber an der Stammlinie; Trennlinien bleiben gerade. */
.tk-app-sidebar-submenu > :is(.tk-app-sidebar-link, .tk-app-sidebar-link-form, .tk-training-sidebar-menu) {
  margin-left: 1.25rem;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link {
  margin-left: 0.45rem;
}

.tk-training-sidebar-submenu > .tk-app-sidebar-link::before {
  left: -0.45rem;
  width: 0.45rem;
}

.tk-app-sidebar-submenu > :is(.tk-app-sidebar-link, .tk-training-sidebar-menu)::before,
.tk-app-sidebar-submenu > .tk-app-sidebar-link-form::before {
  left: -.85rem;
  width: .85rem;
}

/* Aufklappbare Äste bleiben am auslösenden Menüpunkt verankert. */
.tk-app-sidebar-submenu > [data-sidebar-section]::before {
  top: 1rem;
}

.tk-app-sidebar-submenu > :is(.tk-app-sidebar-link, .tk-app-sidebar-link-form, .tk-training-sidebar-menu):not(:last-child)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(120, 161, 218, .16);
  content: "";
}

.tk-app-sidebar-submenu > .tk-app-sidebar-link,
.tk-app-sidebar-submenu .tk-app-sidebar-link-button,
.tk-training-sidebar-toggle {
  min-height: 31px;
  padding-top: .31rem;
  padding-bottom: .31rem;
}

/* Die Navigationseinträge erscheinen als feine Blätter am Baum. */
.tk-app-sidebar-submenu {
  gap: .2rem;
}

.tk-app-sidebar-submenu > :is(.tk-app-sidebar-link, .tk-app-sidebar-link-form, .tk-training-sidebar-menu):not(:last-child)::after {
  display: none;
}

.tk-app-sidebar-submenu > .tk-app-sidebar-link,
.tk-app-sidebar-submenu > .tk-app-sidebar-link-form > .tk-app-sidebar-link-button,
.tk-training-sidebar-toggle {
  box-sizing: border-box;
  border: 1px solid rgba(72, 137, 220, .16);
  border-top-color: rgba(72, 137, 220, .2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .54);
  transition: border-color 500ms ease, background-color 500ms ease, box-shadow 500ms ease;
}

.tk-app-sidebar-submenu > .tk-app-sidebar-link-form > .tk-app-sidebar-link-button {
  width: 100%;
}

.tk-app-sidebar-submenu > .tk-app-sidebar-link:hover,
.tk-app-sidebar-submenu > .tk-app-sidebar-link-form > .tk-app-sidebar-link-button:hover,
.tk-training-sidebar-toggle:hover {
  transform: none;
  border-color: rgba(72, 137, 220, .28);
  background: rgba(232, 243, 255, .88);
  box-shadow: none;
}

.tk-app-sidebar-submenu > .tk-app-sidebar-link.is-active {
  border-color: #2876db;
  background: linear-gradient(180deg, #dceeff, #cce5ff);
  box-shadow: inset 0 0 0 1px rgba(24, 95, 194, .1), 0 4px 10px rgba(35, 95, 171, .12);
}

.tk-finance-run-list-panel .tk-finance-entry-list-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.45fr);
}

.tk-finance-entry-detail-column {
  min-width: 0;
}

.tk-finance-entry-list-head {
  align-items: center;
}

.tk-finance-entry-list-toolbar {
  --tk-finance-toolbar-control-height: 42px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(145px, 0.34fr)) auto;
  gap: 0.85rem;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.tk-finance-entry-list-toolbar .tk-user-search-wrap {
  display: flex;
  align-items: stretch;
}

.tk-finance-entry-list-toolbar input.form-control.tk-user-search-input,
.tk-finance-entry-list-toolbar input.form-control.tk-admin-form-control,
.tk-finance-entry-list-toolbar select.form-select.tk-finance-filter-select,
.tk-finance-entry-list-toolbar .tk-user-icon-btn {
  height: var(--tk-finance-toolbar-control-height);
  min-height: var(--tk-finance-toolbar-control-height);
}

.tk-finance-entry-list-toolbar .tk-user-icon-btn {
  flex: 0 0 var(--tk-finance-toolbar-control-height);
}

.tk-finance-entry-list-actions {
  display: flex;
  flex-wrap: nowrap;
  width: auto;
}

.tk-finance-entry-filters {
  margin-bottom: 1rem;
}

.tk-finance-entry-list {
  display: grid;
  gap: 0.8rem;
}

.tk-finance-entry-list-toolbar .tk-finance-filter-select {
  min-width: 0;
}

/* Buchungen werden als Arbeitsliste über der Detailkarte dargestellt. */
.tk-finance-entry-screen-stacked {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tk-finance-entry-screen-stacked .tk-finance-entry-list-panel,
.tk-finance-entry-screen-stacked .tk-finance-entry-detail-panel {
  min-width: 0;
}

.tk-finance-entry-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 65, 155, 0.12);
  border-radius: 1.15rem;
  background: rgba(250, 252, 255, 0.82);
}

.tk-finance-entry-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #466385;
}

.tk-finance-entry-table th {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(31, 65, 155, 0.12);
  color: #6d83a2;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.tk-finance-entry-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(31, 65, 155, 0.08);
  vertical-align: top;
  font-size: 0.9rem;
}

.tk-finance-entry-table tbody tr:last-child td { border-bottom: 0; }
.tk-finance-entry-table tbody tr:hover,
.tk-finance-entry-table tbody tr.is-selected { background: rgba(228, 239, 255, 0.72); }
.tk-finance-entry-table-select {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17355c;
  text-align: left;
}
.tk-finance-entry-table-select strong { font-size: 0.96rem; line-height: 1.25; }
.tk-finance-entry-table-select small,
.tk-finance-entry-table td small { display: block; margin-top: 0.2rem; color: #7890ad; font-size: 0.78rem; }
.tk-finance-entry-table-select:focus-visible { outline: 2px solid rgba(22, 93, 255, 0.28); outline-offset: 4px; border-radius: 0.3rem; }
.tk-finance-entry-table-amount { white-space: nowrap; }
.tk-finance-entry-table-single-line {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tabellen-Badges folgen dem kompakten Maß des Kategorien-Kickers. */
.tk-finance-entry-table :is(.tk-widget-kicker, .tk-season-meta-pill, .tk-season-status-pill) {
  box-sizing: border-box;
  min-height: 1.36rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1;
}

.tk-finance-entry-table .tk-season-meta-pill.is-expense {
  background: rgba(255, 238, 238, 0.96);
  border-color: rgba(227, 149, 149, 0.3);
  color: #b24747;
}

.tk-finance-entry-table .tk-season-meta-pill.is-income {
  background: rgba(229, 247, 234, 0.96);
  border-color: rgba(110, 194, 123, 0.3);
  color: #1f8a45;
}

.tk-finance-entry-table .tk-season-meta-pill.is-sand {
  background: rgba(247, 241, 229, 0.96);
  border-color: rgba(217, 179, 102, 0.28);
  color: #9c6b12;
  font-weight: 800;
}

.tk-finance-entry-list-card {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(31, 65, 155, 0.11);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.97));
  box-shadow: 0 18px 36px -34px rgba(23, 47, 104, 0.36);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tk-finance-entry-list-card:hover,
.tk-finance-entry-list-card:focus-visible {
  border-color: rgba(98, 147, 219, 0.34);
  background: linear-gradient(180deg, rgba(248, 252, 255, 1), rgba(235, 244, 255, 0.98));
  box-shadow: 0 22px 38px -30px rgba(18, 58, 118, 0.28);
  transform: translateY(-1px);
}

.tk-finance-entry-list-card:focus-visible {
  outline: 2px solid rgba(22, 93, 255, 0.22);
  outline-offset: 2px;
}

.tk-finance-entry-list-card.is-selected {
  border-color: rgba(121, 170, 235, 0.5);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.98), rgba(224, 237, 255, 0.98));
  box-shadow: 0 24px 42px -30px rgba(19, 65, 130, 0.3);
}

.tk-finance-entry-list-card-head,
.tk-finance-entry-list-card-meta,
.tk-finance-entry-detail-grid {
  display: grid;
  gap: 0.75rem;
}

.tk-finance-entry-list-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.tk-finance-entry-list-card-title {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.tk-finance-entry-list-card-title strong {
  color: #17355c;
  font-size: 1rem;
  line-height: 1.25;
}

.tk-finance-entry-list-card-date,
.tk-finance-entry-list-card-subline,
.tk-finance-entry-detail-subline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #5d7494;
  font-size: 0.92rem;
  line-height: 1.45;
}

.tk-finance-entry-list-card-date span,
.tk-finance-entry-list-card-subline,
.tk-finance-entry-detail-subline {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tk-finance-entry-list-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.tk-finance-entry-list-card .tk-season-meta-pill.is-income {
  background: rgba(229, 247, 234, 0.96);
  border-color: rgba(110, 194, 123, 0.3);
  color: #1f8a45;
}

.tk-finance-entry-list-card .tk-season-meta-pill.is-expense {
  background: rgba(255, 238, 238, 0.96);
  border-color: rgba(227, 149, 149, 0.3);
  color: #b24747;
}

.tk-finance-entry-list-card .tk-season-meta-pill.is-sand {
  background: rgba(247, 241, 229, 0.96);
  border-color: rgba(217, 179, 102, 0.28);
  color: #9c6b12;
}

.tk-finance-entry-list-card .tk-season-meta-pill.is-blue {
  background: rgba(235, 243, 255, 0.96);
  border-color: rgba(153, 186, 232, 0.3);
  color: #3f669f;
}

.tk-finance-entry-detail-body .tk-season-meta-pill.is-income {
  background: rgba(229, 247, 234, 0.96);
  border-color: rgba(110, 194, 123, 0.3);
  color: #1f8a45;
}

.tk-finance-entry-detail-body .tk-season-meta-pill.is-expense {
  background: rgba(255, 238, 238, 0.96);
  border-color: rgba(227, 149, 149, 0.3);
  color: #b24747;
}

.tk-finance-entry-detail-body .tk-season-meta-pill.is-sand {
  background: rgba(247, 241, 229, 0.96);
  border-color: rgba(217, 179, 102, 0.28);
  color: #9c6b12;
}

.tk-finance-entry-detail-body .tk-season-meta-pill.is-blue {
  background: rgba(235, 243, 255, 0.96);
  border-color: rgba(153, 186, 232, 0.3);
  color: #3f669f;
}

.tk-finance-entry-detail-body {
  display: grid;
  gap: 1rem;
}

/* Detail-, Verwendungszweck- und Belege-Card teilen sich ein responsives Grid. */
.tk-finance-entry-detail-body {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: stretch;
}

.tk-finance-entry-detail-body > .tk-season-meta-pills {
  grid-column: 1 / -1;
}

.tk-finance-entry-detail-body > .tk-finance-entry-detail-grid {
  display: contents;
}

.tk-finance-entry-detail-body > .tk-finance-entry-receipts-card {
  grid-column: auto;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.tk-finance-entry-detail-body > .tk-finance-entry-info-card,
.tk-finance-entry-detail-body > .tk-finance-entry-receipts-card {
  box-sizing: border-box;
  height: 100%;
}

@media (max-width: 900px) {
  .tk-finance-entry-detail-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-finance-entry-detail-body > .tk-finance-entry-receipts-card {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .tk-finance-entry-detail-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tk-finance-entry-group-card {
  padding: 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(137, 176, 227, 0.24);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.99), rgba(232, 242, 255, 0.96));
  box-shadow: 0 22px 42px -34px rgba(24, 78, 148, 0.16);
}

/* Alle Detail-Unterkarten verwenden das zentrale InfoCard-Muster und bleiben
   auch in schmalen Eltern-Containern vollständig innerhalb ihres Grids. */
.tk-finance-entry-detail-grid .tk-season-history-box,
.tk-finance-entry-receipts-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 1.45rem 1.05rem 1rem;
  border: 1px solid rgba(31, 65, 155, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: none;
}

.tk-finance-entry-detail-grid .tk-season-history-box::before,
.tk-finance-entry-receipts-card::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #5594ff, #8edfe1);
}

.tk-finance-entry-detail-grid .tk-season-history-box strong,
.tk-finance-entry-receipts-title {
  color: #1452ad;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tk-finance-entry-receipts-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  max-width: 100%;
}

.tk-finance-receipt-tile,
.tk-finance-receipt-media,
.tk-finance-entry-receipt-dropzone {
  width: min(140px, 100%);
  max-width: 100%;
}

.tk-finance-entry-receipts-card .tk-finance-entry-receipts {
  margin-top: 0;
}

.tk-finance-entry-detail-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

.tk-finance-entry-info-card {
  position: relative;
  border: 1px solid rgba(31, 65, 155, 0.09);
  border-radius: 22px;
  padding: 1.45rem 1.05rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.tk-finance-entry-info-card::before {
  display: block;
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 4px;
  margin: 0;
  content: "";
  background: linear-gradient(90deg, #5594ff, #8edfe1);
}

.tk-finance-entry-info-card::after {
  position: absolute;
  top: 1.35rem;
  left: 1.05rem;
  content: "BUCHUNGSDETAILS";
  color: #1452ad;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tk-finance-entry-info-card .tk-member-info-row .tk-data-key-badge {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5d7494;
  font-size: 0.96rem;
  font-weight: 400;
}

.tk-finance-entry-info-card .tk-member-info-row strong {
  min-width: 0;
  max-width: 65%;
  color: #17355c;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tk-finance-entry-head {
  align-items: flex-start;
  min-height: 2.75rem;
}

.tk-finance-entry-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-finance-entry-head-copy h2 {
  margin-bottom: 0;
}

.tk-finance-entry-purpose {
  margin: 0.45rem 0 0;
  color: #5d7494;
  font-size: 0.94rem;
  line-height: 1.45;
}

.tk-finance-entry-purpose strong {
  color: #17355c;
  font-weight: 700;
}

.tk-finance-entry-head-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tk-finance-entry-count-badge {
  white-space: nowrap;
}

.tk-finance-entry-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0;
}

.tk-finance-entry-head-description {
  margin: -0.15rem 0 1rem;
  max-width: none;
}

.tk-finance-search input {
  min-width: 0;
}

.tk-finance-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tk-finance-filter-select {
  min-height: 3rem;
  border-radius: 1rem;
  border-color: rgba(39, 94, 254, 0.18);
  background: rgba(245, 248, 255, 0.92);
}

.tk-finance-entry-list,
.tk-finance-run-list {
  display: grid;
  gap: 1rem;
}

.tk-finance-run-list-card .tk-finance-entry-list-card-subline {
  color: #6a7f9e;
}

.tk-finance-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
}

.tk-finance-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tk-finance-trainer-cost-panel {
  display: grid;
  gap: 1rem;
}

.tk-finance-trainer-cost-toolbar {
  margin-bottom: 0.25rem;
}

.tk-finance-trainer-cost-date-filter-wrap {
  grid-template-columns: repeat(2, minmax(10.75rem, 13.75rem)) 42px;
  gap: 0.75rem;
  align-items: end;
}

.tk-finance-trainer-cost-date-filter-wrap .tk-finance-field {
  min-width: 0;
  margin: 0;
}

@media (max-width: 767.98px) {
  .tk-finance-trainer-cost-date-filter-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tk-finance-trainer-cost-date-filter-wrap .tk-user-icon-btn {
    justify-self: end;
  }
}

.tk-finance-trainer-cost-actions {
  gap: 0.7rem;
}

.tk-finance-trainer-cost-list {
  display: grid;
  gap: 1rem;
}

.tk-finance-trainer-cost-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(131, 168, 219, 0.24);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 255, 0.96));
  box-shadow: 0 22px 42px -34px rgba(24, 61, 122, 0.28);
}

.tk-finance-trainer-cost-card.is-expanded {
  border-color: rgba(103, 151, 220, 0.38);
  box-shadow: 0 26px 50px -34px rgba(22, 68, 137, 0.3);
}

.tk-finance-trainer-cost-card-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.tk-finance-trainer-cost-card-copy {
  display: grid;
  gap: 0.3rem;
}

.tk-finance-trainer-cost-card-copy h3 {
  margin: 0;
  color: #17355c;
  font-size: 1.08rem;
}

.tk-finance-trainer-cost-card-copy p {
  margin: 0;
  color: #607796;
  font-size: 0.93rem;
}

.tk-finance-trainer-cost-card-head-meta,
.tk-finance-trainer-cost-card-meta,
.tk-finance-trainer-cost-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tk-finance-trainer-cost-card-head-meta {
  justify-content: flex-end;
}

.tk-finance-trainer-cost-card-meta {
  justify-content: flex-end;
}

.tk-finance-trainer-cost-card-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 173, 220, 0.28);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(234, 243, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(31, 94, 173, 0.08);
}

.tk-finance-trainer-cost-card-caret-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.tk-finance-trainer-cost-card-toggle:hover .tk-finance-trainer-cost-card-caret,
.tk-finance-trainer-cost-card-toggle:focus-visible .tk-finance-trainer-cost-card-caret {
  border-color: rgba(71, 128, 204, 0.38);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(223, 237, 255, 0.94));
}

.tk-finance-trainer-cost-card-toggle:focus-visible {
  outline: 2px solid rgba(22, 93, 255, 0.22);
  outline-offset: 4px;
}

.tk-finance-trainer-cost-card-body {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.2rem;
}

.tk-finance-trainer-cost-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.tk-finance-trainer-cost-account-select-wrap {
  min-width: min(260px, 100%);
}

.tk-finance-trainer-cost-account-select {
  min-width: 220px;
}

.tk-finance-trainer-cost-table-wrap {
  border: 1px solid rgba(131, 168, 219, 0.18);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(249, 252, 255, 0.96);
}

.tk-finance-trainer-cost-table {
  margin-bottom: 0;
}

.tk-finance-trainer-cost-table td,
.tk-finance-trainer-cost-table th {
  vertical-align: middle;
}

.tk-finance-trainer-cost-table .tk-season-status-pill.is-open {
  background: rgba(164, 225, 255, 0.28);
  color: #0f5f8b;
}

.tk-finance-trainer-cost-table .tk-season-status-pill.is-processed {
  background: rgba(170, 232, 196, 0.32);
  color: #1c7a47;
}

.tk-finance-account-card,
.tk-finance-run-card {
  border: 1px solid rgba(31, 65, 155, 0.09);
  border-radius: 1.4rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  box-shadow: 0 22px 45px -34px rgba(23, 47, 104, 0.4);
}

.tk-finance-account-card.is-inactive {
  opacity: 0.8;
}

.tk-finance-account-head,
.tk-finance-run-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.tk-finance-account-head h3,
.tk-finance-run-card-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.tk-finance-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tk-finance-entry-card .tk-season-actions,
.tk-finance-account-card .tk-season-actions {
  margin-top: 1rem;
  align-items: flex-start;
}

.tk-finance-pagination[hidden] {
  display: none !important;
}

/* Grid ends cleanly; pagination keeps the shared controls without a divider. */
.tk-finance-pagination {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.tk-finance-modal {
  border: 1px solid rgba(36, 79, 185, 0.12);
  border-radius: 1.65rem;
  overflow: hidden;
  box-shadow: 0 32px 80px -44px rgba(18, 43, 101, 0.52);
}

.tk-finance-modal .modal-header,
.tk-finance-modal .modal-footer {
  border: 0;
  padding: 1.2rem 1.35rem;
}

.tk-finance-form {
  padding: 0 1.35rem 1.35rem;
}

.tk-finance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-finance-field {
  display: grid;
  gap: 0.45rem;
}

.tk-finance-field > span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(22, 52, 126, 0.78);
}

.tk-finance-field-wide {
  grid-column: span 2;
}

.tk-finance-field-full {
  grid-column: 1 / -1;
}

.tk-finance-trainer-cost-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tk-finance-checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(39, 94, 254, 0.14);
  background: rgba(244, 247, 255, 0.85);
}

.tk-finance-checkbox > span {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: #22315f;
}

.tk-finance-modal-footer {
  justify-content: flex-end;
  gap: 0.7rem;
}

.tk-finance-receipt-dropzone {
  min-height: 13.5rem;
}

.tk-finance-receipt-dropzone .tk-member-photo-placeholder {
  padding: 1.5rem;
  text-align: center;
}

.tk-finance-receipt-dropzone .tk-member-photo-placeholder span {
  font-weight: 700;
  color: #6d81a0;
}

.tk-finance-field .tk-member-photo-note {
  margin-top: 0.8rem;
}

.tk-finance-entry-receipts {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.tk-finance-entry-receipts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-finance-entry-receipts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 140px));
  gap: 0.85rem;
  justify-content: flex-start;
}

.tk-finance-receipt-tile {
  display: grid;
  gap: 0.55rem;
  width: 140px;
}

.tk-finance-receipt-media {
  position: relative;
  width: 140px;
  min-height: 140px;
  height: 140px;
  border-radius: 20px;
  border: 1px solid rgba(128, 174, 233, 0.24);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.94));
  overflow: hidden;
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-finance-receipt-media .tk-member-photo-overlay-actions {
  inset: 0;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.tk-finance-receipt-media .tk-member-photo-overlay-btn {
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  padding: 0;
  border-radius: 0.9rem;
}

.tk-finance-receipt-media .tk-member-photo-overlay-btn .tk-season-icon-image {
  width: 0.95rem;
  height: 0.95rem;
}

.tk-finance-receipt-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.tk-finance-receipt-file-preview {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
  color: #27456f;
}

.tk-finance-receipt-file-preview span {
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 991.98px) {
  .brand-logo {
    width: min(var(--homepage-brand-logo-width, 160px), 160px);
    height: min(var(--homepage-brand-logo-height, 96px), 88px);
  }

  .tk-directory-card.tk-department-card-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .tk-department-card-media-image,
  .tk-department-card-media-fallback {
    min-height: 220px;
  }

  .tk-module-grid,
  .tk-admin-kpi-grid,
  .tk-season-kpi-grid,
  .tk-opponent-kpi-grid,
  .tk-directory-grid,
  .tk-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-dashboard-grid,
  .tk-dashboard-grid-bottom,
  .tk-admin-users-layout,
  .tk-admin-form-layout,
  .tk-user-management-screen,
  .tk-member-record-screen,
  .tk-member-detail-grid,
  .tk-opponent-team-screen,
  .tk-training-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-admin-split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-admin-splitter {
    display: none;
  }

  .tk-member-record-tabs,
  .tk-modal-role-grid,
  .tk-member-panel-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-member-record-page [data-member-tab-panel="contact"] .tk-member-panel-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-team-public-layout,
  .tk-team-public-layout.is-no-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-admin-hero,
  .tk-member-list-head,
  .tk-member-detail-head,
  .tk-user-filter-row,
  .tk-opponent-filter-controls,
  .tk-admin-photo-card-body,
  .tk-finance-entry-receipts-head {
    flex-wrap: wrap;
  }

  .tk-admin-photo-card-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-admin-hero-actions,
  .tk-user-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tk-admin-page .tk-admin-hero {
    flex-wrap: nowrap;
  }

  .tk-admin-page .tk-admin-hero-actions {
    width: auto;
    justify-content: flex-end;
  }

  .tk-finance-page .tk-admin-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tk-user-search-wrap {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .site-header-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .tk-department-card-content {
    padding: 1rem;
  }

  .tk-department-card-body {
    padding: 1rem;
    border-radius: 20px;
  }

  .tk-department-card-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-mark {
    gap: 0.55rem;
    font-size: min(var(--homepage-brand-text-size, 18px), 0.98rem);
  }

  .brand-logo {
    width: min(var(--homepage-brand-logo-width, 160px), 116px);
    height: min(var(--homepage-brand-logo-height, 96px), 64px);
  }

  .tk-homepage-settings-appearance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .navbar-collapse {
    padding-top: 0.9rem;
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 0.45rem;
  }

  .navbar-nav .btn,
  .navbar-nav form,
  .navbar-nav form .btn {
    width: 100%;
  }

  .hero-section,
  .section-block,
  .page-header {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .page-header h1,
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.02;
  }

  .form-card,
  .login-card,
  .table-card,
  .tk-widget,
  .tk-admin-panel,
  .tk-directory-card,
  .tk-team-card,
  .tk-opponent-preview-card {
    padding: 1rem;
  }

  .tk-module-card {
    min-height: 0;
    padding: 1rem;
  }

  .tk-module-card-with-image {
    padding: 0;
  }

  .tk-module-card-header {
    min-height: 70px;
    padding: 1rem;
  }

  .tk-module-card-image {
    height: 140px;
  }

  .tk-module-card-with-image > p {
    padding: 1rem;
  }

  .tk-module-grid,
  .tk-admin-kpi-grid,
  .tk-season-kpi-grid,
  .tk-opponent-kpi-grid,
  .tk-directory-grid,
  .tk-team-grid,
  .tk-member-record-tabs,
  .tk-modal-role-grid,
  .permission-grid,
  .compact-permission-grid,
  .tk-admin-permission-grid,
  .tk-department-membership-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tk-widget-head,
  .tk-admin-panel-head,
  .tk-admin-selection-head,
  .table-card-head,
  .tk-admin-hero,
  .tk-admin-hero-actions,
  .tk-member-list-head,
  .tk-member-detail-head,
  .tk-opponent-list-head,
  .tk-opponent-list-meta,
  .tk-opponent-detail-meta,
  .tk-upload-dropzone-meta,
  .tk-user-filter-row,
  .tk-opponent-filter-controls,
  .tk-finance-entry-receipts-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-admin-page .tk-admin-hero {
    flex-direction: row;
    align-items: flex-start;
  }

  .tk-finance-entry-receipts-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .tk-gallery-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-finance-panel-count-head {
    flex-direction: row;
    align-items: flex-start;
  }


  .tk-admin-page .tk-admin-hero-actions {
    flex-direction: row;
    align-items: flex-start;
    width: auto;
    justify-content: flex-end;
  }

  .tk-member-record-page .tk-member-list-panel-head {
    position: relative;
    min-height: 3rem;
    padding-right: 4rem;
    margin-bottom: 0.2rem;
  }

  .tk-member-record-page .tk-member-list-count-badge {
    position: absolute;
    top: 0;
    right: 0;
  }

  .tk-member-record-page .tk-member-search-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

.tk-member-record-page .tk-member-search-row .tk-user-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tk-member-record-page .tk-member-filter-select {
    flex: 0 1 13rem;
    min-width: 10rem;
    width: auto;
  }
    .tk-sports-facility-reservations-page .tk-admin-hero {
      flex-direction: column;
      align-items: stretch;
    }
  
    .tk-sports-facility-reservations-page .tk-homepage-settings-card-tools {
      width: 100%;
      justify-content: flex-start;
      align-self: stretch;
    }

  .tk-member-record-page .tk-member-toolbar-actions {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .tk-member-record-page .tk-member-pagination-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .tk-member-record-page .tk-member-pagination-toolbar .tk-user-pagination-links {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tk-member-record-page .tk-member-page-size-form {
    width: auto;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
  }

  .tk-member-record-page .tk-member-page-size-label {
    display: none;
  }

  .tk-member-record-page .tk-member-list-card {
    padding-right: 5.2rem;
  }

  .tk-member-record-page .tk-member-list-head {
    min-height: 2rem;
    padding-right: 0;
  }

  .tk-member-record-page .tk-member-card-status-chip {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .tk-member-record-page .tk-member-detail-head {
    position: relative;
    min-height: 3rem;
    padding-right: 6.5rem;
  }

  .tk-member-record-page .tk-member-detail-head .tk-season-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: nowrap;
  }

  .tk-member-record-page .tk-member-record-tabs {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
  }

  .tk-member-record-page .tk-member-tab-card {
    min-height: 70px;
    padding: 0.7rem 0.75rem;
  }

  .tk-member-record-page .tk-member-tab-main {
    gap: 0.55rem;
  }

  .tk-member-record-page .tk-member-tab-main strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tk-member-record-page .tk-member-tab-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .tk-finance-page .tk-admin-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title actions"
      "copy copy";
    align-items: start;
  }

  .tk-user-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .tk-finance-entry-head-meta {
    gap: 0.55rem;
  }

  .tk-contact-list-grid {
    flex-direction: column;
  }

  .tk-contact-list-grid .tk-contact-card {
    flex: 0 1 auto;
    min-width: 0;
  }

  .tk-member-info-row,
  .tk-user-detail-row,
  .tk-department-membership-select,
  .tk-member-team-card-head,
  .tk-member-game-card-head,
  .tk-member-transfer-card-head,
  .tk-member-games-filter-card,
  .tk-member-games-filter-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .tk-member-games-season-select {
    width: 100%;
    min-width: 0;
  }

  .tk-finance-entry-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .tk-finance-entry-head-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .tk-finance-entry-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .tk-member-info-row strong {
    text-align: left;
  }

  .tk-member-record-page .tk-member-info-row {
    display: grid;
    grid-template-columns: minmax(150px, 150px) minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
  }

  .tk-member-record-page .tk-member-info-row .tk-data-key-badge {
    justify-content: center;
    text-align: center;
  }

  .tk-member-record-page .tk-member-info-row strong {
    min-width: 0;
    text-align: left;
  }

  .tk-team-public-lineup-row {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .tk-team-public-photo-card,
  .tk-team-photo-card {
    max-width: 100%;
    margin-bottom: 0;
  }

  .tk-upload-dropzone-stage,
  .tk-member-photo-stage {
    min-height: 200px;
  }

  .tk-member-document-dropzone {
    min-height: 180px;
  }

  .tk-member-transfer-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-member-form-group-card {
    padding: 1rem;
  }

  .tk-upload-dropzone-preview {
    min-height: 200px;
    max-height: 260px;
  }

  .table-responsive {
    overflow-x: auto;
  }

  .table-responsive > .table,
  .tk-user-management-table {
    min-width: 680px;
  }

  .tk-finance-entry-receipts-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .tk-finance-receipt-tile,
  .tk-finance-receipt-media {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .tk-finance-entry-list-toolbar,
  .tk-finance-entry-list-card-head,
  .tk-finance-entry-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-finance-entry-list-actions {
    justify-content: flex-start;
    width: auto;
  }

  .tk-finance-entry-list-card-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tk-finance-entry-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-finance-entry-head-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.55rem;
    width: 100%;
    margin-left: 0;
  }

  .tk-finance-entry-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-header h1,
  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .eyebrow,
  .tk-blog-list-page .page-header .eyebrow,
  .tk-gallery-page .page-header .eyebrow {
    letter-spacing: 0.14em;
  }

  .tk-home-gallery-grid,
  .tk-home-gallery-track {
    gap: 0.8rem;
  }

  .tk-home-gallery-stage,
  .tk-home-gallery-image {
    max-width: 100%;
    max-height: 260px;
  }

  .tk-home-gallery-caption,
  .tk-team-public-lineup-copy strong,
  .tk-member-list-card strong,
  .tk-post-admin-title-cell strong {
    font-size: 0.95rem;
  }

  .tus-admin-sidebar {
    width: calc(100vw - 0.4rem);
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .tk-app-sidebar-section-toggle,
  .tk-app-sidebar-link {
    border-radius: 12px;
  }

  .tk-modal .modal-dialog,
  .tk-opponent-modal-dialog,
  .tk-photo-detail-modal .modal-dialog {
    max-width: calc(100vw - 0.5rem);
    margin: 0.25rem auto;
  }

  .tk-modal-content {
    border-radius: 14px;
  }

  .tk-modal-header,
  .tk-modal-body,
  .tk-modal-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@media (max-width: 399.98px) {
  .container {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .brand-mark {
    gap: 0.45rem;
    font-size: min(var(--homepage-brand-text-size, 18px), 0.92rem);
  }

  .brand-logo {
    width: min(var(--homepage-brand-logo-width, 160px), 100px);
    height: min(var(--homepage-brand-logo-height, 96px), 56px);
  }

  .tk-module-card,
  .form-card,
  .login-card,
  .table-card,
  .tk-widget,
  .tk-admin-panel,
  .tk-directory-card,
  .tk-team-card,
  .tk-opponent-preview-card {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .tk-widget-head,
  .tk-admin-panel-head,
  .tk-admin-selection-head,
  .table-card-head {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .tk-team-card-league-badge {
    right: 0.9rem;
    max-width: calc(100% - 1.8rem);
  }

  .tk-team-public-lineup-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .tk-team-public-lineup-row > .tk-team-roster-avatar,
  .tk-team-public-lineup-row > .tk-team-roster-avatar-placeholder {
    grid-column: 3;
    justify-self: end;
    width: 42px;
    height: 42px;
  }

  .tk-lineup-position-pill {
    min-width: 2rem;
    min-height: 2rem;
  }

  .tk-home-gallery-stage,
  .tk-home-gallery-image {
    max-height: 220px;
  }

  .tk-app-sidebar-section-toggle {
    grid-template-columns: 1.7rem minmax(0, 1fr) 0.85rem;
    padding: 0.7rem;
  }

  .tk-app-sidebar-section-title,
  .tk-app-sidebar-link {
    font-size: 0.92rem;
  }

  .tk-app-sidebar-section-meta {
    font-size: 0.7rem;
  }

  .tk-modal-title {
    font-size: 1.12rem;
  }

  .tk-modal-icon-btn,
  .tk-user-icon-btn {
    width: 40px;
    height: 40px;
  }

  .tk-modal-role-option {
    padding: 0.75rem 0.8rem;
  }

  .tk-upload-dropzone-stage,
  .tk-member-photo-stage,
  .tk-upload-dropzone-preview {
    min-height: 180px;
    max-height: 220px;
  }
}

.tk-finance-receipt-file-icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.78;
}

.tk-finance-receipt-caption {
  font-size: 0.9rem;
  color: #607695;
  font-weight: 600;
  line-height: 1.35;
}

.tk-finance-entry-receipt-dropzone {
  width: min(140px, 100%);
  max-width: 100%;
  min-height: 140px;
  height: 140px;
}

.tk-finance-entry-receipt-dropzone .tk-member-photo-placeholder {
  padding: 1rem;
}

.tk-finance-entry-receipt-dropzone .tk-member-photo-placeholder-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.tk-finance-entry-receipt-dropzone .tk-member-photo-placeholder span {
  font-size: 0.8rem;
  line-height: 1.35;
}

.tk-finance-receipt-caption {
  width: 140px;
  font-size: 0.78rem;
}

.tk-finance-lightbox-modal {
  min-height: min(88vh, 960px);
}

.tk-finance-lightbox-body {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.tk-finance-lightbox-image,
.tk-finance-lightbox-frame {
  width: 100%;
  max-height: 72vh;
  border: 0;
  border-radius: 22px;
  background: rgba(240, 246, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(128, 174, 233, 0.18);
}

.tk-finance-lightbox-image {
  object-fit: contain;
}

.tk-season-status-pill.is-planned {
  background: rgba(255, 229, 163, 0.32);
  color: #8a5a00;
}

.tk-season-status-pill.is-open {
  background: rgba(164, 225, 255, 0.28);
  color: #0f5f8b;
}

.tk-season-status-pill.is-paid,
.tk-season-status-pill.is-processed {
  background: rgba(170, 232, 196, 0.32);
  color: #1c7a47;
}

.tk-season-status-pill.is-cancelled {
  background: rgba(241, 210, 212, 0.4);
  color: #8e3942;
}

@media (max-width: 991.98px) {
  .tk-finance-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .tk-finance-filter-row,
  .tk-finance-form-grid {
    grid-template-columns: 1fr;
  }

  .tk-finance-field-wide {
    grid-column: auto;
  }

  .tk-finance-trainer-cost-values {
    grid-template-columns: 1fr;
  }

  .tk-finance-modal .modal-header,
  .tk-finance-modal .modal-footer,
  .tk-finance-form {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.tk-game-editor-shell {
  display: grid;
  gap: 1rem;
}

.tk-game-editor-panel,
.tk-game-encounters-panel {
  padding: 1.3rem;
}

.tk-game-create-modal-backdrop { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 1rem; background: rgba(8, 28, 58, .46); }
.tk-game-create-modal { width: min(680px, 100%); padding: 1.5rem; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(8, 28, 58, .28); }
.tk-game-create-modal-head, .tk-game-create-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tk-game-create-modal-head { margin-bottom: .75rem; }
.tk-game-create-modal-head h2 { margin: 0; }
.tk-game-create-modal-preview { margin: 1rem 0; padding: .9rem 1rem; border-radius: 14px; background: #f1f6fd; color: #36577f; }
.tk-game-create-modal .form-label { margin-bottom: .25rem; }
.tk-game-create-modal-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .75rem; row-gap: .65rem; }
.tk-game-create-modal-filter-grid + .form-label { display: block; margin-top: .65rem; }
.tk-game-create-modal-current-season { min-height: 2.7rem; display: flex; align-items: center; padding: .55rem .8rem; border: 1px solid #c7d9f2; border-radius: 10px; color: #36577f; }
.tk-game-create-modal-all-matches { display: flex; align-items: center; align-self: end; gap: .5rem; margin: 0 0 .15rem; color: #36577f; font-weight: 600; cursor: pointer; }
.tk-game-create-modal-footer { justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
.tk-game-create-modal-footer .tk-modal-text-btn { width: auto; min-width: 0; height: 40px; padding: 0 .9rem; gap: .35rem; color: #1768c2; font: inherit; font-weight: 600; }
.tk-game-scoreboard-player-list { display: grid; gap: .35rem; margin-top: .55rem; }
.tk-game-scoreboard-player-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.tk-game-scoreboard-player-name { color: #f8fbff; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 600; line-height: 1.2; }
.tk-game-scoreboard-timeout-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; border: 1px solid rgba(55, 126, 209, .25); border-radius: 10px; background: rgba(248, 251, 255, .95); color: inherit; cursor: pointer; }
.tk-game-scoreboard-timeout-btn.is-active { border-color: rgba(220, 120, 35, .55); background: #fff0d5; color: #9b5a12; }
.tk-game-scoreboard-timeout-btn img { width: 18px; height: 18px; }
.tk-game-scoreboard-digit-stage { position: relative; }
.tk-game-scoreboard-timeout-indicator { position: absolute; left: 1rem; bottom: .75rem; display: none; line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.tk-game-scoreboard-timeout-indicator img { width: 64px; height: 64px; }
@media (max-width: 576px) {
  .tk-game-scoreboard-timeout-indicator img { width: 32px; height: 32px; }
}
.tk-game-scoreboard-timeout-indicator.is-visible { display: block; }
.tk-game-overview-item-game-datetime { display: block; margin-top: .25rem; color: #5d7594; }
.tk-game-detail-datetime { color: #5d7594; }
@media (max-width: 640px) { .tk-game-create-modal-filter-grid { grid-template-columns: 1fr; } }

@media (min-width: 1100px) {
  .tk-game-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    align-items: end;
  }

  .tk-game-details-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
  }

  .tk-game-details-grid > .col-md-8 {
    grid-column: span 2;
  }
}

.tk-game-encounters-panel .tk-admin-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  min-height: 5.2rem;
}

.tk-game-encounters-summary-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.tk-game-total-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(220px, 24vw, 350px);
  padding: 0.9rem 1.8rem;
  border-radius: 22px;
  border: 1px solid rgba(190, 160, 110, 0.34);
  background: linear-gradient(180deg, rgba(235, 219, 190, 0.98), rgba(225, 205, 166, 0.96));
  color: #74511e;
  box-shadow: 0 18px 30px -24px rgba(117, 84, 29, 0.42);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tk-game-lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tk-game-editor-shell.is-away-game .tk-game-lineup-panel[data-lineup-side="guest"] {
  order: -1;
}

.tk-game-lineup-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tk-game-lineup-substitute-btn {
  border: 1px solid rgba(173, 123, 35, 0.32);
  border-radius: 999px;
  background: rgba(255, 247, 229, 0.92);
  color: #8a5a11;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.tk-game-lineup-substitute-btn:hover,
.tk-game-lineup-substitute-btn:focus-visible {
  background: rgba(255, 238, 199, 0.98);
}

.tk-game-lineup-list,
.tk-game-encounter-stack {
  display: grid;
  gap: 0.9rem;
}

.tk-game-editor-finish-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tk-game-lineup-row,
.tk-game-encounter-card,
.tk-game-scorepad-card,
.tk-game-encounter-side-card {
  border-radius: 20px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-game-lineup-row {
  display: grid;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem;
  cursor: grab;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tk-game-lineup-row.is-dragging {
  opacity: 0.55;
  transform: scale(0.992);
  cursor: grabbing;
}

.tk-game-lineup-row.is-substitute {
  border-color: rgba(173, 123, 35, 0.34);
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 246, 226, 0.96));
  cursor: default;
}

.tk-game-lineup-row.is-substitute .tk-lineup-position-pill {
  border-color: rgba(173, 123, 35, 0.3);
  background: rgba(255, 239, 203, 0.95);
  color: #8a5a11;
}

.tk-game-lineup-row.is-drop-before {
  box-shadow: inset 0 3px 0 rgba(66, 132, 219, 0.42), 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-game-lineup-row.is-drop-after {
  box-shadow: inset 0 -3px 0 rgba(66, 132, 219, 0.42), 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-game-lineup-row-main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.tk-game-lineup-avatar-slot {
  width: 54px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-game-lineup-avatar-image,
.tk-game-lineup-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(14, 39, 76, 0.12);
}

.tk-game-lineup-avatar-image {
  object-fit: cover;
  background: rgba(240, 245, 252, 0.9);
}

.tk-game-lineup-avatar-placeholder {
  font-size: 1rem;
}

.tk-game-lineup-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
}

.tk-game-lineup-actions,
.tk-game-encounter-head-actions,
.tk-game-scorepad-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.tk-game-lineup-actions {
  align-self: center;
  flex-wrap: nowrap;
}

.tk-game-encounter-card {
  padding: 1rem;
  display: grid;
  gap: 0.95rem;
}

.tk-game-encounter-card.is-completed {
  border-color: rgba(54, 150, 98, 0.28);
  background: linear-gradient(180deg, rgba(238, 250, 243, 0.98), rgba(223, 244, 232, 0.96));
}

.tk-game-encounter-head,
.tk-game-scorepad-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.tk-game-encounter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  cursor: pointer;
  position: relative;
  min-height: 4.4rem;
}

.tk-game-encounter-head-copy {
  min-width: 0;
}

.tk-game-encounter-score-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.tk-game-encounter-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.72rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(104, 146, 212, 0.24);
  background: linear-gradient(180deg, rgba(234, 244, 255, 0.98), rgba(214, 229, 248, 0.96));
  color: #1f4c8e;
  box-shadow: 0 16px 28px -24px rgba(31, 76, 142, 0.3);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.tk-game-encounter-head h3,
.tk-game-scorepad-head h3 {
  margin: 0.2rem 0 0;
  color: #16375f;
  font-size: 1.12rem;
}

.tk-game-encounter-kicker {
  min-height: 2rem;
  padding: 0.42rem 1rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.tk-game-encounter-type-select {
  min-width: 150px;
}

.tk-game-encounter-head-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  margin-left: auto;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tk-game-encounter-body {
  display: grid;
  gap: 1.25rem;
}

.tk-game-encounter-body.is-collapsed {
  display: none;
}

.tk-game-encounter-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tk-game-encounter-footer-meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.tk-game-encounter-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tk-game-scoreboard-launch-btn {
  min-height: 42px;
  border: 1px solid rgba(190, 160, 110, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(235, 219, 190, 0.96), rgba(225, 205, 166, 0.94));
  color: #74511e;
  font-weight: 800;
  padding: 0 1.1rem;
  box-shadow: 0 14px 26px -22px rgba(117, 84, 29, 0.38);
}

.tk-game-scoreboard-launch-btn:hover {
  border-color: rgba(160, 129, 82, 0.42);
  background: linear-gradient(180deg, rgba(239, 225, 198, 0.98), rgba(229, 209, 173, 0.96));
}

.tk-game-complete-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 0.7rem;
  border: 1px solid rgba(38, 146, 98, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(224, 246, 234, 0.98), rgba(204, 236, 218, 0.96));
  color: #126d46;
  font-weight: 800;
  padding: 0 1.15rem;
  box-shadow: 0 14px 26px -22px rgba(28, 110, 74, 0.38);
}

.tk-game-complete-btn:hover {
  border-color: rgba(29, 123, 80, 0.4);
  background: linear-gradient(180deg, rgba(231, 249, 239, 0.99), rgba(213, 240, 224, 0.97));
}

.tk-game-complete-btn:disabled,
.tk-game-complete-btn.is-completed {
  border-color: rgba(190, 160, 110, 0.34);
  background: linear-gradient(180deg, rgba(235, 219, 190, 0.96), rgba(225, 205, 166, 0.94));
  color: #74511e;
  cursor: default;
}

.tk-game-complete-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tk-game-encounter-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tk-game-encounter-side-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem;
}

.tk-game-encounter-side-card strong {
  color: #17355c;
}

.tk-game-set-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tk-game-set-badge {
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(96, 146, 221, 0.28);
  color: #214a84;
  font-weight: 800;
}

.tk-game-set-badge.is-disabled,
.tk-game-set-badge:disabled {
  opacity: 0.46;
  cursor: default;
  box-shadow: none;
}

.tk-live-ticker-shell {
  margin-top: 0.75rem;
}

.tk-home-live-card {
  display: grid;
  gap: 1rem;
}

.tk-home-live-card-link {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tk-home-live-card-link::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 14px;
  border-radius: 24px 24px 0 0;
  background: rgba(0, 129, 255, 0.18);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.tk-home-live-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 93, 255, 0.24);
  box-shadow: 0 22px 46px rgba(16, 37, 75, 0.14);
}

.tk-home-live-card-link:hover::before {
  background: #0081ff;
  box-shadow: 0 6px 14px rgba(0, 129, 255, 0.22);
}

.tk-home-live-card-link .tk-widget-head,
.tk-home-live-card-link .tk-empty-state,
.tk-home-live-card-link .tk-home-live-grid {
  position: relative;
  z-index: 1;
}

.tk-home-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.tk-home-live-game {
  border-radius: 20px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.tk-home-live-game-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.9rem;
}

.tk-home-live-game-head h3 {
  margin: 0.45rem 0 0;
  color: #13325d;
  font-size: 1.15rem;
}

.tk-home-live-game-head h3 span {
  color: #6b7c95;
}

.tk-home-live-score {
  min-width: 74px;
  padding: 0.5rem 0.8rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(19, 58, 111, 0.98), rgba(14, 43, 86, 0.98));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.tk-home-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-home-live-encounters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-live-ticker-hero {
  position: relative;
  padding: 1.7rem;
  padding-right: 12rem;
}

.tk-live-ticker-hero-context {
  align-self: stretch;
}

.tk-live-ticker-hero-chip {
  position: absolute;
  top: 1.7rem;
  right: 1.7rem;
}

.tk-live-ticker-grid {
  display: grid;
  gap: 1rem;
}

.tk-live-game-card {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.tk-live-game-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.tk-live-game-head h2 {
  margin: 0.45rem 0 0;
  color: #13325d;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.tk-live-game-head h2 span {
  color: #6c7f99;
}

.tk-live-game-score {
  min-width: 108px;
  padding: 0.72rem 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(190, 160, 110, 0.34);
  background: linear-gradient(180deg, rgba(235, 219, 190, 0.98), rgba(225, 205, 166, 0.96));
  color: #74511e;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 30px -24px rgba(117, 84, 29, 0.42);
}

.tk-live-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tk-live-encounter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tk-live-encounter-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(18, 54, 105, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
}

.tk-live-encounter-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.tk-live-encounter-table th,
.tk-live-encounter-table td {
  padding: 0.75rem 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(18, 54, 105, 0.1);
}

.tk-live-encounter-table th {
  color: #3c6090;
  background: rgba(231, 240, 253, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tk-live-encounter-table tbody tr:last-child td {
  border-bottom: 0;
}

.tk-live-encounter-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.65);
}

.tk-live-encounter-number {
  color: #175ec4;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.tk-live-encounter-player-cell {
  min-width: 13rem;
}

.tk-live-encounter-table .tk-live-player-badge-list {
  gap: 0.35rem;
}

.tk-live-encounter-table .tk-live-player-badge {
  min-height: 2.35rem;
  padding: 0.25rem 0.45rem 0.25rem 0.7rem;
}

.tk-live-encounter-table .tk-live-set-row {
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.tk-live-encounter-table .tk-live-set-pill {
  min-width: 0;
  box-sizing: border-box;
  height: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.55rem;
  place-items: center;
}

.tk-live-encounter-card {
  border-radius: 20px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
  padding: 0.95rem;
  display: grid;
  gap: 0.85rem;
}

.tk-live-encounter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.tk-live-encounter-score {
  min-width: 58px;
  padding: 0.38rem 0.72rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 146, 221, 0.28);
  background: linear-gradient(180deg, rgba(225, 238, 255, 0.98), rgba(214, 231, 255, 0.94));
  box-shadow: 0 12px 24px -20px rgba(21, 71, 138, 0.28);
  margin-left: auto;
  color: #123765;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: center;
}

.tk-live-encounter-score.is-win {
  border-color: rgba(67, 166, 108, 0.32);
  background: linear-gradient(180deg, rgba(224, 247, 231, 0.98), rgba(205, 239, 216, 0.94));
  color: #1f6a42;
}

.tk-live-encounter-score.is-loss {
  border-color: rgba(214, 116, 160, 0.32);
  background: linear-gradient(180deg, rgba(252, 230, 239, 0.98), rgba(246, 211, 226, 0.94));
  color: #a43b69;
}

.tk-live-player-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tk-live-player-column {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.tk-live-player-column strong {
  color: #16375f;
}

.tk-live-player-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tk-live-player-badge {
  flex: 1 1 100%;
  min-width: min(100%, 14.5rem);
  min-height: 2.45rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.38rem 0.72rem 0.38rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(106, 154, 225, 0.28);
  box-shadow: 0 12px 24px -22px rgba(19, 55, 101, 0.28);
}

.tk-live-player-badge.is-home {
  background: linear-gradient(180deg, rgba(225, 238, 255, 0.98), rgba(212, 230, 255, 0.95));
  color: #12407a;
}

.tk-live-player-badge.is-guest {
  background: linear-gradient(180deg, rgba(245, 232, 205, 0.98), rgba(238, 223, 191, 0.95));
  border-color: rgba(190, 160, 110, 0.3);
  color: #7a5420;
}

.tk-live-player-badge.is-muted {
  opacity: 0.76;
}

.tk-live-player-badge-name {
  min-width: 0;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tk-live-player-badge-position {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.8;
}

.tk-live-player-badge-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 18px -14px rgba(15, 46, 90, 0.42);
  object-fit: cover;
  flex: 0 0 auto;
}

.tk-live-player-badge-avatar-placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(201, 233, 246, 0.98), rgba(186, 222, 239, 0.95));
  color: #123765;
}

.tk-live-player-badge.is-guest .tk-live-player-badge-avatar-placeholder {
  background: linear-gradient(180deg, rgba(246, 226, 189, 0.99), rgba(236, 212, 170, 0.96));
  color: #7a5420;
}

.tk-live-set-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tk-live-set-pill {
  min-width: 70px;
  padding: 0.36rem 0.54rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 146, 221, 0.24);
  background: linear-gradient(180deg, rgba(225, 238, 255, 0.96), rgba(214, 231, 255, 0.92));
  display: grid;
  gap: 0.08rem;
  justify-items: center;
  text-align: center;
}

.tk-live-set-pill.is-win {
  border-color: rgba(67, 166, 108, 0.28);
  background: linear-gradient(180deg, rgba(224, 247, 231, 0.98), rgba(205, 239, 216, 0.94));
}

.tk-live-set-pill.is-loss {
  border-color: rgba(214, 116, 160, 0.28);
  background: linear-gradient(180deg, rgba(252, 230, 239, 0.98), rgba(246, 211, 226, 0.94));
}

.tk-live-set-pill small {
  color: #1652b8;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tk-live-set-pill strong {
  color: #17355c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.tk-live-set-pill.is-win strong,
.tk-live-set-pill.is-win small {
  color: #1f6a42;
}

.tk-live-set-pill.is-loss strong,
.tk-live-set-pill.is-loss small {
  color: #a43b69;
}

.tk-game-scorepad-card {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.tk-game-scorepad-card.is-hidden {
  display: none;
}

.tk-game-scorepad-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tk-game-score-display {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(128, 174, 233, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: #17355c;
}

.tk-game-score-display strong {
  font-size: 1.9rem;
  line-height: 1;
}

.tk-game-score-display.is-active {
  border-color: rgba(22, 93, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(22, 93, 255, 0.08);
}

.tk-game-scorepad-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.tk-game-scorepad-key {
  min-height: 3rem;
  border: 1px solid rgba(146, 179, 224, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.95));
  color: #214a84;
  font-size: 1.15rem;
  font-weight: 800;
}

.tk-game-scorepad-key:hover {
  border-color: rgba(71, 128, 204, 0.38);
}

.tk-game-scoreboard-shell {
  display: grid;
  gap: 1.25rem;
}

.tk-live-encounter-head .tk-live-encounter-label {
  font-size: 0.95rem;
  font-weight: 800;
}

.tk-game-status-menu { position: relative; }
.tk-game-status-menu summary { list-style: none; cursor: pointer; }
.tk-game-status-menu summary::-webkit-details-marker { display: none; }
.tk-game-status-options { position: absolute; top: calc(100% + 0.45rem); right: 0; z-index: 20; display: grid; min-width: 9rem; padding: 0.35rem; border: 1px solid rgba(18, 54, 105, 0.14); border-radius: 12px; background: #fff; box-shadow: 0 14px 28px rgba(16, 37, 75, 0.16); }
.tk-game-status-options button { padding: 0.45rem 0.65rem; border: 0; border-radius: 8px; background: transparent; color: #24426f; text-align: left; font: inherit; font-weight: 700; }
.tk-game-status-options button:hover { background: rgba(23, 104, 194, 0.1); }

.tk-game-scoreboard-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1100px) {
  .tk-game-scoreboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-shell {
    padding: 1rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-toolbar {
    gap: 0.65rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-board {
    gap: 0.65rem;
    padding: 1.65rem 0.75rem 0.75rem;
    border-radius: 24px;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-clips {
    top: 0.4rem;
    gap: 0.75rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-clip {
    width: 12px;
    height: 20px;
    border-radius: 7px;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-side {
    gap: 0.55rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-side-head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-player-list {
    gap: 0.2rem;
    margin-top: 0.3rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-player-name {
    font-size: 0.7rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-score-control {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-digit-card {
    min-height: clamp(132px, 13vw, 176px);
    font-size: clamp(5rem, 8.5vw, 7rem);
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner {
    right: 0;
    left: 0;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner.is-top {
    top: 0;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner.is-bottom {
    bottom: 0;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner-btn {
    width: 100%;
    min-width: 0;
    height: 1.85rem;
    padding: 0;
    border-width: 0;
    border-radius: 0;
    font-size: 0.95rem;
    box-shadow: none;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner.is-top .tk-game-scoreboard-card-corner-btn {
    border-bottom: 1px solid rgba(53, 167, 110, 0.38);
    border-radius: 15px 15px 0 0;
    background: linear-gradient(180deg, rgba(104, 193, 133, 0.98), rgba(64, 157, 96, 0.96));
    color: #f7fffa;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner.is-bottom .tk-game-scoreboard-card-corner-btn {
    border-top: 1px solid rgba(205, 90, 120, 0.4);
    border-radius: 0 0 15px 15px;
    background: linear-gradient(180deg, rgba(224, 122, 147, 0.98), rgba(194, 71, 105, 0.96));
    color: #fff8fb;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-card-corner-btn:hover {
    transform: none;
    filter: brightness(1.04);
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-center {
    gap: 0.5rem;
    min-width: 0;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-kicker {
    font-size: 0.72rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-score-row {
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    gap: 0.45rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-score {
    grid-template-columns: minmax(72px, 1fr);
    min-width: 72px;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-digit-card.is-set {
    min-height: 76px;
    font-size: 2.55rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-score-separator {
    font-size: 2.1rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-nav {
    gap: 0.25rem;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-chip {
    gap: 0;
    padding: 0.1rem;
    border-radius: 8px;
  }
}

html:has(body.tk-game-scoreboard-page),
body.tk-game-scoreboard-page {
  height: auto !important;
  min-height: 100%;
  overflow-y: auto !important;
}

body.tk-game-scoreboard-page main,
body.tk-game-scoreboard-page .site-shell {
  height: auto !important;
  min-height: 100%;
  overflow: visible !important;
}

.tk-game-scoreboard-page .tk-admin-hero > .tk-admin-hero-actions {
  flex-direction: row;
  align-items: center;
  margin-left: auto;
}

.tk-game-scoreboard-page .tk-admin-hero > .tk-admin-hero-image-actions {
  margin-left: 0;
}

.tk-game-scoreboard-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.tk-game-scoreboard-toolbar .tk-admin-chip-row {
  justify-self: end;
}

.tk-game-scoreboard-back-btn {
  align-self: center;
}

.tk-game-scoreboard-title {
  margin: 0.2rem 0 0;
}

.tk-game-scoreboard-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.2rem;
  padding: 2.2rem 1.35rem 1.35rem;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(31, 89, 67, 0.98), rgba(12, 53, 39, 0.99));
  box-shadow: 0 28px 50px -34px rgba(6, 59, 41, 0.72);
  position: relative;
}

.tk-game-scoreboard-clips {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.tk-game-scoreboard-clip {
  display: block;
  width: 18px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(34, 36, 40, 1), rgba(6, 8, 11, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 10px rgba(0, 0, 0, 0.34);
}

.tk-game-scoreboard-side,
.tk-game-scoreboard-center {
  min-width: 0;
}

.tk-game-scoreboard-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.tk-game-scoreboard-side-head h3 {
  margin: 0.15rem 0 0.6rem;
  color: #f6f9ff;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.25;
}

.tk-game-scoreboard-score-control {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(193, 210, 242, 0.42);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 28px -24px rgba(3, 35, 24, 0.52);
  cursor: ns-resize;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  touch-action: none;
  position: relative;
}

.tk-game-scoreboard-score-control:hover,
.tk-game-scoreboard-score-control.is-dragging {
  border-color: rgba(112, 170, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 36px -28px rgba(41, 107, 205, 0.58);
}

.tk-game-scoreboard-score-control.is-dragging {
  transform: translateY(-1px);
}

.tk-game-scoreboard-drag-hint {
  color: #9eb2d7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tk-game-scoreboard-digit-stage {
  position: relative;
}

.tk-game-scoreboard-digit-row {
  display: block;
}

.tk-game-scoreboard-digit-card {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(180px, 24vw, 280px);
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: #0f1319;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(7rem, 18vw, 11.5rem);
  font-weight: 800;
  line-height: 0.88;
  box-shadow: none;
  text-align: center;
}

.tk-game-scoreboard-digit-card.is-set {
  min-height: clamp(112px, 12vw, 142px);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(244, 246, 249, 0.985));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 20px 28px -24px rgba(11, 15, 24, 0.5);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: #d94b39;
}

.tk-game-scoreboard-card-corner {
  position: absolute;
  right: 15px;
  z-index: 2;
}

.tk-game-scoreboard-card-corner.is-top {
  top: 15px;
}

.tk-game-scoreboard-card-corner.is-bottom {
  bottom: 15px;
}

.tk-game-scoreboard-card-corner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.55rem;
  padding: 0 0.76rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(197, 166, 118, 0.48);
  background: linear-gradient(180deg, rgba(238, 220, 185, 0.98), rgba(223, 195, 146, 0.96));
  color: #6f4f1f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 20px -18px rgba(116, 86, 34, 0.58), inset 0 1px 0 rgba(255, 247, 230, 0.58);
}

.tk-game-scoreboard-card-corner-btn:hover {
  border-color: rgba(168, 128, 64, 0.56);
  transform: translateY(-1px);
}

.tk-game-scoreboard-center {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  min-width: min(100%, 360px);
}

.tk-game-scoreboard-set-score-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 1.3rem;
}

.tk-game-scoreboard-set-score {
  display: grid;
  grid-template-columns: minmax(110px, 1fr);
  min-width: 110px;
  gap: 0;
}

.tk-game-scoreboard-set-score-separator {
  color: #f3f7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.tk-game-scoreboard-card-corner-btn:hover {
  transform: translateY(-1px);
}

.tk-game-scoreboard-set-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.5rem;
}

.tk-game-scoreboard-set-chip {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  min-width: 0;
  padding: 0.55rem 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(166, 192, 230, 0.2);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.96));
  color: #355985;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tk-game-scoreboard-set-chip span {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tk-game-scoreboard-set-chip strong {
  font-size: 0.88rem;
}

.tk-game-scoreboard-set-chip:hover,
.tk-game-scoreboard-set-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(86, 145, 232, 0.36);
  box-shadow: 0 18px 26px -24px rgba(20, 72, 150, 0.35);
}

.tk-game-scoreboard-set-chip.is-completed {
  border-color: rgba(103, 160, 110, 0.34);
  background: linear-gradient(180deg, rgba(232, 246, 230, 0.98), rgba(214, 236, 211, 0.96));
  box-shadow: 0 18px 26px -24px rgba(46, 104, 53, 0.26);
  color: #285c2d;
}

.tk-game-scoreboard-set-chip.is-active {
  background: linear-gradient(180deg, rgba(235, 219, 190, 0.98), rgba(225, 205, 166, 0.96));
  border-color: rgba(190, 160, 110, 0.34);
  box-shadow: 0 18px 26px -24px rgba(117, 84, 29, 0.38);
  color: #7a551d;
}

@media (max-width: 991.98px) {
  .tk-game-lineup-grid,
  .tk-game-encounter-player-grid,
  .tk-live-encounter-grid,
  .tk-live-player-columns {
    grid-template-columns: 1fr;
  }

  .tk-live-player-badge {
    min-width: 100%;
  }

  .tk-game-scoreboard-board {
    grid-template-columns: 1fr;
  }

  .tk-game-scoreboard-center {
    order: -1;
    min-width: 0;
  }

}

@media (max-width: 767.98px) {
  .tk-game-encounters-panel .tk-admin-panel-head,
  .tk-game-encounter-head {
    grid-template-columns: 1fr;
  }

  .tk-live-encounter-card {
    position: relative;
    padding-top: 1.2rem;
  }

  .tk-live-encounter-head {
    position: static;
    padding-right: 5.25rem;
  }

  .tk-live-encounter-score {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    margin-left: 0;
  }

  .tk-game-encounters-summary-wrap,
  .tk-game-encounter-score-wrap {
    justify-content: flex-start;
    position: static;
    left: auto;
    transform: none;
  }

  .tk-game-lineup-row,
  .tk-game-encounter-card,
  .tk-game-scorepad-card {
    padding: 0.9rem;
  }

  .tk-game-lineup-row,
  .tk-game-encounter-head,
  .tk-game-scorepad-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .tk-game-lineup-row {
    grid-template-columns: 1fr;
  }

  .tk-game-lineup-row-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tk-game-lineup-select-row {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .tk-game-lineup-actions,
  .tk-game-encounter-head-actions,
  .tk-game-scorepad-actions {
    width: 100%;
  }

  .tk-game-encounter-footer {
    align-items: stretch;
  }

  .tk-game-encounter-footer-actions,
  .tk-game-scoreboard-launch-btn,
  .tk-game-complete-btn {
    width: 100%;
  }

  .tk-game-encounter-type-select {
    min-width: 0;
    width: 100%;
  }

  .tk-game-scorepad-score-grid {
    grid-template-columns: 1fr;
  }

  .tk-game-scoreboard-digit-card {
    min-height: clamp(150px, 32vw, 220px);
    font-size: clamp(7.2rem, 24vw, 10rem);
  }

  .tk-game-scoreboard-set-nav {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.35rem;
  }

  .tk-game-scoreboard-set-chip {
    gap: 0.1rem;
    padding: 0.45rem 0.28rem;
    border-radius: 16px;
  }

  .tk-game-scoreboard-set-chip span {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  .tk-game-scoreboard-set-chip strong {
    font-size: 0.8rem;
  }

  .tk-live-ticker-hero,
  .tk-live-game-head,
  .tk-home-live-game-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tk-live-ticker-hero {
    padding-right: 1.7rem;
  }

  .tk-live-ticker-hero-chip {
    position: static;
  }

  .tk-live-game-score,
  .tk-live-encounter-score,
  .tk-home-live-score {
    margin-left: 0;
    width: fit-content;
  }
}

@media (max-width: 399.98px) {
  .tk-game-set-badge {
    width: 100%;
    justify-content: center;
  }

  .tk-game-scorepad-key {
    min-height: 2.75rem;
  }
}

@media (min-width: 1100px) {
  .tk-game-scoreboard-cards .tk-game-scoreboard-player-list {
    font-size: 0.72rem;
    line-height: 1.08;
  }

  .tk-game-scoreboard-cards .tk-game-scoreboard-set-chip {
    height: 2rem;
    min-height: 2rem;
    gap: 0;
    padding: 0.05rem 0.1rem;
  }
}

.tk-game-overview-shell {
  display: grid;
  grid-template-columns: minmax(22rem, max-content) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tk-game-overview-sidebar,
.tk-game-overview-detail {
  padding: 1.3rem;
  min-width: 0;
  box-sizing: border-box;
}

.tk-game-overview-detail {
  container-type: inline-size;
}

.tk-game-overview-title-badge {
  font-size: 1rem;
}

.tk-game-overview-panel-head {
  position: relative;
  align-items: flex-start;
  padding-right: 4.5rem;
  min-height: 2.9rem;
}

.tk-game-overview-panel-head-copy {
  min-width: 0;
}

.tk-game-overview-panel-head > .tk-season-icon-btn {
  position: absolute;
  top: 0;
  right: 0;
}

.tk-game-overview-filter-grid,
.tk-game-overview-list,
.tk-game-detail-encounter-stack {
  display: grid;
  gap: 0.9rem;
}

.tk-game-overview-filter-grid {
  margin-bottom: 1rem;
}

.tk-game-overview-item,
.tk-game-detail-summary-card,
.tk-game-detail-encounter-card {
  border-radius: 20px;
  border: 1px solid rgba(18, 54, 105, 0.1);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
  box-shadow: 0 18px 34px -30px rgba(15, 46, 90, 0.22);
}

.tk-game-overview-item {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  color: #17355c;
  position: relative;
  container-type: inline-size;
}

.tk-game-overview-item strong,
.tk-game-overview-item-title {
  font-size: 1rem;
}

.tk-game-overview-item-head {
  display: block;
  position: relative;
}

.tk-game-overview-item-title {
  display: block;
  line-height: 1.35;
  white-space: nowrap;
}

.tk-game-overview-item-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-top: .55rem;
}

.tk-game-overview-item-result {
  white-space: nowrap;
}

.tk-game-overview-item-meta {
  display: grid;
  gap: 0.5rem;
}

.tk-game-overview-item-venue {
  display: block;
  white-space: nowrap;
}

.tk-game-overview-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-game-overview-item-date {
  display: block;
  min-width: 0;
}

.tk-game-overview-item-status {
  white-space: nowrap;
  flex: 0 0 auto;
}

.tk-game-overview-item span,
.tk-game-overview-item small,
.tk-game-detail-head p,
.tk-game-detail-encounter-grid p,
.tk-game-detail-summary-card p {
  color: #5f738f;
}

.tk-game-overview-item.is-active {
  border-color: rgba(22, 93, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(22, 93, 255, 0.08);
}

.tk-game-detail-head,
.tk-game-detail-actions,
.tk-game-detail-encounter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.tk-game-overview-empty {
  min-height: 160px;
}

.tk-game-detail-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-width: 0;
  width: 100%;
}

.tk-game-detail-head-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tk-game-detail-head-copy {
  min-width: 0;
}

.tk-game-detail-head h2,
.tk-game-detail-encounter-head h3 {
  margin: 0.2rem 0 0;
  color: #16375f;
}

.tk-game-detail-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

.tk-game-detail-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.tk-game-detail-head-result {
  box-sizing: border-box;
  height: 2.2rem;
  padding: 0 1rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.tk-game-detail-summary-grid,
.tk-game-detail-encounter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr));
  gap: 0.9rem;
  min-width: 0;
}

.tk-game-detail-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.tk-game-detail-corner-badge {
  min-height: 2.3rem;
  padding: 0.5rem 1rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 24px -20px rgba(18, 54, 105, 0.32);
}

.tk-admin-chip.tk-game-detail-corner-badge.is-success,
.tk-admin-status-chip.tk-game-detail-corner-badge.is-success {
  background: linear-gradient(180deg, rgba(220, 247, 235, 0.99), rgba(196, 236, 219, 0.98));
  color: #12804e;
  border: 1px solid rgba(53, 167, 110, 0.26);
}

.tk-admin-chip.tk-game-detail-corner-badge.is-soft,
.tk-admin-status-chip.tk-game-detail-corner-badge.is-soft {
  font-size: 0.95rem;
}

.tk-game-detail-summary-card,
.tk-game-detail-encounter-card {
  padding: 1rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tk-game-detail-encounter-card {
  display: grid;
  gap: 0.9rem;
}

.tk-game-detail-encounter-stack {
  margin-top: 1.25rem;
}

.tk-game-detail-encounter-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(18, 54, 105, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(240, 246, 255, 0.96));
}

.tk-game-detail-encounter-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.tk-game-detail-encounter-table th,
.tk-game-detail-encounter-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(18, 54, 105, 0.1);
}

.tk-game-detail-encounter-table th {
  color: #3c6090;
  background: rgba(231, 240, 253, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tk-game-detail-encounter-table tbody tr:last-child td {
  border-bottom: 0;
}

.tk-game-detail-encounter-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.65);
}

.tk-game-detail-encounter-number {
  color: #175ec4;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.tk-game-detail-player-cell {
  min-width: 12rem;
  color: #17355c;
  font-weight: 650;
}

.tk-game-detail-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}

.tk-game-detail-player-list.is-double {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.tk-game-detail-player {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tk-game-detail-player-position {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(67, 105, 154, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #456b9d;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.tk-game-detail-encounter-table .tk-game-detail-set-row {
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.tk-game-detail-encounter-table .tk-game-detail-set-badge {
  min-height: 1.95rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.8rem;
}

.tk-game-detail-set-badge.is-home-win,
.tk-team-context-badge.is-home-win {
  border-color: rgba(67, 166, 108, 0.32);
  background: linear-gradient(180deg, rgba(224, 247, 231, 0.98), rgba(205, 239, 216, 0.94));
  color: #1f6a42;
}

.tk-game-detail-set-badge.is-home-loss,
.tk-team-context-badge.is-home-loss {
  border-color: rgba(214, 116, 160, 0.32);
  background: linear-gradient(180deg, rgba(252, 230, 239, 0.98), rgba(246, 211, 226, 0.94));
  color: #a43b69;
}

.tk-game-detail-encounter-grid strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #17355c;
}

.tk-game-detail-set-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tk-game-detail-set-badge {
  min-height: 2.4rem;
  padding: 0.5rem 0.9rem;
}

@media (max-width: 991.98px) {
  .tk-game-overview-shell,
  .tk-game-detail-summary-grid,
  .tk-game-detail-encounter-grid {
    grid-template-columns: 1fr;
  }

  .tk-game-overview-page .tk-admin-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title actions"
      "copy copy";
  }
}

@media (min-width: 768px) {
  .tk-game-overview-item-head {
    display: block !important;
  }

  .tk-game-overview-item-result-row {
    width: 100%;
    justify-content: space-between;
  }
}

@container (max-width: 520px) {
  .tk-game-overview-item-head {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .tk-game-overview-item-result-row {
    width: 100%;
    justify-content: space-between !important;
  }

  .tk-game-overview-item-footer {
    align-items: center;
  }
}

@container (max-width: 300px) {
  .tk-game-detail-actions {
    display: grid;
    justify-items: end;
    align-items: start;
    gap: 0.55rem;
  }

  .tk-game-detail-action-buttons {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .tk-game-overview-sidebar,
  .tk-game-overview-detail,
  .tk-game-detail-summary-card,
  .tk-game-detail-encounter-card {
    padding: 0.95rem;
  }

  .tk-game-detail-head {
    flex-direction: column;
  }

  .tk-game-detail-head {
    display: flex;
  }

  .tk-game-detail-head-top {
    align-items: start;
  }

  .tk-game-detail-encounter-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: start;
    justify-content: space-between;
    width: 100%;
  }

  .tk-game-detail-encounter-head > div {
    min-width: 0;
  }

  .tk-game-detail-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
  }

  .tk-game-overview-panel-head {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .tk-admin-table {
    min-width: 760px;
  }
}

/* Zoom and Ruler Styles */
.tk-membership-template-zoom-control {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.75rem;
}

.tk-membership-template-zoom-slider {
  width: 120px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, rgba(118, 160, 225, 0.3), rgba(118, 160, 225, 0.6));
  border-radius: 999px;
  outline: 0;
  cursor: pointer;
}

.tk-membership-template-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(93, 160, 240, 0.96), rgba(59, 127, 218, 0.94));
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(48, 118, 222, 0.3);
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}

.tk-membership-template-zoom-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 6px 16px rgba(48, 118, 222, 0.4);
}

.tk-membership-template-zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(93, 160, 240, 0.96), rgba(59, 127, 218, 0.94));
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(48, 118, 222, 0.3);
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}

.tk-membership-template-zoom-slider::-moz-range-thumb:hover {
  box-shadow: 0 6px 16px rgba(48, 118, 222, 0.4);
}

.tk-membership-template-zoom-value {
  display: inline-block;
  min-width: 3.5rem;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #577097;
}

.tk-membership-template-canvas-wrapper {
  display: flex;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  align-items: flex-start;
  background: rgba(245, 248, 252, 0.5);
}

.tk-membership-template-ruler-vertical {
  width: 40px;
  min-width: 40px;
  flex: 0 0 auto;
  height: 1123px;
  align-self: flex-start;
  background: linear-gradient(90deg, rgba(245, 248, 252, 0.98), rgba(235, 242, 250, 0.96));
  border-right: 1px solid rgba(118, 160, 225, 0.24);
  position: relative;
  overflow: hidden;
  margin-top: 50px;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(118, 160, 225, 0.3) 0px,
      rgba(118, 160, 225, 0.3) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(118, 160, 225, 0.5) 0px,
      rgba(118, 160, 225, 0.5) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(118, 160, 225, 0.7) 0px,
      rgba(118, 160, 225, 0.7) 1px,
      transparent 1px,
      transparent 10px
    );
  background-size:
    8px 100%,
    12px 100%,
    20px 100%;
  background-position:
    32px 0,
    28px 0,
    20px 0;
  background-repeat: repeat-y;
  background-position: 0 0;
  pointer-events: none;
}

.tk-membership-template-canvas-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  align-self: flex-start;
}

.tk-membership-template-ruler-horizontal {
  height: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  width: 794px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(235, 242, 250, 0.96));
  border-bottom: 1px solid rgba(118, 160, 225, 0.24);
  position: relative;
  overflow: hidden;
  margin-left: 20px;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(118, 160, 225, 0.3) 0px,
      rgba(118, 160, 225, 0.3) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(118, 160, 225, 0.5) 0px,
      rgba(118, 160, 225, 0.5) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(118, 160, 225, 0.7) 0px,
      rgba(118, 160, 225, 0.7) 1px,
      transparent 1px,
      transparent 10px
    );
  background-size:
    100% 8px,
    100% 12px,
    100% 20px;
  background-position:
    0 22px,
    0 18px,
    0 10px;
  background-repeat: repeat-x;
  background-position: 0 0;
  pointer-events: none;
}

/* Unified edge-to-edge hero cards across all admin pages. */
.tk-admin-page .tk-admin-shell {
  padding-top: 0;
}

.tk-admin-page .tk-admin-hero {
  margin-top: 0;
  border-radius: 0;
}

.tk-admin-page .tk-admin-shell > .container > .tk-admin-hero {
  margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
}

@media (min-width: 992px) {
  .has-admin-sidebar.tk-admin-page .tk-admin-shell > .container > .tk-admin-hero {
    margin-inline: -2rem;
  }
}

@media (max-width: 575.98px) {
  .tk-admin-page .tk-admin-shell > .container > .tk-admin-hero {
    margin-inline: -1rem;
  }

  .tk-department-profile-card .tk-member-info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .tk-department-profile-card .tk-member-info-row strong {
    text-align: left;
  }
}

/* Member administration: use the calm department-profile card language in every tab. */
.tk-member-record-page [data-member-tab-panel] :is(
  .tk-member-info-card,
  .tk-member-photo-card,
  .tk-member-notes-card,
  .tk-member-team-card,
  .tk-member-games-filter-card,
  .tk-member-game-card,
  .tk-member-document-upload-card,
  .tk-member-document-card,
  .tk-member-transfer-form-card,
  .tk-member-transfer-card
) {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid rgba(120, 161, 218, 0.22);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
  box-shadow: 0 16px 34px -28px rgba(34, 77, 128, 0.62);
}

.tk-member-record-page [data-member-tab-panel] :is(
  .tk-member-info-card,
  .tk-member-photo-card,
  .tk-member-notes-card,
  .tk-member-team-card,
  .tk-member-games-filter-card,
  .tk-member-game-card,
  .tk-member-document-upload-card,
  .tk-member-document-card,
  .tk-member-transfer-form-card,
  .tk-member-transfer-card
)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(41, 121, 255, 0.78), rgba(83, 205, 210, 0.58));
  pointer-events: none;
}

.tk-member-record-page [data-member-tab-panel] :is(
  .tk-member-panel-grid-2,
  .tk-member-card-grid,
  .tk-member-document-grid
) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
}

.tk-member-record-page [data-member-tab-panel] .tk-member-info-list {
  gap: 0;
  margin-top: 0.75rem;
}

.tk-member-record-page [data-member-tab-panel] .tk-member-info-row {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(120, 161, 218, 0.18);
}

.tk-member-record-page [data-member-tab-panel] .tk-member-info-row:last-child {
  border-bottom: 0;
}

.tk-member-record-page [data-member-tab-panel] .tk-member-info-row .tk-data-key-badge {
  display: block;
  justify-self: start;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60738f;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tk-member-record-page [data-member-tab-panel] .tk-member-info-row > :last-child {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  text-align: right;
}

.tk-member-record-page [data-member-tab-panel] .tk-member-info-row strong {
  color: #334a68;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .tk-member-record-page [data-member-tab-panel] .tk-member-info-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .tk-member-record-page [data-member-tab-panel] .tk-member-info-row > :last-child {
    justify-self: start;
    text-align: left;
  }
}
.tk-membership-inline-link { color: var(--bs-primary); font-weight: 700; text-decoration: underline; text-underline-offset: .16em; }
.tk-member-email-link {
  color: var(--bs-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .16em;
}
.tk-member-email-link:hover,
.tk-member-email-link:focus-visible {
  color: #084fb8;
  text-decoration-thickness: 2px;
}
.tk-member-address-link {
  display: inline-flex;
  flex-direction: column;
  color: var(--bs-primary);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .16em;
}
.tk-member-address-link:hover,
.tk-member-address-link:focus-visible {
  color: #084fb8;
  text-decoration-thickness: 2px;
}
.tk-member-address-link > span:first-child {
  white-space: nowrap;
}
.tk-trainer-action-menu { position: relative; display: inline-flex; }
.tk-trainer-action-menu-list { position: absolute; z-index: 50; top: calc(100% + .35rem); left: 0; display: grid; min-width: 17rem; padding: .35rem; border: 1px solid rgba(120, 161, 218, .35); border-radius: .6rem; background: #fff; box-shadow: 0 .7rem 1.5rem rgba(23, 47, 104, .18); }
.tk-trainer-action-menu-list { margin: 0; list-style: none; }
.tk-trainer-action-menu-list li { margin: 0; padding: 0; }
.tk-trainer-action-menu-list form { display: grid; margin: 0; }
.tk-trainer-action-menu-list :is(button, a) { display: flex; align-items: center; gap: .5rem; padding: .48rem .65rem; border: 0; border-radius: .35rem; background: transparent; color: #173d6b; font: inherit; text-align: left; text-decoration: none; white-space: nowrap; }
.tk-trainer-action-menu-list form button { width: 100%; }
.tk-trainer-action-menu-list :is(button, a) img { width: 1rem; height: 1rem; object-fit: contain; }
.tk-trainer-action-menu-list :is(button, a):hover, .tk-trainer-action-menu-list :is(button, a):focus-visible { background: #edf5ff; }
.tk-trainer-action-menu-list button.is-danger { color: #b42318; }
.tk-member-list-grid-wrap:has([data-trainer-list]) { overflow: hidden; }
.tk-trainer-action-menu-list.is-floating { position: fixed; z-index: 1100; }
.tk-training-plan-groups { grid-column: 1 / -1; min-width: 0; padding: .8rem 1rem; border: 1px solid rgba(120, 161, 218, .28); border-radius: .75rem; }
.tk-training-time-actions { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.tk-training-time-range { white-space: nowrap; }
.tk-training-status { display: inline-flex; align-items: center; padding: .28rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.tk-training-status.is-open { color: #1967d2; background: #e8f1ff; }
.tk-training-status.is-completed { color: #16803c; background: #e5f6eb; }
.tk-training-status.is-cancelled { color: #b33a6a; background: #fce8f0; }
[data-training-times-open] { color: #1967d2; background: #e8f1ff; }
[data-training-times-completed] { color: #16803c; background: #e5f6eb; }
[data-training-times-cancelled] { color: #b33a6a; background: #fce8f0; }
.tk-training-cancel-modal { padding: 0; overflow: hidden; }
.tk-training-cancel-modal .tk-game-create-modal-head, .tk-training-cancel-modal .tk-game-create-modal-footer { padding: 1.25rem 1.5rem; margin: 0; }
.tk-training-cancel-modal .tk-game-create-modal-head { border-bottom: 1px solid rgba(120, 161, 218, .24); }
.tk-training-cancel-modal .tk-game-create-modal-footer { border-top: 1px solid rgba(120, 161, 218, .24); }
.tk-training-cancel-modal-body { padding: 1.25rem 1.5rem; }
.tk-training-cancel-modal-body .form-label, .tk-training-cancel-modal-body textarea { display: block; width: 100%; }
.tk-training-cancel-modal-body textarea { min-height: 8rem; resize: vertical; }
.tk-training-cancellation-progress { position: fixed; inset: 0; z-index: 1200; display: grid; place-content: center; gap: .65rem; justify-items: center; color: #fff; background: rgba(8, 28, 58, .58); font-size: 1rem; }
.tk-training-cancellation-progress strong { font-size: 1.1rem; }
.tk-training-cancellation-progress span { color: rgba(255,255,255,.8); }
.tk-training-deputy-note { margin-top: 1.25rem; }
.tk-training-plan-modal { padding: 0; overflow: hidden; }
.tk-training-plan-modal .tk-game-create-modal-head, .tk-training-plan-modal .tk-game-create-modal-footer { padding: 1.25rem 1.5rem; margin: 0; }
.tk-training-plan-modal .tk-game-create-modal-head { border-bottom: 1px solid rgba(120, 161, 218, .24); }
.tk-training-plan-modal .tk-game-create-modal-footer { border-top: 1px solid rgba(120, 161, 218, .24); }
.tk-training-plan-modal .tk-assignment-fields { padding: 1.25rem 1.5rem; }
.tk-training-cancel-modal .tk-game-create-modal-footer .btn.btn-primary[data-save] { width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 10px; background-color: #e8f1ff; background-image: url('/static/icons/n-check.svg'); background-repeat: no-repeat; background-position: center; background-size: 19px; border-color: #b9d4fb; color: transparent; font-size: 0; }
.tk-training-cancel-modal .tk-game-create-modal-footer .btn.btn-primary[data-save]:disabled { opacity: .55; }
.tk-training-plan-groups legend { float: none; width: auto; margin: 0; padding: 0 .35rem; font-size: .95rem; font-weight: 700; }
.tk-training-plan-groups [data-groups], .tk-attendance-list { display: grid; gap: .5rem; }
.tk-training-plan-modal { width: min(980px, calc(100vw - 2rem)); }
.tk-training-plan-modal .tk-assignment-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tk-training-plan-modal [data-name] { min-width: 0; }
.tk-training-plan-modal .tk-training-plan-groups { grid-column: 1 / -1; }
.tk-training-plan-modal .tk-training-plan-groups { overflow-x: auto; }
.tk-training-plan-modal [data-plan-slot-table] { margin: .5rem 0; }
.tk-training-plan-modal .tk-training-plan-group-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin:.5rem 0 .75rem; }
.tk-training-plan-grid-wrap tbody tr[data-plan-select] { cursor:pointer; }
.tk-training-plan-grid-wrap tbody tr[data-plan-select]:hover > * { background-color:rgba(63, 137, 232, .06); }
.tk-training-plan-grid-wrap .tk-member-list-grid > tbody > tr > td { vertical-align: top; }
.tk-training-plan-groups-cell > div + div { margin-top: .3rem; }

/* Gruppendetails verwenden dieselben kompakten Info-Cards wie die Mitgliederakte. */
[data-group-details-content] .tk-group-details-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:1rem; align-items:stretch; }
[data-group-details-content] .tk-group-details-section { display:contents; }
[data-group-details-content] .tk-group-detail-row { display:grid; grid-template-columns:fit-content(58%) minmax(0, 1fr); align-items:start; gap:.75rem; min-height:0; padding:.7rem 0; border-bottom:1px solid rgba(120, 161, 218, .18); }
[data-group-details-content] .tk-group-detail-row:last-child { border-bottom:0; }
[data-group-details-content] .tk-detail-label { display:block; min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#60738f; font-size:.95rem; font-weight:500; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
[data-group-details-content] .tk-detail-value { justify-self:end; min-width:0; max-width:100%; text-align:right; color:#334a68; font-size:.95rem; }
[data-group-details-content] .tk-members-badges-container { display:grid; grid-template-columns:repeat(auto-fit, minmax(148px, 1fr)); gap:0; margin-top:.85rem; border-top:1px solid rgba(120, 161, 218, .18); }
[data-group-details-content] .tk-member-badge { display:block; min-width:0; padding:.58rem .15rem; border-bottom:1px solid rgba(120, 161, 218, .18); color:#17355c; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
[data-group-details-content] .tk-member-role { color:#60738f; }
[data-group-details-content] .tk-group-details-block:has(.tk-count-badge) > .tk-group-detail-row { min-height:0; padding:0; border:0; }
[data-group-details-content] .tk-group-details-block:has(.tk-count-badge) > .tk-group-detail-row .tk-detail-label { display:none; }
[data-group-details-content] .tk-group-details-block:has(.tk-count-badge) > .tk-group-detail-row .tk-count-badge { position:absolute; top:1rem; right:1.05rem; }
[data-group-details-content] .tk-group-details-block:has(.tk-count-badge) .tk-detail-empty { margin-top:.85rem; }
[data-group-details-content] .tk-training-times-table-wrap { width:100%; max-width:100%; overflow-x:auto; border:1px solid rgba(120, 161, 218, .24); border-radius:14px; }
[data-group-details-content] .tk-training-times-table { min-width:360px; table-layout:auto; }
[data-group-details-content] .tk-training-times-table :is(th, td) { vertical-align:middle; white-space:normal; overflow-wrap:anywhere; }
[data-group-details-content] .tk-training-times-table th { white-space:nowrap; }
[data-group-details-content] .tk-training-times-table td:last-child { white-space:nowrap; }
.tk-member-autocomplete { position:relative; }
.tk-member-autocomplete-list { position:absolute; z-index:20; top:calc(100% + .3rem); right:0; left:0; max-height:15rem; overflow-y:auto; border:1px solid rgba(107, 159, 228, .42); border-radius:14px; background:#fff; box-shadow:0 14px 28px -18px rgba(23, 61, 107, .38); }
.tk-member-autocomplete-option { display:block; width:100%; padding:.65rem .8rem; border:0; border-bottom:1px solid rgba(120, 161, 218, .16); background:transparent; color:#17355c; text-align:left; }
.tk-member-autocomplete-option:last-child { border-bottom:0; }
.tk-member-autocomplete-option[aria-selected="true"], .tk-member-autocomplete-option:hover { background:#edf5ff; color:#0b5fc5; }
.tk-group-members-editor { position:relative; display:grid; gap:.7rem; }
.tk-group-members-search-results { position:absolute; z-index:20; top:5.2rem; right:0; left:0; max-height:15rem; overflow-y:auto; border:1px solid rgba(107, 159, 228, .42); border-radius:14px; background:#fff; box-shadow:0 14px 28px -18px rgba(23, 61, 107, .38); }
.tk-group-selected-members { display:grid; gap:.45rem; }
.tk-group-selected-member { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.5rem .65rem .5rem .8rem; border:1px solid rgba(120, 161, 218, .22); border-radius:12px; background:#f8fbff; color:#17355c; }
.tk-group-selected-member > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tk-plan-add-group-btn { width:auto; min-width:0; height:42px; padding:0 .9rem; display:inline-flex; align-items:center; gap:.45rem; white-space:nowrap; }
.tk-plan-add-group-btn .tk-season-icon-image { width:18px; height:18px; flex:0 0 18px; }
.tk-training-plan-modal .tk-training-plan-groups { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; column-gap:.75rem; }
.tk-training-plan-modal .tk-training-plan-groups > legend, .tk-training-plan-modal .tk-training-plan-groups > [data-plan-slot-table] { grid-column:1 / -1; }
.tk-training-plan-modal .tk-training-plan-group-actions { grid-column:2; grid-row:3; justify-self:end; margin:.5rem 0; }
.tk-training-plan-modal .tk-training-plan-groups > .form-check:has([data-plan-rotate]) { grid-column:1; grid-row:3; justify-self:start; margin:0; }
@media (min-width: 768px) { .tk-training-plan-modal .tk-assignment-fields { grid-template-columns:minmax(220px, 2fr) repeat(3, minmax(135px, 1fr)); } .tk-training-plan-modal label:has([data-name]) { grid-column:span 3; } .tk-training-plan-modal label:has([data-department]) { grid-column:span 1; } .tk-training-plan-modal label:has([data-trainer]) { grid-column:1; } }
@media (max-width: 520px) { .tk-training-plan-modal .tk-training-plan-groups { grid-template-columns:minmax(0, 1fr); } .tk-training-plan-modal .tk-training-plan-group-actions, .tk-training-plan-modal .tk-training-plan-groups > .form-check:has([data-plan-rotate]) { grid-column:1; grid-row:auto; justify-self:start; } }
@media (max-width: 520px) { [data-group-details-content] .tk-group-details-grid { grid-template-columns:minmax(0, 1fr); } }
.tk-training-plan-modal [data-plan-slot-table] :is(th, td) { vertical-align: middle; }
.tk-training-plan-modal [data-plan-slot-table] td:first-child { width: 4rem; text-align: center; }
.tk-training-plan-modal [data-plan-slot-table] td:last-child { width: 3.5rem; }
@media (min-width: 768px) { .tk-training-plan-modal label:has([data-name]) { grid-column: span 3; } .tk-training-plan-modal label:has([data-department]) { grid-column: span 1; } .tk-training-plan-modal label:has([data-trainer]) { grid-column: 1 / span 2; } }
@media (min-width: 768px) { .tk-training-plan-modal label:has([data-trainer]) { grid-column:1; } }
.tk-attendance-session-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.tk-attendance-session-list .tk-admin-chip { border: 1px solid rgba(120, 161, 218, .35); cursor: pointer; }
.tk-trainer-member-info-modal { position: relative; width: min(1480px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.tk-trainer-member-info-modal .tk-member-record-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tk-trainer-member-info-modal .tk-widget-kicker { display: none; }
@media (max-width: 1180px) { .tk-trainer-member-info-modal .tk-member-record-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tk-trainer-member-info-modal { width: calc(100vw - 1rem); padding: 1rem; } .tk-trainer-member-info-modal .tk-member-record-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tk-statutes-hero { background: linear-gradient(135deg, #f0f4ff 0%, #e8f1ff 100%); }
.tk-statutes-card { max-width: 900px; margin: 0 auto; padding: clamp(1.35rem, 4vw, 3.5rem); color: #1e293b; }
.tk-statutes-document-title { margin-bottom: 2.5rem; text-align: center; }
.tk-statutes-document-title p { margin: 0; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.tk-statutes-document-title h2 { margin-top: .35rem; }
.tk-statutes-card section { padding: 1.35rem 0; border-top: 1px solid rgba(148, 163, 184, .28); }
.tk-statutes-card h3 { margin-bottom: .8rem; color: #0f172a; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.tk-statutes-card p, .tk-statutes-card li { line-height: 1.72; }
.tk-statutes-card ol, .tk-statutes-card ul { display: grid; gap: .55rem; padding-left: 1.55rem; }
.tk-statutes-card ol ol, .tk-statutes-card ol ul { margin-top: .55rem; }
.tk-statutes-document-footer { margin-top: 1.5rem; padding: 1.25rem; border-radius: .9rem; background: #f8fafc; }
.tk-statutes-actions { position: sticky; bottom: 1rem; z-index: 5; display: flex; justify-content: center; margin: 1.5rem auto 0; }
.tk-statutes-actions .btn { min-width: 12rem; box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .2); }
.tk-privacy-card h2 { margin-bottom: .8rem; color: #0f172a; font-size: clamp(1.12rem, 2vw, 1.34rem); }
.tk-privacy-card address { padding: 1rem 1.15rem; border-left: .25rem solid var(--bs-primary); border-radius: 0 .65rem .65rem 0; background: #f8fafc; font-style: normal; line-height: 1.7; }
.tk-privacy-objection { margin-top: .5rem; padding-inline: 1.15rem !important; border: 1px solid rgba(37, 99, 235, .22) !important; border-radius: .9rem; background: rgba(239, 246, 255, .72); }
/* Hall rental area multi-selection */
.tk-hall-area-options-label { display: block; color: #17324f; font-size: 1.1rem; font-weight: 700; }
.tk-hall-area-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .65rem; }
.tk-hall-area-option { display: grid; grid-template-columns: auto .8rem minmax(0, 1fr); align-items: start; gap: .5rem; padding: .75rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .75rem; cursor: pointer; text-align: left; }
.tk-hall-area-option-content { display: grid; min-width: 0; gap: .15rem; text-align: left; }
.tk-hall-area-option .form-check-input { margin: .15rem 0 0; }
.tk-hall-area-option [data-hall-area-color] { width: .8rem; height: .8rem; margin-top: .25rem; border-radius: 50%; background: #94a3b8; }
.tk-hall-area-option strong, .tk-hall-area-option small { display: block; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.tk-hall-area-option small { color: #64748b; }

[data-hall-rental-root] .fc-button.tk-user-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden;
}

[data-hall-rental-root] .fc-button.tk-user-icon-btn .tk-user-icon-image {
  display: block;
  margin: 0;
  flex: 0 0 auto;
}

[data-hall-rental-root] .fc-button.tk-user-icon-btn::before,
[data-hall-rental-root] .fc-button.tk-user-icon-btn::after,
[data-hall-rental-root] .fc-button.tk-user-icon-btn .fc-icon {
  display: none !important;
  content: none !important;
}

.tk-hall-price-summary {
  padding: 1rem;
  border: 1px solid rgba(141, 173, 220, 0.28);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.78);
}

.tk-hall-price-summary h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.tk-hall-price-line,
.tk-hall-price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
}

.tk-hall-price-line + .tk-hall-price-line {
  border-top: 1px solid rgba(141, 173, 220, 0.18);
}

.tk-hall-price-line span {
  text-align: right;
  color: #486587;
}

.tk-hall-price-total {
  margin-top: 0.7rem;
  padding-top: 0.85rem;
  border-top: 2px solid rgba(74, 135, 221, 0.3);
  font-size: 1.05rem;
}

.tk-hall-price-total strong {
  color: var(--brand-blue-dark);
  font-size: 1.2rem;
}

.tk-reservation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  width:100%;
  padding:0 .6rem;
  border-bottom:1px solid rgba(163, 190, 224, .72);
}

.tk-reservation-tab {
  display: inline-flex;
  align-items: center;
  gap:.5rem;
  margin-bottom:-1px;
  min-height:0;
  padding:.6rem .9rem .55rem;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:.72rem .72rem 0 0;
  color:#526d91;
  background:rgba(232, 240, 250, .72);
  text-decoration: none;
  font-weight: 700;
  font-size:.9rem;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tk-reservation-tab-icon { width:1.05rem; height:1.05rem; }
.tk-reservation-tab:hover,
.tk-reservation-tab:focus-visible {
  color:#19589d;
  border-color:rgba(105, 158, 228, .42);
  border-bottom-color:rgba(221, 235, 253, .88);
  background:rgba(221, 235, 253, .88);
  box-shadow:inset 0 2px 0 rgba(87, 151, 229, .42);
}
.tk-reservation-tab.is-active {
  color:#0e4d92;
  border-color:rgba(82, 143, 221, .52);
  border-bottom-color:#f8fbff;
  background:#f8fbff;
  box-shadow:inset 0 3px 0 #4e93e6;
}
/* Inventory hero image follows the existing admin card language. */
.tk-admin-hero-with-image { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; }
.tk-admin-hero-image { position:relative; width:180px; min-width:180px; height:96px; overflow:hidden; border-radius:.75rem; }
.tk-admin-hero-image > img, .tk-admin-hero-image-placeholder { width:100%; height:100%; object-fit:cover; }
.tk-admin-hero-image-placeholder { display:grid; place-items:center; background:var(--tk-surface-muted, #eef1f4); }
.tk-admin-hero-image-placeholder img { width:42px; opacity:.55; }
.tk-admin-hero-image > label { position:absolute; right:.5rem; bottom:.5rem; cursor:pointer; }
.tk-admin-hero-with-image { flex-direction: row-reverse; }
.tk-admin-hero-with-image { padding: 1.5rem 1.65rem; border-radius: 30px; border: 1px solid rgba(99, 149, 213, 0.24); background: linear-gradient(180deg, rgba(234, 245, 255, 0.98), rgba(247, 251, 255, 0.96)); }
.tk-admin-hero-with-image { position:relative; }
.tk-admin-hero-with-image > label { position:absolute; right:1.65rem; bottom:1.5rem; z-index:2; cursor:pointer; }
.tk-admin-hero-with-image > div:first-child { flex: 1; }
.tk-admin-hero-with-image .tk-admin-hero-image { flex: 0 0 120px; width:120px; height:96px; background:transparent; border-radius:10px; }
.tk-admin-hero-with-image .tk-admin-hero-image > img { object-fit:contain; }
.tk-admin-hero-with-image .tk-admin-hero-image[hidden] { display:none; }
.tk-admin-hero-with-image .tk-dashboard-title { margin-bottom:.35rem; }
.tk-admin-hero-with-image .tk-dashboard-copy { margin-bottom:0; }
.tk-admin-page .tk-admin-hero-with-image .tk-dashboard-title { font-size:2rem !important; font-weight:700 !important; color:#212529 !important; margin:1rem 0 .5rem !important; }
.tk-admin-page .tk-admin-hero-with-image .tk-dashboard-copy { font-size:1rem !important; color:#495057 !important; line-height:1.5 !important; max-width:600px; margin:1rem auto 0 !important; }
.tk-admin-page .tk-admin-hero-with-image { padding:1.25rem 1.65rem; gap:3.5rem; }
.tk-admin-page .tk-admin-hero-with-image .tk-dashboard-title { font-size:2.5rem !important; color:#004b87 !important; margin:0 0 .35rem !important; }
.tk-admin-page .tk-admin-hero-with-image .tk-dashboard-copy { color:#365b7d !important; margin:0 !important; }
.tk-admin-page .tk-admin-hero { position:relative; }
.tk-admin-page .tk-admin-hero .tk-dashboard-title { color:#004b87 !important; }
.tk-admin-page .tk-admin-hero > .tk-admin-hero-persisted-frame { order:-1; position:relative; width:120px; height:96px; flex:0 0 120px !important; min-width:120px; }
.tk-admin-page .tk-admin-hero > .tk-admin-hero-image-actions { flex:0 0 auto !important; }
.tk-admin-page .tk-admin-hero { gap:2rem; }
.tk-admin-page .tk-admin-hero { justify-content:flex-start; }
.tk-admin-page .tk-admin-hero > div:not(.tk-admin-hero-persisted-frame):not(.tk-admin-hero-image-actions):not(.tk-admin-hero-actions) { flex:1 1 auto; min-width:0; }
.tk-admin-page .tk-admin-hero > .tk-admin-hero-image-actions { margin-left:auto; }
/* Exact public membership-hero spacing and copy treatment for every admin hero. */
.tk-admin-page .tk-admin-hero { padding-left:2rem; }
.tk-admin-page .tk-admin-hero > .tk-admin-hero-persisted-frame { margin-right:0; }
.tk-admin-page .tk-admin-hero > .tk-admin-hero-persisted-frame + div { margin-left:0; }
.tk-admin-page .tk-admin-hero { gap:2.25rem; }
.tk-admin-page .tk-admin-hero .tk-dashboard-copy { font-size:1rem !important; color:#495057 !important; line-height:normal !important; margin:1rem auto 0 !important; }
.tk-admin-hero-persisted-image { width:120px; height:96px; object-fit:cover; border-radius:10px; display:block; background:rgba(13,110,253,.05); }
.tk-admin-hero-persisted-frame[hidden] { display:none; }
.tk-admin-hero-persisted-frame:not([hidden]) { display:block; }
.tk-admin-hero-image-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:.35rem; border-radius:10px; background:rgba(0, 57, 105, .48); opacity:0; pointer-events:none; transition:opacity .15s ease; }
.tk-admin-hero-image-overlay .tk-season-icon-btn { width:2rem; height:2rem; min-width:2rem; padding:.35rem; }
.tk-admin-hero-persisted-frame:hover .tk-admin-hero-image-overlay, .tk-admin-hero-persisted-frame:focus-within .tk-admin-hero-image-overlay { opacity:1; pointer-events:auto; }
.tk-admin-hero-image-actions { position:absolute; top:1.25rem; right:1.65rem; display:flex; gap:.5rem; align-items:center; }
.tk-admin-page .tk-admin-hero-actions { flex-direction:row; align-items:center; gap:.5rem; }

/* Keep the scoreboard's own add action and the generated hero-image action adjacent. */
.tk-admin-page.tk-game-scoreboard-page .tk-admin-hero > .tk-admin-hero-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin-left: auto !important;
}

.tk-admin-page.tk-game-scoreboard-page .tk-admin-hero > .tk-admin-hero-image-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

.tk-admin-hero-actions .tk-admin-hero-image-actions {
  display: flex;
  flex: 0 0 auto;
  position: static;
  top: auto;
  right: auto;
}

/* Spieleübersicht: volle Standard-Tabellenfläche; Details folgen darunter. */
.tk-game-overview-page .tk-game-overview-shell {
  grid-template-columns: minmax(0, 1fr);
}

.tk-game-overview-page .tk-game-overview-sidebar,
.tk-game-overview-page .tk-game-overview-detail {
  width: 100%;
}

.tk-game-overview-page .tk-game-overview-sidebar .tk-member-list-grid-wrap {
  width: 100%;
  overflow-x: auto;
}

.tk-game-overview-page .tk-game-overview-list {
  width: 100% !important;
  min-width: 760px;
}
.tk-game-overview-page .tk-game-overview-list tbody tr[data-game-item] { cursor: pointer; }
.tk-game-overview-page .tk-game-overview-list tbody tr.is-active td { background: rgba(228, 239, 255, 0.78); box-shadow: none; }
.tk-game-overview-page .tk-game-overview-list tbody tr:focus-visible { outline: 2px solid rgba(22, 93, 255, 0.42); outline-offset: -2px; }
.tk-game-overview-page [data-games-pagination] { justify-content: space-between; }

.tk-game-overview-panel-head { padding-right: 0; }
.tk-game-overview-panel-head .tk-admin-panel-head-actions { margin-left: auto; }

.tk-game-overview-filter-grid { grid-template-columns: minmax(16rem, 2fr) repeat(3, minmax(10rem, 1fr)); align-items: end; }
.tk-game-overview-list { display: table !important; gap: 0 !important; }
.tk-game-overview-list tbody { display: table-row-group; }
.tk-game-overview-list thead { display: table-header-group; }
.tk-game-overview-list tbody tr.tk-game-overview-item { display: table-row; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tk-game-overview-list tbody tr.tk-game-overview-item td { display: table-cell; }

@media (max-width: 991.98px) {
  .tk-game-overview-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .tk-game-overview-filter-grid { grid-template-columns: 1fr; }
}

.tk-game-scoreboard-shell [data-scoreboard-encounter-kicker] {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  padding: 0.5rem 0.9rem;
}

.tk-game-scoreboard-set-kicker {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  padding: 0.45rem 0.85rem;
}

.tk-game-scoreboard-player-list {
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 1100px) {
  .tk-game-scoreboard-page .tk-game-scoreboard-cards .tk-game-scoreboard-player-list {
    font-size: 1.1rem !important;
    line-height: 1.08;
  }

  .tk-game-scoreboard-page .tk-game-scoreboard-cards .tk-game-scoreboard-set-score-row {
    grid-template-columns: 3.8rem auto 3.8rem;
    gap: 0.35rem;
  }

  .tk-game-scoreboard-page .tk-game-scoreboard-cards .tk-game-scoreboard-set-score {
    grid-template-columns: 3.8rem;
    min-width: 3.8rem;
  }

  .tk-game-scoreboard-page .tk-game-scoreboard-cards .tk-game-scoreboard-set-chip {
    height: 1.8rem !important;
    min-height: 1.8rem !important;
    gap: 0;
    padding: 0.03rem 0.1rem;
  }

  .tk-game-scoreboard-page .tk-game-scoreboard-cards .tk-game-scoreboard-set-nav {
    grid-template-columns: repeat(auto-fit, minmax(4.4rem, 5.1rem));
    justify-content: space-between;
    gap: 0.5rem;
  }
}

.tk-admin-page .tk-admin-hero-image-actions { flex-direction:row; gap:.5rem; }
.tk-admin-page .tk-admin-hero > .tk-admin-hero-image-actions { margin-left:0; }
.tk-admin-hero-image-actions input { display:none; }

.tk-training-calendar-filter-row { display:grid; grid-template-columns:minmax(240px, 2fr) repeat(3, minmax(170px, 1fr)); gap:.8rem; align-items:end; }
.tk-training-calendar-filter-row > label { display:grid; gap:.3rem; color:#365b7d; font-size:.85rem; font-weight:700; }
.tk-training-calendar-filter-row .tk-user-search-wrap { min-width:0; }
.tk-calendar-combobox { position:relative; min-width:0; }
.tk-calendar-combobox .tk-member-search-results { width:100%; max-height:240px; overflow:auto; z-index:20; }
.tk-calendar-search-field { position:relative; }
.tk-calendar-filter-clear { position:absolute; z-index:2; top:50%; right:.45rem; width:1.45rem; height:1.45rem; padding:.18rem; border:0; border-radius:50%; background:transparent; opacity:0; transform:translateY(-50%); transition:opacity .15s ease, background .15s ease; }
.tk-calendar-filter-clear img { display:block; width:100%; height:100%; }
.tk-calendar-search-field .tk-calendar-filter-clear { right:.6rem; }
.tk-calendar-combobox:focus-within .tk-calendar-filter-clear, .tk-calendar-search-field:focus-within .tk-calendar-filter-clear, .tk-calendar-filter-clear.is-visible { opacity:1; }
.tk-calendar-filter-clear:hover { background:rgba(0, 75, 135, .1); }
.tk-calendar-combobox .form-control, .tk-calendar-search-field .form-control { padding-right:2.2rem; }
.tk-training-calendar-view-toggle { display:flex; gap:.35rem; }
.tk-training-calendar-surface { position:relative; min-height:560px; padding:0 .2rem 2rem; }
.tk-training-calendar-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0 0 1rem; }
.tk-training-calendar-nav, .tk-training-calendar-toolbar-tools { display:flex; align-items:center; gap:.65rem; }
.tk-training-calendar-toolbar-tools { align-items:flex-end; justify-content:flex-end; flex-wrap:wrap; }
.tk-training-calendar-toolbar-tools > label { display:grid; gap:.2rem; color:#365b7d; font-size:.78rem; font-weight:700; }
.tk-training-calendar-toolbar-tools .form-control { min-width:132px; }
.tk-training-calendar-toolbar h2 { min-width:250px; margin:0; color:#004b87; font-size:1.25rem; font-weight:700; text-align:center; text-transform:capitalize; }
.tk-training-calendar-page .fc { --fc-border-color:rgba(99,149,213,.24); --fc-page-bg-color:transparent; --fc-today-bg-color:rgba(150, 204, 255, .16); color:#274866; }
.tk-training-calendar-page .fc-theme-standard td, .tk-training-calendar-page .fc-theme-standard th { border-color:rgba(99,149,213,.24); }
.tk-training-calendar-page .fc .fc-col-header-cell-cushion, .tk-training-calendar-page .fc .fc-daygrid-day-number { color:#0e4d92; text-decoration:none; font-weight:700; padding:.55rem; }
.tk-training-calendar-page .fc .fc-timegrid-slot-label-cushion { color:#6b839a; font-size:.8rem; }
.tk-training-calendar-page .fc-event.tk-training-calendar-event { border:1px solid #b7e3dc; border-radius:.45rem; padding:.15rem .35rem; background:linear-gradient(135deg, #effcf9, #dff7f1); box-shadow:0 2px 6px rgba(0,86,92,.12); color:#172c37 !important; cursor:default; }
.tk-training-calendar-page .fc-event.tk-training-calendar-event .fc-event-main, .tk-training-calendar-page .fc-event.tk-training-calendar-event .fc-event-main-frame, .tk-training-calendar-page .fc-event.tk-training-calendar-event .fc-event-time, .tk-training-calendar-page .fc-event.tk-training-calendar-event .fc-event-title, .tk-training-calendar-page .fc-event.tk-training-calendar-event .fc-daygrid-event-dot { color:#172c37 !important; border-color:#0c847c !important; }
.tk-training-calendar-page .fc-event.tk-training-calendar-event.is-cancelled { background:linear-gradient(135deg, #a23b3b, #d45c5c); }
.tk-training-calendar-info-card { position:fixed; z-index:1080; width:min(360px, calc(100vw - 24px)); max-height:calc(100vh - 24px); overflow-y:auto; padding:1rem 1.1rem; border:1px solid rgba(99,149,213,.3); border-radius:.85rem; background:#fff; box-shadow:0 14px 35px rgba(18,65,109,.22); pointer-events:none; }
.tk-training-calendar-info-card h3 { margin:.2rem 0 .8rem; color:#004b87; font-size:1.05rem; }
.tk-training-calendar-info-card dl { display:grid; gap:.45rem; margin:0; }

/* Interactive events in the member portal calendar use the shared calendar affordance. */
[data-member-calendar-root] .fc .fc-event {
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

[data-member-calendar-root] .fc .fc-event:hover {
  background: #facc15 !important;
  border-color: #ca8a04 !important;
}

[data-member-calendar-root] .fc .fc-event:hover .fc-event-main,
[data-member-calendar-root] .fc .fc-event:hover .fc-event-title,
[data-member-calendar-root] .fc .fc-event:hover .fc-event-time {
  color: #000 !important;
}

.tk-member-calendar-hover-card {
  position: fixed;
  z-index: 1080;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 1rem;
  pointer-events: none;
  box-shadow: 0 16px 36px rgba(23, 47, 104, 0.24);
}

.tk-member-calendar-hover-card h3 { margin-bottom: .2rem; font-size: 1rem; }
.tk-member-calendar-hover-card__type { margin: 0 0 .75rem; color: #52759e; font-size: .82rem; font-weight: 700; }

.tk-member-calendar-title { font-size: 1.35rem; font-weight: 800; }
.tk-member-calendar-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tk-member-calendar-period { grid-column: 2; margin: 0; color: #004b87; font-size: 1.5rem; font-weight: 800; text-align: center; }
.tk-member-calendar-toolbar-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tk-member-calendar-head .tk-member-calendar-toolbar-actions { grid-column: 3; justify-self: end; }
.tk-member-calendar-toolbar-actions .tk-season-icon-btn img { width: 1.15rem; height: 1.15rem; }
.tk-game-detail-copy-value { display: inline-flex; align-items: center; justify-content: flex-end; gap: .4rem; min-width: 0; }
.tk-game-detail-copy-btn { width: 1.75rem; height: 1.75rem; min-width: 1.75rem; padding: .35rem; }
.tk-game-detail-copy-btn img { width: .85rem; height: .85rem; }

@media (max-width: 767.98px) {
  .tk-member-calendar-head { grid-template-columns: 1fr auto; }
  .tk-member-calendar-period { grid-column: 1 / -1; grid-row: 2; }
  .tk-member-calendar-head .tk-member-calendar-toolbar-actions { grid-column: 2; }
}

.tk-game-participation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
}

.tk-game-participation-badge img { width: 1rem; height: 1rem; filter: brightness(0) invert(1); }
.tk-game-participation-badge.is-accepted { background: #198754; }
.tk-game-participation-badge.is-declined { background: #dc3545; }

.tk-game-lineup-position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: #dceeff;
  color: #1a5d9f;
  font-weight: 700;
}
.tk-training-calendar-info-card dl div { display:grid; grid-template-columns:105px 1fr; gap:.5rem; }
.tk-training-calendar-info-card dt { color:#668198; font-size:.8rem; font-weight:600; }
.tk-training-calendar-info-card dd { margin:0; color:#243f58; font-size:.86rem; }
@media (max-width: 1100px) { .tk-training-calendar-filter-row { grid-template-columns:repeat(2, minmax(180px, 1fr)); } .tk-training-calendar-toolbar { align-items:flex-start; flex-direction:column; } .tk-training-calendar-toolbar-tools { width:100%; } }
@media (max-width: 700px) { .tk-training-calendar-filter-row { grid-template-columns:1fr; } .tk-training-calendar-toolbar h2 { min-width:0; font-size:1.05rem; } .tk-training-calendar-nav { width:100%; justify-content:center; } .tk-training-calendar-toolbar-tools { justify-content:center; } .tk-training-calendar-surface { overflow-x:auto; } .tk-training-calendar-page .fc { min-width:680px; } }
.tk-inventory-actions-cell { text-align:right; white-space:nowrap; }
.tk-assignment-stock-error { margin:0 auto 0 0; color:#d92036; font-size:0.9rem; font-weight:600; text-align:left; }
.tk-assignment-modal [data-save-tooltip] { display:inline-flex; cursor:pointer; }
.tk-assignment-modal [data-save] { cursor:pointer; }
.tk-inventory-swap-section-title { margin:1rem 0 .65rem; color:#26466f; font-size:1rem; font-weight:700; }
.tk-inventory-swap-section-title:first-of-type { margin-top:0; }
.tk-inventory-swap-divider { margin:1.25rem 0; border:0; border-top:1px solid #dce7f5; opacity:1; }
.tk-inventory-swap-new-fields { grid-template-columns:minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(5.25rem, .8fr) 5.25rem; }
.tk-inventory-swap-stock-field .form-control { text-align:center; }
.tk-inventory-page [data-jersey-assignments-card] .form-check-input { width:1rem !important; min-width:1rem !important; height:1rem; margin:0; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(7),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(7) { text-align:center; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(10),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(10) { text-align:left !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(11),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(11) { text-align:right; }
.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-action-menu { margin-left:auto; }
.tk-inventory-page [data-jersey-assignments-card] { position:relative; overflow:visible !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(1),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(1) { width:24% !important; min-width:13rem !important; }
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(1) { white-space:nowrap; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(11),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(11) { width:3.5rem !important; min-width:3.5rem !important; }
.tk-assignment-action-menu { position:relative; display:inline-flex; justify-content:flex-end; }
.tk-assignment-action-menu-list { position:absolute; z-index:1050; top:100%; right:0; display:none; min-width:10rem; padding:.35rem; border:1px solid #dce7f5; border-radius:.5rem; background:#fff; box-shadow:0 .5rem 1.25rem rgba(33,70,120,.18); }
.tk-assignment-action-menu.is-open .tk-assignment-action-menu-list { position:fixed; z-index:2000; }
.tk-assignment-action-menu:not(.is-manually-closed):hover .tk-assignment-action-menu-list, .tk-assignment-action-menu:not(.is-manually-closed):focus-within .tk-assignment-action-menu-list, .tk-assignment-action-menu.is-open:not(.is-manually-closed) .tk-assignment-action-menu-list { display:grid; gap:.2rem; }
.tk-assignment-action-menu-item { display:flex; align-items:center; gap:.5rem; width:100%; padding:.45rem .6rem; border:0; border-radius:.35rem; background:transparent; color:#26466f; text-align:left; white-space:nowrap; }
.tk-assignment-action-menu-item:hover, .tk-assignment-action-menu-item:focus-visible { background:#edf5ff; color:#165dff; }
.tk-assignment-action-menu-item img { width:1rem; height:1rem; }
.tk-inventory-actions-cell .tk-season-icon-btn + .tk-season-icon-btn { margin-left:.5rem; }
.tk-inventory-actions-cell .tk-season-icon-btn { vertical-align:middle; }
.tk-inventory-reserve-input { width:5rem; min-width:5rem; }
.tk-inventory-stock-form { display:flex; flex-wrap:wrap; align-items:flex-end; }
.tk-inventory-assign-form { display:flex; flex-wrap:wrap; align-items:flex-end; }
.tk-inventory-assign-form > [class*="col-"] { flex:1 1 0; width:auto; min-width:10rem; }
.tk-inventory-assign-form > .col-auto { flex:0 0 auto; min-width:0; }
.tk-inventory-page [data-inventory-panel="jerseys"] .table { width:100%; table-layout:fixed; }
.tk-inventory-page [data-inventory-panel="jerseys"] .table th:nth-child(1), .tk-inventory-page [data-inventory-panel="jerseys"] .table td:nth-child(1) { width:35%; }
.tk-inventory-page [data-inventory-panel="jerseys"] .table th:nth-child(2), .tk-inventory-page [data-inventory-panel="jerseys"] .table td:nth-child(2) { width:25%; }
.tk-inventory-page [data-inventory-panel="jerseys"] .table th:nth-child(3), .tk-inventory-page [data-inventory-panel="jerseys"] .table td:nth-child(3) { width:25%; }
.tk-inventory-page [data-inventory-panel="jerseys"] .table th:nth-child(4), .tk-inventory-page [data-inventory-panel="jerseys"] .table td:nth-child(4) { width:15%; }
.tk-inventory-page [data-inventory-panel="jerseys"] .table input, .tk-inventory-page [data-inventory-panel="jerseys"] .table select { width:100%; min-width:0; }
.tk-inventory-page [data-inventory-panel="jerseys"] tbody tr { transition:background-color .15s ease, box-shadow .15s ease; cursor:pointer; }
.tk-inventory-page [data-inventory-panel="jerseys"] tbody tr:hover > * { background-color:rgba(23,104,194,.08) !important; }
.tk-inventory-page [data-inventory-panel="jerseys"] tbody tr.is-selected > * { background-color:rgba(23,104,194,.15) !important; box-shadow:inset 0 0 0 9999px rgba(23,104,194,.15); }
.tk-inventory-page [data-inventory-panel="jerseys"] tbody tr.is-selected > :first-child { box-shadow:inset 3px 0 0 #1768c2, inset 0 0 0 9999px rgba(23,104,194,.15); }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row { display:block; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > [class*="col-"] { width:100%; max-width:100%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > [class*="col-"] + [class*="col-"] { margin-top:1.5rem; }
.tk-inventory-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.tk-inventory-page [data-jersey-assignments-card] { overflow-x:auto; }
.tk-inventory-page [data-jersey-assignments-card] table { width:100%; min-width:760px; table-layout:auto; }
.tk-inventory-page [data-jersey-assignments-card] th, .tk-inventory-page [data-jersey-assignments-card] td { overflow:visible; text-overflow:clip; white-space:nowrap; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(1) { width:30%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(2) { width:22%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(3) { width:14%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(4) { width:14%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(5) { width:20%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(1) { width:27%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(2) { width:18%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(3) { width:10%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(4) { width:10%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(5) { width:15%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(6) { width:12%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(7) { width:8%; }
.tk-inventory-page [data-jersey-assignments-card] th:last-child, .tk-inventory-page [data-jersey-assignments-card] td:last-child { width:110px; min-width:110px; white-space:nowrap; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(1) { width:18%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(2) { width:20%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(3) { width:8%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(4) { width:8%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(5) { width:25%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(6) { width:20%; }
.tk-inventory-page [data-jersey-assignments-card] th:nth-child(7) { width:12%; }
.tk-inventory-page [data-jersey-assignments-card] td:last-child .tk-season-icon-btn + .tk-season-icon-btn { margin-left:.4rem; }
.tk-inventory-image-dropzone .tk-upload-dropzone-stage { min-height:190px; }
.tk-inventory-image-dropzone .tk-upload-dropzone-preview { min-height:190px; max-height:260px; object-fit:contain; background:#fff; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table { width:100%; table-layout:fixed; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th,
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td { overflow:hidden; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(1),
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(1) { width:56px; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(2) { width:38%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(3) { width:16%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(4) { width:18%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(5),
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(5) { width:64px; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(2) { width:30%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(3) { width:12%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(4) { width:14%; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(5),
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(5) { width:24%; min-width:10rem; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(6),
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(6) { width:7rem; text-align:center; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table [data-stock-return-required] { width:1.1rem; height:1.1rem; margin:0; }
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(7),
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(7) { width:64px; text-align:right; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(3),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(3) { width:18%; min-width:10rem; }
.tk-inventory-page [data-jersey-assignments-card] table { table-layout:fixed; width:100%; }
.tk-inventory-page [data-jersey-assignments-card] table th { white-space:normal; overflow-wrap:anywhere; padding-inline:.45rem; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(1) { width:16%; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(2) { width:20%; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(3),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(3) { width:15%; min-width:0; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(4) { width:8%; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(5) { width:8%; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(6) { width:13%; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(7) { width:12%; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(10) { width:8%; }
.tk-inventory-page [data-jersey-assignments-card] { overflow-x:auto; }
.tk-inventory-page [data-jersey-assignments-card] table { width:max-content; min-width:100%; table-layout:auto; }
.tk-inventory-page [data-jersey-assignments-card] table th { width:max-content !important; white-space:nowrap; overflow:hidden; overflow-wrap:normal; }
.tk-inventory-page [data-jersey-assignments-card] table td { white-space:normal; overflow-wrap:anywhere; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(10),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(10) { width:8.5rem !important; min-width:8.5rem; text-align:right; white-space:nowrap; }
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(10) .tk-season-icon-btn { margin-left:.25rem; }
.tk-inventory-page [data-jersey-assignments-card] table { width:max-content; min-width:100%; table-layout:auto; }
.tk-inventory-page [data-jersey-assignments-card] table th,
.tk-inventory-page [data-jersey-assignments-card] table td { width:max-content !important; min-width:0 !important; overflow:visible !important; overflow-wrap:normal !important; word-break:normal; white-space:nowrap !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(1),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(1) { min-width:11rem !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(2),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(2) { min-width:11rem !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(3),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(3) { min-width:8rem !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(6),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(6) { min-width:8.5rem !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(7),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(7) { min-width:10.5rem !important; text-align:center; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(9),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(9),
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(10),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(10) { min-width:8rem !important; text-align:left !important; }
.tk-inventory-page [data-jersey-assignments-card] table th:nth-child(11),
.tk-inventory-page [data-jersey-assignments-card] table td:nth-child(11) { width:3.5rem !important; min-width:3.5rem !important; text-align:right; }
.tk-inventory-page .tk-user-pagination-bar {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
}
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table {
  width: 100%;
  min-width: 42rem;
  margin: 0;
  table-layout: fixed;
}
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap .tk-inventory-actions-cell {
  text-align: left;
}
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table .form-control,
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table .form-select { width:100%; min-width:0; }
.tk-inventory-image-cell { width:56px; min-width:56px; padding-right:.4rem !important; }
.tk-inventory-image-cell > .text-muted { display:none; }
.tk-inventory-image-trigger { display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid rgba(128,174,233,.3); border-radius:8px; background:#f8fbff; overflow:hidden; }
.tk-inventory-image-trigger img { width:100%; height:100%; object-fit:contain; }
.tk-inventory-image-upload { display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px dashed rgba(128,174,233,.6); border-radius:8px; background:#f8fbff; }
.tk-inventory-image-upload:hover { border-color:#1768c2; background:#eef5fd; }
.tk-inventory-image-upload img { width:18px; height:18px; }
.tk-inventory-image-lightbox .tk-game-create-modal { width:min(92vw,1000px); }
.tk-inventory-lightbox-image { display:block; width:100%; max-height:78vh; object-fit:contain; background:#fff; border-radius:12px; }
.tk-inventory-panel-heading h2 { margin:0; }
.tk-inventory-panel-actions { display:flex; align-items:center; gap:.5rem; }
.tk-inventory-filter-row { display:grid; grid-template-columns:minmax(0,2fr) minmax(9rem,1fr) auto; gap:.75rem; margin-bottom:1rem; }
.tk-inventory-filter-row [data-inventory-page-size] { width:150px; max-width:150px; justify-self:end; }
.tk-assignment-filter-row { grid-template-columns:minmax(13rem,2fr) repeat(4, minmax(8rem,1fr)) repeat(2, minmax(9rem,1fr)) minmax(9rem,auto); align-items:end; }
.tk-assignment-filter-row [data-assignment-page-size] { width:150px; max-width:150px; justify-self:end; }
/* Der für den Select-Pfeil vorgesehene Innenabstand steht hier dem Wert zur Verfügung. */
.tk-inventory-page :is(table, .tk-inventory-filter-row, .tk-assignment-filter-row) .form-select { padding-right:1rem; }
.tk-inventory-stock-modal-form { margin:0; }
.tk-inventory-modal-copy { margin:-.35rem 0 1rem; color:#54749a; }
.tk-inventory-stock-modal-form .row { row-gap:1rem; }
.tk-inventory-stock-modal-form .col-md-4 { width:100%; flex:0 0 100%; }
.tk-inventory-stock-modal-form .col-md-3 { width:33.333%; flex:0 0 33.333%; }
.tk-inventory-stock-modal-form .col-auto { width:100%; flex:0 0 100%; }
.tk-game-create-modal-body .tk-inventory-stock-modal-form .col-auto { display:none !important; }
@media (max-width:900px) { .tk-assignment-filter-row { grid-template-columns:repeat(2, minmax(0, 1fr)); } .tk-assignment-filter-row [data-assignment-page-size] { justify-self:start; } }
@media (max-width:576px) { .tk-inventory-filter-row { grid-template-columns:1fr; } }
.tk-assignment-fields, .tk-assignment-add-row { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:.75rem; align-items:end; }
.tk-assignment-fields > .form-check { display:flex; align-self:end; align-items:center; height:var(--form-control-height); min-height:var(--form-control-height); gap:.5rem; margin:0 0 .25rem; padding-left:0; }
.tk-assignment-fields > .form-check .form-check-input { flex:0 0 auto; margin:0; }
.tk-assignment-fields > .form-check .form-check-label { margin:0; }
.tk-assignment-modal table th:nth-child(5),
.tk-assignment-modal table td:nth-child(5) { width:6.5rem; min-width:6.5rem; }
.tk-assignment-modal table td:nth-child(5) .form-control { width:100%; min-width:0; }
.tk-assignment-modal table { width:100%; max-width:100%; table-layout:fixed; }
.tk-assignment-modal table th:nth-child(6),
.tk-assignment-modal table td:nth-child(6) { display:none; }
.tk-assignment-modal table th { white-space:normal; overflow-wrap:anywhere; padding-inline:.35rem; }
.tk-assignment-modal table { table-layout:auto; }
.tk-assignment-modal table th:nth-child(4),
.tk-assignment-modal table td:nth-child(4),
.tk-assignment-modal table th:nth-child(5),
.tk-assignment-modal table td:nth-child(5),
.tk-assignment-modal table th:nth-child(7),
.tk-assignment-modal table td:nth-child(7) { width:1%; min-width:0; white-space:nowrap; }
.tk-assignment-modal table td:nth-child(5) .form-control { width:5.5rem; }
.tk-assignment-return-pending > td { background:rgba(220, 53, 69, .12) !important; }
.tk-assignment-return-pending > td:first-child { box-shadow:inset 3px 0 0 #dc3545; }
.tk-assignment-add-row { grid-template-columns:1fr 110px; margin:.75rem 0; }
.tk-assignment-global-note { position:relative; padding-right:3.25rem; }
.tk-assignment-global-note > .tk-season-icon-btn { position:absolute; right:0; bottom:.05rem; }
.tk-assignment-global-note > .form-control { padding-right:2.4rem; }
.tk-assignment-note-clear { position:absolute; right:3.55rem; bottom:.3rem; display:grid; place-items:center; width:1.8rem; height:1.8rem; padding:0; border:0; border-radius:50%; background:transparent; }
.tk-assignment-note-clear:hover { background:#eef5fd; }
.tk-assignment-note-clear img { width:1rem; height:1rem; }
.tk-inventory-stock-info { margin:.5rem 0 1rem; padding:.65rem .8rem; border-radius:10px; background:#f1f6fd; color:#36577f; font-weight:600; }
.tk-assignment-error { color:#d93025; font-weight:600; }
.tk-assignment-modal tr.is-invalid { background:#fff0f0; }
.tk-member-picker { position:relative; }
.tk-member-search-results { position:absolute; z-index:2; left:0; right:0; top:100%; max-height:220px; overflow:auto; padding:.25rem; border:1px solid #c7d9f2; border-radius:10px; background:#fff; box-shadow:0 10px 25px rgba(8,28,58,.16); }
.tk-member-search-result { display:block; width:100%; padding:.55rem .7rem; border:0; border-radius:7px; background:#fff; color:#173d6b; text-align:left; }
.tk-member-search-result:hover { background:#eef5fd; }
.tk-member-search-result.is-active { background:#e2efff; color:#0d4fd6; }
.tk-batch-name-input-shell { position:relative; }
.tk-batch-name-input-shell [data-batch-name] { padding-right:2.7rem; }
.tk-batch-name-clear { position:absolute; top:50%; right:.35rem; display:grid; place-items:center; width:2rem; height:2rem; padding:0; transform:translateY(-50%); border:0; border-radius:50%; background:transparent; }
.tk-batch-name-clear:hover, .tk-batch-name-clear:focus-visible { background:#eef5fd; }
.tk-batch-name-clear img { width:1rem; height:1rem; }
.tk-tournament-participant-search .tk-member-picker { width:100%; }
.tk-tournament-participant-fields { display:flex; align-items:stretch; gap:.6rem; width:100%; }
.tk-tournament-participant-input-shell { position:relative; overflow:hidden; border-radius:.375rem; }
.tk-tournament-participant-input-shell { flex:1 1 auto; }
.tk-tournament-club-input-shell { flex:0 1 220px; }
.tk-tournament-qttr-input-shell { position:relative; flex:0 0 150px; overflow:hidden; border-radius:.375rem; }
.tk-tournament-entry-fee-input-shell { flex:0 0 150px; }
.tk-member-list-grid [data-tournament-participant-edit-url] { margin-right:.45rem; }
.tk-tournament-qttr-input-shell [data-tournament-qttr-input] { height:100%; padding-right:3.35rem; }
.tk-tournament-qttr-input-shell .tk-user-icon-btn { position:absolute; z-index:3; top:0; right:0; width:42px; height:100%; transform:none; border-radius:0; border-color:transparent transparent transparent rgba(141, 173, 220, 0.28); box-shadow:none; }
@media (max-width:640px) { .tk-tournament-participant-fields { flex-direction:column; } .tk-tournament-qttr-input-shell, .tk-tournament-entry-fee-input-shell { flex-basis:42px; } }
.tk-tournament-mode-card { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border:1px solid #d9e6f7; border-radius:12px; background:#f8fbff; }
.tk-tournaments-page [data-tournament-workflow-panel] > .tk-admin-panel-head h2 { font-size:1.65rem; }
.tk-tournament-workflow-layout { display:grid; grid-template-columns:minmax(0, 1fr); gap:1.25rem; align-items:start; margin-top:1rem; }
.tk-tournament-workflow-tabs { margin-top:1rem; }
.tk-tournament-workflow-tabs .tk-member-tab-card { justify-content:center; min-height:52px; text-align:center; }
.tk-tournament-workflow-tabs + .tk-tournament-workflow-layout { margin-top:.5rem; }
.tk-tournament-workflow-card { border:1px solid #d9e6f7; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(23, 61, 107, .06); }
.tk-tournament-participants-card { padding:1.1rem; }
.tk-tournament-options-card { padding:1.1rem; }
.tk-tournament-options-card .tk-tournament-mode-card { margin:0; }
.tk-tournament-options-card .tk-tournament-game-class-options { display:grid; gap:1rem; margin:1rem 0 0; padding-top:1rem; border-top:1px solid #d9e6f7; }
.tk-tournament-game-class-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(225px, 1fr)); gap:.7rem; }
.tk-tournament-game-class-card { display:grid; gap:.7rem; min-height:100px; padding:.75rem .85rem; border:1px solid #cbdcf2; border-radius:10px; background:#f8fbff; color:#173d6b; }
.tk-tournament-game-class-card > .tk-user-action-menu-shell { margin:-.15rem -.85rem -.75rem; border-top:1px solid #cbdcf2; }
.tk-tournament-game-class-card > .tk-user-action-menu-shell > .tk-user-icon-btn { width:100%; height:38px; border:0; border-radius:0 0 9px 9px; background:transparent; box-shadow:none; }
.tk-tournament-game-class-card > .tk-user-action-menu-shell > .tk-user-action-menu { position:absolute; top:calc(100% + .45rem); right:auto; left:0; width:100%; min-width:0; }
.tk-ribbon-draw-next-round-menu { position:absolute; top:calc(100% + .45rem); right:0; left:auto; }
.tk-tournament-game-class-card:has([data-tournament-game-class]:checked) { border-color:#79aef1; background:#eaf3ff; }
.tk-tournament-game-class-toggle { display:flex; align-items:center; gap:.65rem; cursor:pointer; }
.tk-tournament-game-class-toggle > span { display:grid; gap:.15rem; }
.tk-tournament-game-class-card strong { font-size:.9rem; }
.tk-tournament-game-class-card small { color:#58749a; font-size:.76rem; font-weight:650; }
.tk-tournament-game-parameters { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem .8rem; padding-top:.65rem; border-top:1px solid #d9e6f7; font-size:.82rem; font-weight:700; }
.tk-tournament-game-parameters + .tk-tournament-game-parameters { margin-top:-.15rem; }
.tk-tournament-game-parameters > span { width:100%; color:#58749a; font-size:.72rem; font-weight:750; letter-spacing:.02em; text-transform:uppercase; }
.tk-tournament-game-parameters label { display:flex; align-items:center; gap:.35rem; cursor:pointer; }
.tk-tournament-game-parameters:has([data-tournament-game-form]) { gap:.65rem 1rem; }
.tk-tournament-game-parameters:has([data-tournament-game-form]) label { gap:.45rem; }
.tk-tournament-game-parameters:has([data-tournament-game-gender]) { gap:.65rem .7rem; }
.tk-tournament-game-parameters:has([data-tournament-game-gender]) label { gap:.4rem; font-size:.82rem; white-space:nowrap; }
.tk-tournament-game-parameters label:has(input:disabled) { cursor:default; opacity:.55; }
.tk-tournament-registration-requirements { display:flex; align-items:center; align-self:flex-end; gap:1rem; height:44px; padding:0; }
.tk-tournament-registration-requirements label { display:flex; align-items:center; gap:.4rem; margin:0; color:#173e6c; font-size:1rem; font-weight:400; white-space:nowrap; }
.tk-tournament-registration-requirements .form-check-input { margin:0; }
.tk-required-field-marker { color:#d9363e; font-weight:700; }
@media (min-width: 768px) {
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields { display:grid; grid-template-columns:2fr 1.2fr .8fr 1.1fr; gap:.75rem; margin:0; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > [class*="col-"] { width:auto; max-width:none; padding:0; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > .col-md-6:has([data-participant-edit-name]),
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > .col-md-6:has([data-participant-edit-club]) { grid-column:1; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > .col-md-6:has(.tk-tournament-participant-gender) { grid-column:2 / 5; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > .col-md-3:has([data-participant-edit-birth-date]) { grid-column:2; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > .col-md-3:has([data-participant-edit-qttr]) { grid-column:3; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields > .col-md-3:has([data-participant-edit-fee]) { grid-column:4; }
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields .form-label,
  [data-tournament-participant-edit-modal] .tk-modal-body .tk-tournament-participant-edit-fields .form-control { display:block; width:100%; min-width:0; }
  [data-tournament-participant-edit-modal] .tk-tournament-participant-gender { margin:1.5rem 0 0; padding-left:0; justify-self:stretch; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 { display:grid; grid-template-columns:2fr 1.2fr .8fr 1.1fr; gap:.75rem; margin:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > [class*="col-"] { width:auto; max-width:none; padding:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-6:has([data-batch-name]),
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-6:has([data-batch-club]) { grid-column:1; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-6:has([data-batch-name]) > label,
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-6:has([data-batch-club]) > label,
  [data-tournament-batch-modal] .tk-modal-body [data-batch-club] { width:100%; min-width:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-6:has(.tk-tournament-participant-gender) { grid-column:2 / 5; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-3:has([data-batch-birth-date]) { grid-column:2; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-3:has([data-batch-qttr]) { grid-column:3; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-3:has([data-batch-fee]) { grid-column:4; }
  [data-tournament-batch-modal] .tk-modal-body [data-batch-birth-date],
  [data-tournament-batch-modal] .tk-modal-body [data-batch-qttr],
  [data-tournament-batch-modal] .tk-modal-body [data-batch-fee] { width:100%; min-width:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-3:has([data-batch-birth-date]) > label,
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-3:has([data-batch-qttr]) > label,
  [data-tournament-batch-modal] .tk-modal-body .row.g-3 > .col-md-3:has([data-batch-fee]) > label { display:block; width:100%; }
  [data-tournament-batch-modal] .tk-tournament-participant-gender { margin:1.3rem 0 0; padding-left:0; justify-self:stretch; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration > .col-md-6:has([data-batch-club]) { grid-column:1 / 3; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration > .col-md-3:has([data-batch-birth-date]) { grid-column:3; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration > .col-md-3:has([data-batch-fee]) { grid-column:4; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3[data-batch-tennis-details] { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.75rem; width:100%; margin:.75rem 0 0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3[data-batch-tennis-details] > [class*="col-"] { grid-column:auto; width:auto; max-width:none; padding:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3[data-batch-tennis-details] .form-label { display:grid; gap:.45rem; width:100%; margin:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3[data-batch-tennis-details] .form-control { width:100%; min-width:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration .tk-tournament-participant-gender { position:relative; display:grid; gap:.45rem; align-content:start; min-height:0; margin:0; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration .tk-tournament-participant-gender::before { content:"Geschlecht"; color:#173d6b; font-size:1rem; font-weight:400; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration .tk-tournament-participant-gender::after { content:"*"; position:absolute; top:0; left:5.65rem; color:#d9363e; font-size:1rem; font-weight:700; }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration .tk-tournament-participant-gender > div { transform:translateY(-.45rem); }
  [data-tournament-batch-modal] .tk-modal-body .row.g-3.is-tennis-registration .tk-tournament-participant-gender > [data-required-group-marker] { display:none; }
}
.tk-tournament-participants-card > .tk-admin-panel-head { margin-bottom:1rem; }
.tk-tournament-workflow-actions { display:flex; align-items:center; justify-content:flex-end; gap:.6rem; margin-left:auto; }
.tk-tournament-workflow-actions .tk-tournament-mode-form { min-width:360px; }
@media (max-width:760px) { .tk-tournaments-page [data-tournament-workflow-panel] > .tk-admin-panel-head { align-items:stretch; flex-direction:column; } .tk-tournament-workflow-actions { justify-content:flex-start; width:100%; margin-left:0; } .tk-tournament-workflow-actions .tk-tournament-mode-form { flex:1 1 auto; min-width:0; } }
.tk-tournament-mode-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.75rem; min-width:min(100%, 320px); }
.tk-tournament-mode-form .form-select { min-width:220px; }
.tk-tournament-option-field { display:grid; gap:.35rem; min-width:180px; color:#17355c; font-size:.78rem; font-weight:750; }
.tk-tournament-active-tab-status-icon { width:1.15rem; height:1.15rem; margin-right:.35rem; object-fit:contain; vertical-align:middle; }
.tk-tournament-run-award-places { min-width:0; }
.tk-tournament-run-award-places input[type="number"] { width:5.5rem; min-width:5.5rem; }
.tk-tournament-option-field .form-select,
.tk-tournament-option-field .form-control { min-width:0; }
.tk-tournament-tennis-options,
.tk-tournament-tennis-ribbon-options { display:contents; }
.tk-tournament-wizard { position:relative; gap:.8rem; }
.tk-tournament-wizard-content { display:grid; gap:1rem; }
.tk-tournament-wizard-content .form-label { display:grid; gap:.45rem; margin-bottom:0; }
.tk-tournament-wizard-rules-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:1rem; width:100%; }
.tk-tournament-wizard-rules-row > .tk-tournament-option-field { flex:1 1 170px; min-width:150px; gap:.45rem; color:#173d6b; font-size:1rem; font-weight:400; }
.tk-tournament-wizard-rules-row > .tk-tournament-option-checks { display:contents; }
.tk-tournament-wizard-rules-row > .tk-tournament-option-checks > .tk-tournament-option-field { flex:0 1 190px; min-width:160px; gap:.45rem; color:#173d6b; font-size:1rem; font-weight:400; }
.tk-tournament-wizard-rules-row > .tk-tournament-option-checks > .form-check,
.tk-tournament-wizard-rules-row > .form-check { display:flex; align-items:center; align-self:flex-end; min-height:42px; margin:0; padding-left:0; gap:.5rem; white-space:nowrap; }
.tk-tournament-wizard-rules-row > .form-check > .form-check-input { flex:0 0 auto; margin:0; }
.tk-tournament-wizard-rules-row > .form-check > .form-check-label { margin:0; }
.tk-tournament-wizard-general-compact { flex:1 1 240px; width:auto; }
.tk-tournament-wizard-director-row { display:flex; align-items:end; gap:1rem; width:100%; }
.tk-tournament-wizard-director-member { flex:1 1 0; min-width:0; }
.tk-tournament-wizard-director-phone { flex:0 1 280px; min-width:190px; }
.tk-tournament-wizard-director-member > .tk-tournament-director-picker { width:100%; }
@media (max-width: 680px) {
  .tk-tournament-wizard-director-row { flex-wrap:wrap; }
  .tk-tournament-wizard-director-member,
  .tk-tournament-wizard-director-phone { flex:1 1 100%; }
}
.tk-tournament-venue-address .form-label { display:grid; gap:.35rem; width:100%; margin:0; }
.tk-tournament-address-heading { color:#173d6b; font-weight:750; }
.tk-modal .modal-dialog.tk-tournament-create-dialog { width:calc(100vw - 3rem); max-width:1440px; }
.tk-tournament-wizard > [data-tournament-wizard-title],
.tk-tournament-wizard > [data-tournament-wizard-copy] { text-align:center; }
.tk-tournament-wizard-progress { display:flex; align-items:center; width:min(100%, 520px); margin:0 auto .65rem; }
.tk-tournament-wizard-progress span { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border:1px solid #bcd4ef; border-radius:50%; background:linear-gradient(145deg, #f8fbff 0%, #e3effd 100%); color:#52759e; font-size:.84rem; font-weight:800; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.tk-tournament-wizard-progress span.is-active { z-index:1; border-color:#1976e9; background:linear-gradient(145deg, #42a7ff 0%, #1976e9 58%, #1262c8 100%); color:#fff; transform:scale(1.2); box-shadow:0 5px 12px rgba(25,118,233,.34); }
.tk-tournament-wizard-progress i { flex:1; min-width:20px; height:2px; margin:0 .45rem; background:linear-gradient(90deg, #d6e6f8 0%, #bcd8f5 100%); }
.tk-modal-footer .tk-tournament-wizard-actions { display:flex; justify-content:flex-end; gap:.65rem; margin-left:auto; }
.tk-tournament-wizard-template-grid { display:grid; grid-template-columns:repeat(3, minmax(180px, 1fr)); gap:1rem; }
.tk-tournament-wizard-template-card { display:grid; min-height:112px; gap:.45rem; padding:1rem; border:1px solid #c8d9ef; border-radius:12px; background:linear-gradient(145deg, #fff 0%, #f1f7ff 100%); color:#173d6b; text-align:left; transition:.2s ease; }
.tk-tournament-wizard-template-card:hover, .tk-tournament-wizard-template-card.is-selected { border-color:#1976e9; background:linear-gradient(145deg, #eef7ff 0%, #dceeff 100%); box-shadow:0 5px 14px rgba(25,118,233,.16); }
.tk-tournament-wizard-template-card strong { font-size:.95rem; }
.tk-tournament-wizard-template-card small { color:#58779d; line-height:1.35; }
@media (max-width:720px) { .tk-tournament-wizard-template-grid { grid-template-columns:1fr; } }
.tk-tournament-wizard-tt-options { display:grid; grid-template-columns:repeat(5, minmax(130px, 1fr)); align-items:end; gap:1rem; }
.tk-tournament-wizard-tt-options .form-check { display:flex; align-items:center; min-height:38px; gap:.45rem; margin:0; white-space:nowrap; }
@media (max-width:980px) { .tk-tournament-wizard-tt-options { grid-template-columns:repeat(3, minmax(150px, 1fr)); } }
@media (max-width:620px) { .tk-tournament-wizard-tt-options { grid-template-columns:1fr; } }
.tk-tournament-wizard-competition-grid .tk-tournament-game-class-card:has([data-tournament-wizard-competition-enabled]:checked) { border-color:#79aef1; background:#eaf3ff; }
.tk-tournament-wizard-competition-grid .tk-tournament-game-parameters:has([data-tournament-wizard-form]) { gap:.65rem 1rem; }
.tk-tournament-wizard-competition-grid .tk-tournament-game-parameters:has([data-tournament-wizard-gender]) { gap:.65rem .7rem; }
.tk-tournament-wizard-summary { display:grid; gap:.2rem; }
.tk-tournament-wizard-summary h4 { margin:0; color:#173d6b; font-size:1rem; font-weight:800; }
.tk-tournament-wizard-summary-table { min-width:580px; border:1px solid #d9e6f7; border-radius:10px; overflow:hidden; }
.tk-tournament-wizard-summary-table tbody tr { cursor:default; }
.tk-required-marker { color:#d8314a; font-weight:800; }
.tk-department-form-card form.was-validated :is(.form-control, .form-select):invalid { border-color:#d8314a; box-shadow:0 0 0 .18rem rgba(216,49,74,.12); }
.tk-department-masterdata-extras { display:grid; grid-template-columns:minmax(0, 1fr) minmax(300px, 360px); gap:1rem; margin-top:1rem; padding-top:1rem; border-top:1px solid #dbe7f5; }
.tk-department-masterdata-left { display:grid; align-content:start; gap:1rem; }
.tk-department-masterdata-left .tk-department-masterdata-check-field { display:flex; align-items:center; padding-top:1.8rem; }
.tk-department-masterdata-left .tk-department-masterdata-check-field .tk-member-form-checkbox { margin:0; }
.tk-department-masterdata-information { display:grid; align-content:start; gap:.8rem; }
.tk-department-masterdata-information > div + div { padding-top:.8rem; border-top:1px solid #dbe7f5; }
.tk-department-masterdata-extras h3 { margin:0 0 .75rem; color:#173d6b; font-size:.9rem; font-weight:800; }
.tk-department-masterdata-logo { justify-self:end; width:100%; max-width:360px; }
@media (max-width:760px) { .tk-department-masterdata-extras { grid-template-columns:1fr; } .tk-department-masterdata-logo { justify-self:stretch; max-width:none; } }
@media (max-width:760px) { .tk-modal .modal-dialog.tk-tournament-create-dialog { width:auto; max-width:calc(100vw - 1rem); } }
.tk-tournament-option-checks { display:flex; flex-wrap:wrap; gap:1rem 1.5rem; }
.tk-tournament-option-checks .form-check { display:flex; align-items:center; gap:.5rem; margin:0; }
.tk-tournament-modal-card { display:grid; gap:1rem; }
.tk-tournament-modal-card > h3 { margin:0; color:#173d6b; font-size:1rem; }
.tk-tournament-director-picker { position:relative; display:grid; gap:.45rem; width:100%; }
.tk-tournament-director-selected { display:flex; flex-wrap:wrap; gap:.4rem; }
.tk-tournament-director-chip { display:inline-flex; align-items:center; gap:.4rem; max-width:100%; padding:.35rem .45rem .35rem .65rem; border:1px solid #c7d9f2; border-radius:999px; background:#eef5fd; color:#173d6b; font-size:.82rem; }
.tk-tournament-director-chip > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tk-tournament-director-remove { width:1.35rem; height:1.35rem; flex:0 0 auto; padding:0; border:0; border-radius:50%; background:#d8e8fa; color:#173d6b; font-size:1.15rem; line-height:1; }
.tk-tournament-director-remove:hover { background:#c0dbf8; }
.tk-tournament-director-picker .tk-member-search-results { z-index:1060; }

/* Öffentliche Turnieranmeldung */
.tk-public-tournament-shell { padding:clamp(2rem,5vw,4.5rem) 0; background:linear-gradient(180deg,#f4f8ff 0,#fff 38%); }
@media (max-width:575px) {
  .tk-public-tournament-counter-page .site-header { display:none; }
}
.tk-public-tournament-hero { max-width:760px; margin-bottom:1.5rem; }
.tk-public-tournament-hero h1 { margin:.2rem 0 .45rem; color:#082c5c; font-size:clamp(2rem,4vw,3.2rem); }
.tk-public-tournament-hero p,.tk-public-tournament-form-head p,.tk-public-tournament-competitions>p { color:#59708e; margin:0; }
.tk-public-tournament-tabs { margin-bottom:1.25rem; }
.tk-public-tournament-tabs .tk-member-tab-card { text-decoration:none; }
.tk-public-tournament-layout { display:grid; grid-template-columns:minmax(280px,.82fr) minmax(420px,1.18fr); gap:1.5rem; align-items:stretch; }
.tk-public-tournament-info-card,.tk-public-tournament-form-card,.tk-public-tournament-empty { padding:clamp(1.25rem,3vw,2rem); border:1px solid #dbe8fa; border-radius:22px; box-shadow:0 16px 38px rgba(17,63,112,.09); background:#fff; }
.tk-public-tournament-layout > .tk-public-tournament-info-card,.tk-public-tournament-layout > .tk-public-tournament-form-card { height:100%; }
.tk-public-tournament-title-row { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.tk-public-tournament-title-row h2,.tk-public-tournament-form-head h2 { color:#082c5c; margin:.2rem 0 .5rem; }
.tk-public-tournament-form-head__title-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.tk-public-tournament-form-head__title-row h1 { margin:0; }
.tk-public-tournament-form-head__table-badge { flex:none; margin-top:.15rem; padding:.42rem .72rem; border-radius:999px; background:#e9f3ff; color:#1764ae; font-size:.82rem; font-weight:800; line-height:1.1; white-space:nowrap; }
.tk-public-tournament-badge { padding:.4rem .72rem; border-radius:999px; color:#075b42; background:#dcf8ec; font-size:.82rem; font-weight:700; white-space:nowrap; }
.tk-public-tournament-access-notice { margin:.1rem 0 .35rem; color:#1b5b9f; font-size:.94rem; font-weight:700; line-height:1.45; }
.tk-public-tournament-access-notice.is-internal { color:#b42318; }
.tk-public-tournament-facts { display:grid; gap:0; margin:1rem 0 0; }
.tk-public-tournament-facts div { padding:.9rem 0; border-top:1px solid #e8eff8; }
.tk-public-tournament-facts dt { color:#687b96; font-size:.77rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.tk-public-tournament-facts dd { margin:.18rem 0 0; color:#112f55; font-weight:600; }
.tk-public-tournament-person-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.25rem; }
.tk-public-tournament-person-grid.has-photo { grid-template-columns:minmax(0,2fr) minmax(220px,1fr); align-items:stretch; }
.tk-public-tournament-person-fields { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.tk-public-tournament-photo-dropzone { display:grid; min-height:150px; place-items:center; padding:1rem; border:2px dashed #b9d2f4; border-radius:14px; background:#f8fbff; color:#58749a; cursor:pointer; text-align:center; }
.tk-public-tournament-photo-dropzone.is-dragover { border-color:#176ec8; background:#edf5ff; }
.tk-public-tournament-photo-dropzone [data-tournament-photo-placeholder] { display:grid; gap:.35rem; justify-items:center; }
.tk-public-tournament-photo-dropzone [data-tournament-photo-placeholder] img { width:2rem; height:2rem; }
.tk-public-tournament-photo-dropzone small { font-size:.78rem; }
.tk-public-tournament-photo-dropzone [data-tournament-photo-preview] { position:relative; display:block; width:100%; height:100%; min-height:118px; overflow:hidden; border-radius:12px; }
.tk-public-tournament-photo-dropzone [data-tournament-photo-preview] > img { display:block; width:100%; height:100%; min-height:118px; border-radius:12px; object-fit:cover; }
.tk-public-tournament-photo-actions { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:.45rem; background:rgba(8,44,92,.5); opacity:0; transition:opacity .18s ease; }
.tk-public-tournament-photo-dropzone [data-tournament-photo-preview]:hover .tk-public-tournament-photo-actions,.tk-public-tournament-photo-dropzone [data-tournament-photo-preview]:focus-within .tk-public-tournament-photo-actions { opacity:1; }
.tk-public-tournament-photo-actions .tk-season-icon-btn { width:2.2rem; height:2.2rem; }
@media (max-width:700px) { .tk-public-tournament-person-grid.has-photo { grid-template-columns:1fr; } }
.tk-public-tournament-person-grid label { display:grid; gap:.4rem; color:#173e6c; font-weight:700; }
.tk-required-marker { color:#b42318; font-weight:800; }
.tk-public-tournament-field-label { white-space:nowrap; }
.tk-public-tournament-person-grid .form-control { min-height:48px; border-color:#b9d2f4; border-radius:13px; }
.tk-public-tournament-message { margin:1.15rem 0 0; padding:1rem 1.1rem; border-radius:14px; border:1px solid #c5d8f2; color:#214c7e; background:#edf5ff; font-weight:600; }
.tk-public-tournament-message.is-success { color:#07573e; border-color:#a7e4cd; background:#e8faf3; }
.tk-public-tournament-message.is-error { color:#8b2833; border-color:#f1bfc5; background:#fff0f2; }
.tk-public-tournament-competitions { margin:1.4rem 0 0; padding:0; border:0; }
.tk-public-tournament-competitions legend { color:#082c5c; font-size:1.15rem; font-weight:700; }
.tk-public-tournament-competition-list { display:grid; gap:.7rem; margin-top:1rem; }
.tk-public-tournament-competition { display:grid; grid-template-columns:max-content minmax(0, 1fr); align-items:center; gap:.85rem; padding:.85rem 1rem; border:1px solid #d6e5f8; border-radius:14px; background:#f8fbff; color:#123a69; }
.tk-public-tournament-gender { display:flex; flex-wrap:wrap; grid-column:1 / -1; gap:1rem; margin:0; padding:0; border:0; color:#173e6c; font-weight:700; }
.tk-public-tournament-gender legend { width:100%; margin:0; color:#173e6c; font-size:1rem; font-weight:700; }
.tk-public-tournament-gender label { display:flex; align-items:center; gap:.4rem; }
.tk-public-tournament-registration-inline-row { display:grid; grid-column:1 / -1; grid-template-columns:repeat(3, minmax(0, 1fr)); align-items:flex-start; gap:1rem; }
.tk-public-tournament-registration-inline-row.is-table-tennis { grid-template-columns:minmax(120px, 1fr) minmax(250px, 1.7fr) minmax(105px, .75fr) minmax(115px, .85fr); }
.tk-public-tournament-registration-inline-row > label,.tk-public-tournament-registration-inline-row > .tk-public-tournament-gender { min-width:0; }
.tk-public-tournament-registration-inline-row > .tk-public-tournament-gender { grid-column:auto; }
.tk-public-tournament-disciplines { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:.8rem; }
.tk-public-tournament-disciplines section { display:flex; flex:1 1 15rem; flex-wrap:wrap; align-items:center; gap:.55rem; padding:.55rem .7rem; border:1px solid #d6e5f8; border-radius:10px; }
.tk-public-tournament-disciplines section > span { width:100%; color:#58749a; font-size:.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.tk-public-tournament-disciplines label { display:flex; align-items:center; gap:.4rem; font-weight:700; }
.tk-public-tournament-competition .tk-batch-discipline { display:inline-flex; align-items:center; gap:.4rem; margin:0; }
.tk-public-tournament-competition .tk-batch-discipline .form-check-input { margin:0; }
.tk-public-tournament-competition.is-qttr-blocked { border-color:#f1bfc5; background:#fff5f6; opacity:.72; }
.tk-tournament-registration-modal-error { flex:1 1 auto; margin:0 auto 0 0; color:#b42318; font-size:.875rem; }
.tk-tournament-registration-modal-error[data-variant="warning"] { color:#9a6700; }
.tk-tournament-registration-modal-error[data-variant="success"] { color:#087443; }
[data-tournament-participant-edit-modal] .tk-modal-footer { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:.75rem; justify-content:normal; flex-wrap:nowrap; }
[data-tournament-participant-edit-modal] .tk-tournament-registration-modal-error { min-width:0; margin:0; font-size:1rem; line-height:1.4; text-align:left; }
[data-tournament-participant-edit-modal] [data-participant-edit-save] { grid-column:2; }
[data-tournament-participant-edit-modal] .tk-modal-icon-btn { flex:0 0 42px; }
.tk-tournament-registration-modal-close { margin-left:auto; }
[data-batch-competitions] { display:flex; flex-wrap:wrap; gap:.4rem; }
[data-batch-competitions] .tk-public-tournament-competition { flex:1 1 280px; display:grid; align-items:start; min-height:0; padding:.7rem .9rem; }
[data-participant-edit-competitions] { display:grid; gap:.5rem; }
[data-participant-edit-competitions] .tk-public-tournament-competition { display:grid; grid-template-columns:minmax(11rem, 1fr) minmax(0, 4fr); align-items:start; gap:1rem; min-height:0; padding:.75rem .9rem; }
[data-participant-edit-competitions] .tk-public-tournament-competition > strong { min-width:0; white-space:normal; overflow-wrap:anywhere; padding-top:.55rem; }
[data-participant-edit-competitions] .tk-tournament-registration-combinations { gap:.5rem; }
[data-participant-edit-competitions] .tk-tournament-registration-combinations > section { gap:.4rem; padding:.55rem .65rem; }
[data-participant-edit-competitions] .tk-tournament-registration-combinations > section > div { gap:.45rem .75rem; }
.tk-tournament-registration-combinations { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:.65rem; width:100%; }
.tk-tournament-registration-combinations > section { display:grid; gap:.45rem; padding:.65rem .75rem; border:1px solid #d6e5f8; border-radius:10px; background:#fff; }
.tk-tournament-registration-combinations > section > span { color:#58749a; font-size:.75rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.tk-tournament-registration-combinations > section > div { display:flex; flex-wrap:wrap; gap:.55rem 1rem; }
.tk-tournament-participant-gender { display:flex; align-items:center; justify-content:flex-start; min-height:44px; margin:1.65rem 0 0; padding:0; border:0; }
.tk-tournament-participant-gender > div { display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-start; gap:1rem; width:100%; min-height:44px; }
.tk-tournament-participant-gender .form-check { display:flex; align-items:center; gap:.4rem; margin:0; padding-left:0; }
.tk-tournament-participant-gender .form-check-input { margin:0; }
.tk-admin-batch-person-grid.is-badminton-registration { display:grid !important; grid-template-columns:minmax(0, 2fr) minmax(220px, 1fr) !important; column-gap:2rem; align-items:stretch; }
.tk-admin-batch-person-grid.is-badminton-registration > .tk-admin-batch-fields { display:grid !important; grid-column:1; grid-row:1; grid-template-columns:repeat(6, minmax(0, 1fr)); grid-auto-rows:max-content; align-content:start; gap:1rem; min-width:0; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > .col-md-6,
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > .col-md-3 { width:auto; max-width:none; padding:0; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :nth-child(1),
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :nth-child(2) { grid-column:span 3; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :nth-child(3),
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :nth-child(4) { grid-column:span 2; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :nth-child(6) { grid-column:5 / span 2; grid-row:2; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :nth-child(5) { grid-column:1 / span 2; grid-row:3; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-tournament-participant-gender { display:grid; align-content:start; min-height:0; margin:0; }
.tk-admin-batch-person-grid.is-badminton-registration .tk-tournament-participant-gender > div { transform:translateY(-.45rem); }
.tk-admin-batch-person-grid.is-badminton-registration .tk-tournament-participant-gender [data-required-group-marker] { display:none; }
.tk-admin-batch-gender-label { display:block; margin:0 0 .4rem; color:#173e6c; font-size:1rem; font-weight:400; }
.tk-admin-batch-person-grid.is-badminton-registration > .tk-admin-batch-photo { display:block; grid-column:2; grid-row:1; width:auto; min-width:0; max-width:none; margin-left:1rem; align-self:stretch; }
.tk-admin-batch-person-grid .tk-admin-batch-photo .tk-public-tournament-photo-dropzone { height:100%; min-height:150px; }
.tk-admin-batch-photo .tk-public-tournament-photo-dropzone { overflow:hidden; }
.tk-admin-batch-photo [data-batch-photo-placeholder] { display:grid; justify-items:center; gap:.4rem; text-align:center; }
.tk-admin-batch-photo [data-batch-photo-placeholder] img { width:2rem; height:2rem; }
.tk-admin-batch-photo [data-batch-photo-placeholder] strong { display:none; }
.tk-admin-batch-photo [data-batch-photo-placeholder] > span { display:block; }
.tk-admin-batch-photo [data-batch-photo-placeholder] small { display:block; font-size:.78rem; }
.tk-admin-batch-photo [data-batch-photo-preview] { position:relative; display:block; width:100%; height:100%; min-height:118px; overflow:hidden; border-radius:12px; }
.tk-admin-batch-photo [data-batch-photo-preview] > img { display:block; width:100%; height:100%; min-height:118px; border-radius:12px; object-fit:cover; }
.tk-admin-batch-photo [data-batch-photo-preview]:hover .tk-public-tournament-photo-actions,.tk-admin-batch-photo [data-batch-photo-preview]:focus-within .tk-public-tournament-photo-actions { opacity:1; }
@media (max-width:700px) { .tk-admin-batch-person-grid.is-badminton-registration { grid-template-columns:1fr; } .tk-admin-batch-person-grid.is-badminton-registration > .tk-admin-batch-fields { grid-template-columns:1fr; } .tk-admin-batch-person-grid.is-badminton-registration .tk-admin-batch-fields > :is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(6)) { grid-column:auto; } }
.tk-member-list-grid[data-tournament-participant-selection] tbody td { vertical-align:top; }
.tk-tournament-registration-filterbar { display:flex; flex-wrap:wrap; gap:.75rem; margin-bottom:.75rem; }
.tk-tournament-registration-filterbar .tk-user-search-wrap { flex:1 1 18rem; min-width:0; }
.tk-tournament-registration-filterbar .form-control { flex:1 1 260px; }
.tk-tournament-registration-filterbar .form-select { flex:0 1 220px; min-width:12rem; }
.tk-tournament-registration-filterbar input[aria-label^="QTTR"] { flex:0 1 140px; }
.tk-tournament-registration-without-partner-filter { display:flex; flex:0 0 auto; align-items:center; align-self:center; gap:.4rem; min-height:38px; margin:0; white-space:nowrap; }
.tk-tournament-registration-without-partner-filter .form-check-input { margin:0; }
.tk-tournament-registration-filterbar .tk-tournament-registration-toolbar { margin:0 0 0 auto; }
.tk-public-tournament-submit { width:100%; min-height:52px; margin-top:1.35rem; border:0; border-radius:14px; color:#fff; background:linear-gradient(135deg,#176ec8,#0b4f9d); font-weight:700; box-shadow:0 9px 20px rgba(13,87,165,.25); }
.tk-public-tournament-submit:disabled { color:#718198; background:#dce4ee; box-shadow:none; cursor:not-allowed; }
.tk-public-tournament-start-button { display:grid; min-height:220px; place-content:center; gap:1rem; font-size:1.25rem; }
.tk-public-tournament-start-button img { width:5rem; height:5rem; filter:brightness(0) invert(1); }
.tk-public-tournament-shell [data-badminton-match] [data-tournament-counter-start] { display:none; }
.tk-public-tournament-submit-note { margin:.65rem 0 0; color:#74859a; font-size:.86rem; text-align:center; }
.tk-public-tournament-page .tk-department-hero > .container { position:relative; }
.tk-public-tournament-back { position:absolute; top:1rem; right:2.5rem; }
.tk-public-tournament-registration-shell { padding-top:1rem; }
.tk-public-tournament-hero-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:.65rem; }
.tk-public-tournament-hero-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; }
.tk-admin-page .tk-admin-hero .tk-public-tournament-hero-meta .tk-dashboard-copy { margin:0 !important; }
.tk-public-tournament-index-hero { max-width:760px; margin-bottom:1.75rem; }
.tk-public-tournament-index-hero h1 { margin:.2rem 0 .45rem; color:#082c5c; font-size:clamp(2rem,4vw,3.2rem); }
.tk-public-tournament-index-hero p { margin:0; color:#59708e; }
.tk-public-tournament-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); grid-auto-rows:1fr; gap:1.25rem; }
.tk-public-tournament-card { display:flex; flex-direction:column; height:100%; padding:1.5rem; border:1px solid #dbe8fa; border-radius:22px; box-shadow:0 12px 30px rgba(17,63,112,.08); background:#fff; }
.tk-public-tournament-card h2 { margin:.2rem 0 .7rem; color:#082c5c; font-size:1.35rem; }
.tk-public-tournament-card-facts { display:grid; gap:.65rem; margin:0; }
.tk-public-tournament-card-facts div { display:grid; gap:.12rem; }
.tk-public-tournament-card-facts dt { color:#687b96; font-size:.75rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.tk-public-tournament-card-facts dd { margin:0; color:#112f55; font-weight:600; }
.tk-public-tournament-card-facts .tk-public-tournament-internal-notice { display:inline-block; color:#b42318; font-weight:800; animation:tk-internal-tournament-notice-pulse 2.2s ease-in-out infinite; }
.tk-public-tournament-card-facts .tk-public-tournament-open-notice { color:#16824b; font-weight:800; }
@keyframes tk-internal-tournament-notice-pulse { 0%,100% { transform:scale(1); text-shadow:0 0 0 rgba(180,35,24,0); } 50% { transform:scale(1.018); text-shadow:0 0 5px rgba(180,35,24,.18); } }
@media (prefers-reduced-motion:reduce) { .tk-public-tournament-card-facts .tk-public-tournament-internal-notice { animation:none; } }
.tk-public-tournament-card-actions { display:flex; align-items:center; gap:.65rem; margin-top:auto; padding-top:1.3rem; }
@media (max-width:560px) { .tk-public-tournament-back { right:1rem; } .tk-public-tournament-hero-actions { justify-content:flex-start; margin-top:.8rem; } }
.tk-module-card-tournament-registration .tk-module-card-icon-image img { object-fit:contain; padding:1.4rem; }
@media (max-width:991px) { .tk-public-tournament-layout { grid-template-columns:1fr; } }
@media (max-width:575px) { .tk-public-tournament-person-grid { grid-template-columns:1fr; } .tk-public-tournament-competition { grid-template-columns:1fr; align-items:flex-start; gap:.75rem; } }
@media (max-width:700px) { .tk-public-tournament-registration-inline-row,.tk-public-tournament-registration-inline-row.is-table-tennis { grid-template-columns:1fr; } }
@media (max-width:575px) { .tk-tournament-registration-combinations { grid-template-columns:1fr; } }
@media (max-width:575px) { [data-participant-edit-competitions] .tk-public-tournament-competition { grid-template-columns:1fr; } }
.tk-tournament-registration-list-card { padding:1rem; overflow-x:auto; }
.tk-tournament-registration-list-card .table { margin:0; }
.tk-tournament-registration-toolbar { display:flex; justify-content:flex-end; gap:.55rem; margin-bottom:.75rem; }
.tk-tournament-status-form { display:flex; align-items:center; gap:.55rem; margin-left:auto; }
.tk-tournament-status-form .form-select { min-width:170px; }
.tk-tournament-list-row { cursor:pointer; }
.tk-tournament-list-row > td,
[data-tournament-list-panel] .tk-member-list-grid > thead > tr > th { white-space:nowrap; }
.tk-tournament-list-row:hover > td { background:rgba(235, 244, 255, .7); }
.tk-tournament-list-row.is-selected > td { background:rgba(220, 235, 255, .76); }
.tk-tournament-list-row:focus-visible { outline:2px solid #5a9cf0; outline-offset:-2px; }
.tk-tournament-list-detail { display:grid; gap:.2rem; min-width:150px; }
.tk-tournament-list-detail > span { color:#173d6b; font-weight:700; }
.tk-tournament-list-detail > small { color:#607594; font-size:.78rem; font-weight:600; line-height:1.35; }
.tk-tournament-list-settings { display:grid; gap:.35rem; min-width:195px; }
.tk-tournament-run-draw-options { display:grid; grid-template-columns:repeat(2, max-content); column-gap:.8rem; row-gap:.3rem; align-self:end; padding-bottom:.1rem; }
.tk-tournament-run-draw-options .form-check { display:flex; align-items:center; gap:.4rem; min-height:20px; margin:0; padding-left:0; line-height:1.2; }
.tk-tournament-run-draw-options .form-check-input { flex:0 0 auto; margin:0; }
.tk-tournament-run-draw-mode { display:flex; grid-column:1 / -1; align-items:center; gap:.8rem; min-width:0; margin:0; padding:0; border:0; }
.tk-tournament-run-draw-mode .form-check { white-space:nowrap; }
.tk-tournament-run-all-group-placements { display:flex; align-items:center; gap:.4rem; min-height:20px; margin:0; padding-left:0; }
.tk-tournament-run-all-group-placements .form-check-input { flex:0 0 auto; margin:0; }
.tk-info-tooltip-badge { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:1.15rem; height:1.15rem; cursor:help; }
.tk-info-tooltip-badge__icon { display:block; width:100%; height:100%; }
body.tk-public-main-draw-page .site-header { display:none; }
.tk-main-draw-hero { align-items:center; }
.tk-main-draw-title { display:flex; flex:1 1 auto; align-items:center; min-width:0; gap:1rem; }
.tk-main-draw-title .tk-dashboard-title { padding-right:0; }
.tk-main-draw-logo { display:flex; flex:0 0 auto; align-items:center; width:auto; height:4.25rem; max-width:min(22vw,14rem); }
.tk-main-draw-logo img { display:block; width:auto; height:100%; max-width:100%; object-fit:contain; }
.tk-main-draw-refresh-controls { display:flex; flex:0 0 auto; align-items:flex-end; justify-content:flex-end; gap:.7rem; margin-left:auto; }
.tk-main-draw-refresh-interval { display:grid; gap:.3rem; margin:0; color:#36577f; font-size:.78rem; font-weight:700; }
.tk-main-draw-refresh-interval input { width:8rem; text-align:center; }
.tk-main-draw-refresh-countdown { display:inline-flex; align-items:center; justify-content:center; min-width:4rem; height:2.4rem; font-variant-numeric:tabular-nums; text-align:center; }
@media (max-width: 640px) { .tk-main-draw-hero { align-items:flex-start; flex-direction:column; } .tk-main-draw-title { gap:.7rem; } .tk-main-draw-logo { height:3.25rem; max-width:24vw; } .tk-main-draw-refresh-controls { width:100%; margin-left:0; } }
.tk-tournament-list-settings label { display:flex; align-items:center; gap:.45rem; color:#36577f; font-size:.78rem; font-weight:650; line-height:1.2; white-space:nowrap; }
.tk-tournament-list-settings .form-check-input { flex:0 0 auto; margin:0; opacity:1; }
.tk-swal-checkbox { display:flex; justify-content:center; margin:.4rem 0 .1rem; }
.tk-swal-checkbox .form-check { display:inline-flex; align-items:center; gap:.35rem; margin:0; padding-left:0; }
.tk-swal-checkbox .form-check-input { flex:0 0 auto; margin:0; }
.tk-swal-checkbox .form-check-label { margin:0; }
.tk-tournament-history-card { padding:1.1rem; border:1px solid #d9e6f7; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(23, 61, 107, .06); }
.tk-tournament-history-card .tk-empty-state { margin-top:1rem; }
.tk-tournament-active-classes > .tk-admin-panel-head { margin-bottom:1rem; }
.tk-tournament-active-classes > .tk-admin-panel-head { position:relative; }
.tk-tournament-tab-visibility-summary { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); color:#52759e; font-size:.82rem; font-weight:750; white-space:nowrap; }
.tk-tournament-active-class-actions { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; margin-left:auto; }
@media (max-width:720px) { .tk-tournament-active-classes > .tk-admin-panel-head { flex-wrap:wrap; gap:.45rem; } .tk-tournament-tab-visibility-summary { position:static; order:3; width:100%; transform:none; text-align:center; } }
.tooltip.tk-tournament-tab-tooltip .tooltip-inner { text-align:center; }
.tk-tournament-tab-manager { position:relative; }
.tk-tournament-tab-manager-popover { position:absolute; z-index:30; top:calc(100% + .55rem); right:0; width:min(360px, calc(100vw - 2rem)); max-height:min(65vh, 520px); padding:.85rem; overflow:auto; border:1px solid #c8d9ef; border-radius:12px; background:#fff; box-shadow:0 14px 34px rgba(19,57,103,.2); color:#173d6b; }
.tk-tournament-tab-manager-popover.is-context-menu { position:fixed; right:auto; }
.tk-tournament-tab-manager-popover > strong { display:block; margin:0 0 .6rem; font-size:.9rem; }
.tk-tournament-tab-manager-list { display:grid; gap:.3rem; }
.tk-tournament-tab-manager-all { display:flex; align-items:center; gap:.5rem; padding:0 0 .65rem; margin-bottom:.2rem; border-bottom:1px solid #dbe7f5; color:#173d6b; font-weight:800; cursor:pointer; }
.tk-tournament-tab-manager-item { display:flex; align-items:flex-start; gap:.5rem; padding:.45rem .5rem; border-radius:7px; color:#315278; cursor:pointer; font-size:.84rem; line-height:1.3; }
.tk-tournament-tab-manager-item:hover { background:#eef5fd; }
.tk-tournament-active-tabs { gap:.65rem; padding-bottom:.35rem; }
.tk-tournament-active-tabs .tk-member-tab-card { justify-content:center; min-height:48px; padding:.7rem 1rem; overflow:visible; text-align:center; }
.tk-tournament-active-tab-count { position:absolute; z-index:3; top:-10px; right:-9px; display:inline-grid; width:25px; height:25px; place-items:center; padding:0; border:2px solid #fff; border-radius:50%; background:linear-gradient(145deg,#43a6ff 0%,#176ec8 55%,#0d4f9d 100%); box-shadow:0 4px 9px rgba(16,83,156,.34),inset 0 1px 0 rgba(255,255,255,.42); color:#fff; font-size:.72rem; font-weight:850; line-height:1; text-shadow:0 1px 1px rgba(0,49,105,.35); }
.tk-tournament-workflow-tabs .tk-member-tab-card { position:relative; overflow:visible; }
.tk-tournament-tab-count { position:absolute; z-index:2; top:-8px; right:-7px; display:inline-grid; min-width:23px; height:23px; place-items:center; padding:0 5px; border:2px solid #fff; border-radius:999px; background:linear-gradient(145deg, #43a6ff 0%, #176ec8 55%, #0d4f9d 100%); box-shadow:0 4px 9px rgba(16, 83, 156, .34), inset 0 1px 0 rgba(255, 255, 255, .42); color:#fff; font-size:.7rem; font-weight:850; line-height:1; text-shadow:0 1px 1px rgba(0, 49, 105, .35); }
.tk-tournament-active-panels { width:100%; margin-top:.75rem; }
.tk-tournament-active-panel { width:100%; }
.tk-tournament-run-hero { width:100%; min-width:0; margin:0; }
.tk-tournament-active-section-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; margin-top:.65rem; padding:.8rem 1rem; border:1px solid #bdd6f3; border-radius:8px; background:linear-gradient(135deg, #eaf4ff 0%, #f4f9ff 100%); box-shadow:0 2px 8px rgba(23, 61, 107, .07); }
.tk-tournament-active-section-head .tk-dashboard-copy { margin-top:.2rem; }
.tk-tournament-active-section-head .tk-count-badge { flex:0 0 auto; }
.tk-tournament-active-matches-head + .tk-tournament-next-games { margin-top:.65rem; }
.tk-tournament-active-matches-head { position:relative; align-items:flex-start; }
.tk-tournament-active-matches-head { flex-wrap:wrap; }
.tk-tournament-active-matches-head > .tk-tournament-next-games { flex:0 0 100%; width:100%; }
.tk-tournament-next-games-controls { position:absolute; top:.8rem; right:1rem; display:flex; align-items:center; gap:.55rem; }
.tk-manual-match-modal .tk-modal-header { border-bottom:1px solid #dbe7f4; }
.tk-manual-match-modal .tk-modal-body { border-bottom:1px solid #dbe7f4; }
.tk-manual-match-modal .tk-modal-footer { background:#f8fbff; }
.tk-manual-match-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.tk-manual-match-picker__group { min-width:0; padding:1rem; border:1px solid #c9dcf2; border-radius:10px; background:linear-gradient(135deg,#f4f9ff,#fff); }
.tk-manual-match-picker__group .form-label { display:grid; gap:.35rem; width:100%; color:#173d6b; font-weight:800; }
.tk-manual-match-picker__table { margin:1rem 0 0; overflow:hidden; border:1px solid #d7e5f4; border-radius:7px; }
.tk-manual-match-picker__table th { background:#edf5ff; color:#315b89; font-size:.75rem; }
.tk-manual-match-picker__table td { cursor:pointer; color:#173d6b; font-weight:750; }
.tk-manual-match-picker__table tbody tr { transition:background-color .15s ease,color .15s ease; }
.tk-manual-match-picker__table tbody tr:hover,.tk-manual-match-picker__table tbody tr:focus-visible { background:#e8f3ff; outline:0; }
.tk-manual-match-picker__table tbody tr.is-selected > * { color:#fff !important; background-color:#1677d2 !important; box-shadow:inset 0 0 0 9999px #1677d2; }
.tk-manual-match-picker__table tbody tr.is-selected .tk-tournament-group-position { color:#fff; background:#0d5da9; border-color:#8ec8ff; }
.tk-manual-match-picker__table .tk-tournament-group-position { margin-right:.45rem; }
@media (max-width:680px) { .tk-manual-match-picker { grid-template-columns:1fr; } }
.tk-tournament-next-games-controls .form-select { width:76px; min-width:76px; }
.tk-tournament-active-bracket-head { margin-top:1rem; }
.tk-tournament-active-layout-control { flex:0 1 390px; margin-left:auto; }
.tk-tournament-active-layout-control .form-select { width:100%; min-width:320px; }
.tk-tournament-bracket-actions { display:flex; align-items:center; gap:.45rem; flex:0 0 auto; }
.tk-tournament-active-trees-scroll { width:100%; max-height:75vh; margin-top:.65rem; overflow:auto; cursor:grab; touch-action:none; }
.tk-tournament-active-trees-scroll.is-dragging-bracket { cursor:grabbing; user-select:none; }
.tk-tournament-active-trees-scroll.is-removal-drop-target { box-shadow:inset 0 0 0 3px rgba(179,41,53,.2); }
.tk-tournament-active-bracket-content { display:flex; align-items:stretch; gap:1.5rem; width:100%; margin-top:.65rem; }
.tk-tournament-active-bracket-content:has(.tk-bracket-match.is-result-open) { position:relative; z-index:20; }
.tk-tournament-active-bracket-content .tk-tournament-active-trees-scroll { flex:0 1 auto; width:auto; min-width:0; margin-top:0; }
.tk-tournament-winner-card { display:flex; box-sizing:border-box; flex:0 0 350px; align-self:center; height:300px; flex-direction:column; overflow:hidden; border:1px solid #b9dcc3; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(38, 116, 58, .12); }
.tk-tournament-winner-card > header { padding:1rem 1.15rem; border-bottom:1px solid #b9dcc3; background:linear-gradient(135deg, #e6f5ea 0%, #f2faf4 100%); color:#27663a; }
.tk-tournament-winner-card > header h4 { margin:0; font-size:1rem; font-weight:750; }
.tk-tournament-winner-card-body { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:space-between; padding:1.5rem 1.25rem; text-align:center; }
.tk-tournament-winner-card-body > strong { color:#1f6b33; font-size:1.1rem; font-weight:800; overflow-wrap:anywhere; }
.tk-tournament-winner-avatar { width:140px; height:140px; border:4px solid #d7eddd; border-radius:50%; background:#eef5fd; box-shadow:0 5px 16px rgba(38, 116, 58, .18); object-fit:cover; }
.tk-tournament-winner-avatar.is-placeholder { background:linear-gradient(135deg, #b5d0d2 0 48%, #e7c4a8 49% 100%); }
.tk-tournament-trees-canvas.tk-tournament-active-trees-canvas { padding:0; background:transparent; }
.tk-tournament-run-hero > .tk-tournament-run-toolbar { display:grid; grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr); align-items:stretch; gap:1rem; min-width:0; }
.tk-tournament-run-options-card { --tk-tournament-run-card-header-height:62px; display:grid; grid-template-rows:var(--tk-tournament-run-card-header-height) minmax(0, 1fr); gap:0; width:100%; min-width:0; height:100%; padding:0; overflow:hidden; border:1px solid #c4d9f4; border-radius:8px; background:linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%); }
.tk-tournament-run-options-card > h4 { display:flex; align-items:center; min-height:0; margin:0; padding:.4rem 1.15rem; font-size:1rem; font-weight:800; }
.tk-tournament-run-options-card > h4 > .tk-tournament-run-actions { align-self:center; margin-left:auto; }
.tk-tournament-run-options-card.is-group-phase > h4 { background:linear-gradient(135deg, #145aa0, #2678c9); color:#fff; }
.tk-tournament-run-options-card.is-main-round > h4 { background:linear-gradient(135deg, #0f6d41, #198754); color:#fff; }
.tk-tournament-run-options-card > .tk-tournament-run-toolbar { padding:1.15rem; }
.tk-tournament-run-options-card .tk-tournament-run-mode { margin-left:0; }
.tk-tournament-run-options-card .form-select { padding-right:.65rem !important; background-image:none !important; appearance:none; -webkit-appearance:none; }
.tk-tournament-run-options-card .tk-tournament-run-toolbar .tk-tournament-option-field { flex:0 1 145px; min-width:145px; }
.tk-tournament-run-options-card .tk-tournament-run-toolbar .tk-tournament-run-mode { flex-basis:185px; min-width:185px; }
.tk-tournament-run-options-card .tk-tournament-run-toolbar .tk-tournament-run-winning-sets { flex-basis:175px; min-width:175px; }
.tk-tournament-run-actions { display:flex; align-items:flex-end; gap:.75rem; margin-left:auto; }
.tk-tournament-run-toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.75rem; width:100%; min-width:0; }
.tk-tournament-run-toolbar .tk-tournament-option-field { flex:1 1 180px; min-width:0; }
.tk-tournament-run-toolbar .tk-tournament-option-field + .tk-user-icon-btn { flex:0 0 auto; }
.tk-tournament-run-hero > .tk-tournament-run-toolbar > .tk-tournament-awards-card { grid-column:1 / -1; justify-self:center; }
.tk-tournament-ribbon-run-options { grid-column:1 / -1; flex:1 1 100% !important; width:100%; min-width:0; }
.tk-tournament-ribbon-run-options .tk-tournament-ribbon-planner { display:flex; flex-wrap:wrap; align-items:flex-end; gap:1rem; width:100%; min-width:0; margin-top:1rem; padding:0 1.15rem 1.15rem; }
.tk-tournament-ribbon-planner > .tk-tournament-option-field { flex:0 1 auto; min-width:0; width:max-content; }
.tk-tournament-ribbon-planner > .tk-tournament-option-field > span { white-space:nowrap; }
.tk-tournament-ribbon-planner > .tk-tournament-option-field .form-select,
.tk-tournament-ribbon-planner > .tk-tournament-option-field .form-control { width:auto; }
.tk-tournament-ribbon-planner > .tk-tournament-option-field input[type="number"] { width:7rem; }
.tk-tournament-ribbon-planner > .tk-tournament-ribbon-draw-all { flex:0 1 auto; align-self:flex-end; display:flex; align-items:center; margin:0 0 10px; white-space:nowrap; }
.tk-tournament-ribbon-planner > .tk-tournament-ribbon-draw-all .form-check-input { flex:0 0 auto; margin:0 .5rem 0 0; }
.tk-tournament-ribbon-planner > [data-ribbon-start] { flex:0 0 auto; margin-bottom:0; }
.tk-tournament-ribbon-planner > [data-ribbon-plan] { flex:1 1 100%; display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:.5rem; }
.tk-tournament-ribbon-planner > [data-ribbon-plan] p { margin:0; padding:.6rem .75rem; border-radius:9px; background:#eef5fd; color:#36577f; }
.tk-tournament-ribbon-planner > [data-ribbon-plan] { grid-template-columns:1fr; margin-top:.25rem; }
.tk-ribbon-round { display:grid; gap:.75rem; padding:1rem; border:1px solid #dfc29a; border-radius:12px; background:linear-gradient(135deg,#fff9ed,#fffdf8); color:#593b1b; box-shadow:0 3px 10px rgba(117,75,22,.08); }
.tk-ribbon-round > header, .tk-ribbon-break { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.tk-ribbon-round > header > strong { font-size:1rem; }
.tk-ribbon-round > header > span, .tk-ribbon-break > span { color:#8d6740; font-size:.86rem; font-weight:700; }
.tk-ribbon-round-timing, .tk-ribbon-round-statistics { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.tk-ribbon-round-timing .tk-admin-chip,
.tk-ribbon-round-statistics .tk-admin-chip { min-height:2.05rem; padding:.34rem .82rem; font-size:.88rem; }
.tk-ribbon-round-statistics { padding:.7rem .85rem; border:1px solid #d8e5f5; border-radius:10px; background:#f7fbff; }
.tk-ribbon-rounds-title-row { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; }
.tk-ribbon-rounds-title-row .tk-ribbon-round-statistics { padding:0; border:0; background:transparent; }
.tk-ribbon-round-action { display:inline-grid; place-items:center; }
.tk-ribbon-round-actions { display:inline-flex; align-items:center; gap:.45rem; }
.tk-user-icon-btn.is-danger { border-color:#f3bdc6; background:#fde8eb; box-shadow:0 2px 7px rgba(189,54,69,.12); }
.tk-user-icon-btn.is-danger:hover, .tk-user-icon-btn.is-danger:focus-visible { border-color:#e98d9c; background:#fbd7dd; }
.tk-member-portal-booking-frame { display:block; width:100%; height:calc(100vh - 11rem); min-height:820px; border:0; background:#fff; }
/* Die Carets der öffentlichen Abteilungs-Cards folgen optisch der Kicker-Achse. */
.tk-department-accordion-summary > .tk-homepage-settings-toggle--chevron { top:50% !important; transform:translateY(calc(-50% + .5rem)) !important; }
.site-shell:not(.admin-shell-active) { display:flex; flex-direction:column; min-height:100vh; }
.site-shell:not(.admin-shell-active) > main { flex:1 0 auto; }
.site-shell:not(.admin-shell-active) .site-footer { margin-top:auto !important; }
body.tk-member-portal-page .site-footer { display:none; }
.tk-member-portal-hero-title-row { display:flex; width:100%; align-items:baseline; justify-content:space-between; gap:1rem; }
.tk-member-portal-hero-title-row .tk-dashboard-title { margin:0; padding-right:0; }
body.tk-member-portal-page .tk-member-portal-hero .tk-dashboard-copy { font-size:1.12rem; font-weight:700; }
body.tk-member-portal-page [data-member-contact-form] .tk-admin-panel-head { position:relative; display:block; min-height:2.5rem; padding-right:3.25rem; }
body.tk-member-portal-page [data-member-contact-form] .tk-admin-panel-head-actions { position:absolute; top:0; right:0; margin:0; }
.tk-family-membership-head { margin-top: .35rem; }
.tk-family-membership-head h3 { margin: 0; }
.tk-family-access-table { width: 100%; margin-top: .85rem; border: 1px solid rgba(120, 161, 218, 0.24); border-radius: 1.15rem; background: rgba(250, 252, 255, 0.82); overflow: hidden; box-shadow: 0 18px 36px -34px rgba(23, 47, 104, 0.36); }
.tk-family-access-table .table { width: 100%; min-width: 38rem; }
.tk-family-access-table :is(th, td) { white-space: nowrap; }
.tk-family-access-table thead th { border-bottom: 1px solid rgba(94, 143, 210, 0.18); background: rgba(250, 252, 255, 0.72); color: #6d83a2; font-size: .73rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tk-family-access-table tbody td { border-bottom: 1px solid rgba(120, 161, 218, 0.14); }
.tk-family-access-table tbody tr:last-child td { border-bottom: 0; }
.tk-family-access-table tbody tr:has(a) { cursor: pointer; }
.tk-family-access-table tbody tr:has(a):hover td { background: rgba(228, 239, 255, 0.64); }
.tk-family-access-table td { vertical-align: middle; }
.tk-family-access-table a { color: #17355c; font-weight: 700; }
.tk-family-access-table .is-locked { color: #667892; }
.tk-family-access-icon { width: 1.3rem; height: 1.3rem; object-fit: contain; }
@media (min-width: 992px) {
  body.tk-member-portal-page [data-member-portal-panel="overview"] > .row:has(.tk-family-access-table) > .col-lg-3 { flex: 0 0 auto; width: 41.66666667%; }
  body.tk-member-portal-page [data-member-portal-panel="overview"] > .row:has(.tk-family-access-table) > .col-lg-4 { flex: 0 0 auto; width: 25%; }
  body.tk-member-portal-page [data-member-portal-panel="overview"] > .row:has(.tk-family-access-table) > .col-lg-5 { flex: 0 0 auto; width: 33.33333333%; }
}
@media (max-width: 575px) { .tk-member-portal-hero-title-row { align-items:flex-start; flex-direction:column; gap:.35rem; } }
body.tk-member-portal-page [data-member-portal-tabs].is-tennis-booking-active { padding:0; border:0; background:transparent; box-shadow:none; }
body.tk-member-portal-page [data-member-portal-tabs].is-tennis-booking-active > .tk-member-record-tabs { padding:1rem 1rem 0; background:#fff; border-radius:12px 12px 0 0; }
body.tk-member-portal-page [data-member-portal-tabs].is-tennis-booking-active [data-member-portal-panel="tennis-booking"] { margin-top:0 !important; }
body.tk-member-booking-embedded .site-header,
body.tk-member-booking-embedded .site-footer,
body.tk-member-booking-embedded .tk-sports-booking-hero { display:none; }
body.tk-public-tournament-live-presentation .site-header,
body.tk-public-tournament-live-presentation .site-footer { display:none; }
body.tk-public-tournament-live-presentation .tk-admin-hero { align-items:center; }
body.tk-public-tournament-live-presentation .tk-admin-hero > .tk-public-tournament-live-logo { display:flex; flex:0 0 auto; align-items:center; align-self:center; width:auto; height:4.25rem; max-width:min(22vw,14rem); }
body.tk-public-tournament-live-presentation .tk-admin-hero > .tk-public-tournament-live-logo + div { flex:1 1 auto; min-width:0; }
body.tk-public-tournament-live-presentation .tk-admin-hero.is-title-wrapped > .tk-public-tournament-live-logo { align-self:stretch; height:auto; }
.tk-public-tournament-live-logo img { display:block; width:auto; height:100%; max-width:100%; object-fit:contain; }
@media (max-width: 700px) { body.tk-public-tournament-live-presentation .tk-admin-hero > .tk-public-tournament-live-logo { height:3.25rem; max-width:24vw; } body.tk-public-tournament-live-presentation .tk-admin-hero.is-title-wrapped > .tk-public-tournament-live-logo { height:auto; } }
body.tk-member-booking-embedded .tk-sports-booking-shell { padding-top:0; }
body.tk-member-booking-embedded .tk-sports-booking-shell > .container { max-width:none; padding-right:0; padding-left:0; }
@media (max-width: 720px) { .tk-ribbon-round > header { align-items:flex-start; flex-wrap:wrap; } .tk-ribbon-round-timing { width:100%; } .tk-ribbon-resting { align-items:flex-start; flex-direction:column; gap:.55rem; } }
.tk-ribbon-courts { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:.8rem; }
.tk-ribbon-court-card { position:relative; isolation:isolate; display:grid; grid-template-rows:auto 1fr auto; gap:.7rem; min-height:190px; padding:.8rem; overflow:hidden; border:2px solid #c78d4a; border-radius:10px; background:repeating-linear-gradient(0deg,rgba(255,255,255,.1) 0 1px,transparent 1px 22px),linear-gradient(135deg,#d89b58,#c78340); box-shadow:inset 0 0 0 3px rgba(255,245,220,.46),0 3px 8px rgba(102,59,17,.16); color:#fffdf8; }
.tk-ribbon-court-card::before { position:absolute; z-index:-1; inset:36px 13px 22px; border:2px solid rgba(255,250,236,.96); background:linear-gradient(to right,transparent 24.5%,rgba(255,250,236,.9) 24.5% 25.5%,transparent 25.5% 49.35%,rgba(255,250,236,.95) 49.35% 50.65%,transparent 50.65% 74.5%,rgba(255,250,236,.9) 74.5% 75.5%,transparent 75.5%),linear-gradient(to bottom,transparent 18%,rgba(255,250,236,.88) 18% 19.5%,transparent 19.5% 80.5%,rgba(255,250,236,.88) 80.5% 82%,transparent 82%); content:""; pointer-events:none; }
.tk-ribbon-court-card::after { position:absolute; z-index:-1; top:30px; bottom:16px; left:50%; width:4px; border-left:1px solid rgba(96,58,22,.6); border-right:1px solid rgba(96,58,22,.6); background:repeating-linear-gradient(to bottom,rgba(255,251,236,.98) 0 5px,rgba(214,178,125,.7) 5px 7px); box-shadow:0 0 0 1px rgba(255,252,242,.68); content:""; pointer-events:none; }
.tk-ribbon-court-card > header { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.78rem; font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.tk-ribbon-court-card > header > strong { padding:.22rem .45rem; border-radius:999px; background:rgba(82,49,17,.26); font-size:.72rem; }
.tk-ribbon-teams { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr); align-items:center; gap:.35rem; min-height:100px; text-align:center; font-weight:750; line-height:1.35; }
.tk-ribbon-team { display:grid; place-items:center; min-height:54px; padding:.45rem; border-radius:7px; background:rgba(111,65,24,.2); text-shadow:0 1px 1px rgba(72,41,13,.42); }
.tk-ribbon-teams b { color:#fff0c9; font-size:.65rem; line-height:1; text-transform:uppercase; writing-mode:vertical-rl; letter-spacing:.08em; }
.tk-ribbon-court-card footer { position:relative; z-index:1; display:flex; align-items:center; justify-content:flex-end; gap:.65rem; min-height:34px; }
.tk-ribbon-court-card footer > small { margin-right:auto; color:#fff5dc; font-weight:750; text-shadow:0 1px 1px rgba(72,41,13,.42); }
.tk-ribbon-court-card .tk-user-icon-btn { border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.22); }
.tk-ribbon-court-card.is-in_progress { border-color:#fff4cb; box-shadow:inset 0 0 0 3px rgba(255,245,220,.65),0 0 0 3px rgba(221,160,63,.22); }
.tk-ribbon-court-card.is-completed { filter:saturate(.72); opacity:.82; }
.tk-ribbon-resting { display:flex; align-items:center; gap:.9rem; margin:0; padding:.85rem 1rem; border:1px solid #e6c48b; border-radius:9px; background:#fffaf1; color:#563710; box-shadow:0 2px 7px rgba(108,72,25,.08); }
.tk-ribbon-resting__title { flex:0 0 auto; color:#795128; font-size:1.08rem; font-weight:850; }
.tk-ribbon-resting__players { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.tk-ribbon-resting__player { min-height:2rem; padding:.34rem .72rem; background:#e5f0ff; color:#12569c; font-size:.94rem; font-weight:800; }
.tk-ribbon-break { grid-column:1 / -1; padding:.75rem 1rem; border:1px dashed #d6b47f; border-radius:10px; background:#fff7e8; color:#795128; }
.tk-ribbon-score-fields { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:end; gap:.75rem; }
.tk-ribbon-score-fields > span { padding-bottom:.55rem; color:#173d6b; font-size:1.6rem; font-weight:800; }
.tk-tournament-run-qttr-draw { display:flex; align-items:center; align-self:flex-end; min-height:40px; gap:.4rem; margin:0; padding-left:0; }
.tk-tournament-run-qttr-draw .form-check-input { flex:0 0 auto; margin:0; }
.tk-tournament-run-third-place { display:flex; align-items:center; align-self:flex-end; min-height:40px; gap:.4rem; margin:0; padding-left:0; }
.tk-tournament-run-third-place .form-check-input { flex:0 0 auto; margin:0; }
.tk-tournament-run-main-round-options { display:grid; grid-template-columns:repeat(2, max-content); align-items:center; align-self:end; justify-content:flex-start; column-gap:.8rem; row-gap:.3rem; padding-bottom:.1rem; }
.tk-tournament-run-main-draw-seeding { display:flex; grid-column:1 / -1; align-items:center; gap:.8rem; min-width:0; margin:0; padding:0; border:0; }
.tk-tournament-run-main-draw-seeding .form-check { display:flex; align-items:center; gap:.4rem; margin:0; padding-left:0; white-space:nowrap; }
.tk-tournament-run-main-draw-seeding .form-check-input { flex:0 0 auto; margin:0; }
.tk-tournament-run-random-doubles-draw { display:flex; align-items:center; min-height:24px; gap:.4rem; margin:0; padding-left:0; }
.tk-tournament-run-random-doubles-draw .form-check-input { flex:0 0 auto; margin:0; }
.tk-tournament-run-main-round-options .form-check { min-height:20px; line-height:1.2; }
.tk-tournament-run-main-round-options .tk-tournament-run-third-place,
.tk-tournament-run-main-round-options .tk-tournament-run-random-doubles-draw { align-self:auto; min-height:20px; }
.tk-tournament-control-tooltip-host { display:inline-flex; flex:0 0 auto; align-items:center; align-self:flex-end; }
.tk-tournament-control-tooltip-host .tk-user-icon-btn { margin:0; }
.tk-tournament-run-mode { margin-left:1.25rem; }
.tk-tournament-group-stage { width:100%; margin-top:.75rem; }
.tk-tournament-group-stage > .tk-tournament-active-section-head { align-items:center; flex-direction:row; flex-wrap:wrap; }
.tk-tournament-group-stage > .tk-tournament-active-section-head > .tk-tournament-group-stats { margin-left:auto; }
.tk-tournament-group-add-participant { margin-left:.4rem; }
.tk-tournament-completed-head__actions { display:flex; align-items:center; gap:.65rem; margin-left:auto; }
.tk-tournament-completed-games .tk-member-pagination-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; margin-top:.8rem; }
.tk-tournament-completed-games__page-buttons { display:inline-flex; gap:.3rem; }
.tk-tournament-completed-games__page-buttons .tk-member-pagination-btn { min-width:2rem; font-size:.78rem; font-weight:800; }
.tk-tournament-completed-games__page-ellipsis { display:inline-grid; place-items:center; min-width:1.25rem; color:#58749a; font-weight:800; }
.tk-tournament-completed-games__filters { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; }
.tk-tournament-completed-games__filters .tk-tournament-completed-games__search { flex:1 1 280px; max-width:440px; }
.tk-tournament-completed-games__filters select { width:auto; min-width:150px; }
.tk-tournament-completed-games__page-buttons .tk-member-pagination-btn.is-active { color:#174f91; border-color:#8fc0f4; background:#e7f2ff; box-shadow:inset 0 1px 1px rgba(255,255,255,.8), 0 1px 3px rgba(23,105,194,.12); }
.tk-tournament-group-stage > .tk-tournament-active-section-head > .tk-tournament-tables-slot { flex:0 0 100%; width:100%; padding-bottom:calc(.55rem + 10px); }
.tk-tournament-tables-overview { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),350px)); justify-content:start; gap:1rem; width:100%; margin-top:.85rem; }
.tk-tournament-tennis-courts-panel { width:100%; margin-top:.9rem; }
.tk-tennis-courts-grid { display:grid; grid-template-columns:repeat(auto-fill,350px); justify-content:start; gap:1rem; margin-top:.85rem; }
.tk-tournament-tennis-courts-panel.is-tennis .tk-tennis-courts-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),400px)); }
.tk-tennis-court-surface { overflow:hidden; border:1px solid #8bb3d8; border-radius:10px; background:#fff; box-shadow:0 3px 9px rgba(19,72,123,.12); }
.tk-tennis-court-surface > header { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.45rem .6rem; color:#153f6c; font-size:.8rem; }
.tk-tennis-court-surface > header strong { font-weight:850; }
.tk-tennis-court-surface > header span { padding:.16rem .45rem; border-radius:999px; background:#dff5e5; color:#16723d; font-size:.72rem; font-weight:850; line-height:1.1; }
.tk-tennis-court-surface__field { position:relative; aspect-ratio:13 / 6; height:auto; margin:.05rem .45rem .45rem; overflow:visible; border-radius:3px; background:radial-gradient(ellipse at 35% 25%,rgba(255,212,137,.28),transparent 45%),repeating-linear-gradient(135deg,rgba(119,42,11,.08) 0 1px,transparent 1px 7px),linear-gradient(135deg,#b94e13,#ed7d30 52%,#b8470e); box-shadow:inset 0 0 15px rgba(104,37,7,.25),0 1px 3px rgba(75,27,5,.22); }
.tk-tennis-court-surface__field::before { position:absolute; z-index:2; top:2px; bottom:2px; left:50%; width:5px; transform:translateX(-50%); border:1px solid #25140b; border-radius:2px; background:repeating-linear-gradient(180deg,#101010 0 4px,#d5d5d5 4px 5px,#101010 5px 8px); box-shadow:2px 0 0 rgba(255,255,255,.42),0 2px 3px rgba(26,9,2,.55); content:""; }
.tk-tennis-court-surface__field::after { position:absolute; inset:12px 10px; z-index:1; border:2px solid rgba(255,255,255,.96); background:linear-gradient(90deg,transparent 22%,rgba(255,255,255,.96) 22% 23.5%,transparent 23.5% 76.5%,rgba(255,255,255,.96) 76.5% 78%,transparent 78%),linear-gradient(rgba(255,255,255,.96),rgba(255,255,255,.96)); background-repeat:no-repeat; background-size:100% 100%,54% 2px; background-position:0 0,50% 50%; box-shadow:0 0 2px rgba(255,255,255,.9); content:""; pointer-events:none; }
.tk-badminton-court-surface__field { background:radial-gradient(circle at 50% 1px,#1d442d 0 3px,#f7fff7 3.4px 4.8px,transparent 5px),radial-gradient(circle at 50% calc(100% - 1px),#1d442d 0 3px,#f7fff7 3.4px 4.8px,transparent 5px),repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 7px),linear-gradient(135deg,#278b55,#329b63 52%,#237c4b); box-shadow:inset 0 0 15px rgba(10,75,40,.3),0 1px 3px rgba(8,55,30,.22); }
.tk-badminton-court-surface__field::before { z-index:2; top:-2px; bottom:-2px; width:2px; border:0; border-radius:0; background:#f7fff7; box-shadow:0 0 2px rgba(255,255,255,.9); }
.tk-badminton-court-surface__field { aspect-ratio:13.4 / 6.1; }
.tk-tennis-court-surface > header { padding:.52rem .65rem; }
.tk-tennis-court-surface > header > strong { display:inline-flex; align-items:center; gap:.38rem; font-size:1rem; }
.tk-tournament-court-number { display:inline-grid; min-width:1.55rem; height:1.55rem; place-items:center; padding:0 .35rem; border-radius:999px; background:#1976d2; box-shadow:inset 0 1px rgba(255,255,255,.45),0 1px 2px rgba(12,66,123,.25); color:#fff; font-size:.9rem; font-weight:850; line-height:1; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__lineup { top:calc(12px + 8%); right:10px; bottom:calc(12px + 8%); left:10px; grid-template-columns:5% 30% 15% 15% 30% 5%; gap:0; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(1),.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(5) { grid-column:2; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(2),.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(6) { grid-column:3; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(3),.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(7) { grid-column:4; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(4),.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(8) { grid-column:5; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(-n+4) { grid-row:1; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:nth-child(n+5) { grid-row:2; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot { align-self:stretch; justify-self:stretch; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot.is-avatar img { width:39px; height:39px; }
.tk-badminton-court-surface__field .tk-tennis-court-surface__slot:not(.is-avatar) { font-size:.7rem; }
.tk-badminton-court-surface__field::after { inset:12px 10px; border-color:rgba(247,255,247,.96); background:linear-gradient(90deg,transparent 5%,rgba(247,255,247,.96) 5% calc(5% + 2px),transparent calc(5% + 2px) 35%,rgba(247,255,247,.96) 35% calc(35% + 2px),transparent calc(35% + 2px) 64%,rgba(247,255,247,.96) 64% calc(64% + 2px),transparent calc(64% + 2px) 94%,rgba(247,255,247,.96) 94% calc(94% + 2px),transparent calc(94% + 2px)),linear-gradient(90deg,rgba(247,255,247,.96) 0 36%,transparent 36% 64%,rgba(247,255,247,.96) 64% 100%),linear-gradient(90deg,rgba(247,255,247,.96) 0 36%,transparent 36% 64%,rgba(247,255,247,.96) 64% 100%),linear-gradient(90deg,rgba(247,255,247,.96) 0 36%,transparent 36% 64%,rgba(247,255,247,.96) 64% 100%); background-repeat:no-repeat; background-size:100% 100%,100% 2px,100% 2px,100% 2px; background-position:0 0,0 8%,0 50%,0 92%; }
.tk-tennis-court-surface__lineup { position:absolute; z-index:3; inset:18px 9% 17px; display:grid; grid-template-columns:.76fr 1.55fr 1.55fr .76fr; grid-template-rows:1fr 1fr; gap:7px 8px; pointer-events:none; }
.tk-tennis-court-surface__slot { display:flex; min-width:0; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; color:#fff; font-size:.72rem; font-weight:850; line-height:1.08; text-align:center; overflow-wrap:anywhere; padding:.2rem; text-shadow:0 1px 2px rgba(57,20,4,.8); }
.tk-tennis-court-surface__slot > span { display:block; max-width:100%; overflow:hidden; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.tk-tennis-court-surface__slot.is-empty { visibility:hidden; }
.tk-tennis-court-surface__slot.is-avatar { padding:0; overflow:visible; border:0; background:transparent; box-shadow:none; }
.tk-tennis-court-surface__slot.is-avatar img { display:block; width:54px; height:54px; min-width:0; border:1px solid rgba(255,255,255,.92); border-radius:50%; background-color:rgba(255,255,255,.88); object-fit:cover; box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 1px 2px rgba(12,62,109,.22); }
.tk-tennis-court-surface__details { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; padding:0 .45rem .5rem; }
.tk-tennis-court-surface__details span { display:grid; gap:.05rem; padding:.22rem .35rem; border:1px solid #c9dbee; border-radius:4px; background:#f7fbff; color:#26517e; text-align:center; }
.tk-tennis-court-surface__details b { font-size:.7rem; font-weight:850; }
.tk-tennis-court-surface__details i { color:#102f51; font-size:.78rem; font-style:normal; font-weight:800; }
.tk-tennis-court-surface__details .tk-tennis-court-surface__score { grid-column:1 / -1; display:flex; align-items:center; justify-content:center; gap:.35rem; margin-top:.18rem; padding:0; border:0; background:transparent; }
.tk-tennis-court-surface__score b { display:none; }
.tk-tennis-court-surface__score i { display:flex; flex-wrap:wrap; justify-content:center; gap:.22rem; }
.tk-tennis-court-surface__score i em { padding:.13rem .36rem; border-radius:999px; background:#e5f0ff; color:#12569c; font-style:normal; font-weight:850; line-height:1.2; }
.tk-tennis-court-surface.is-occupied { border-color:#e0a0a7; }
.tk-tennis-court-surface.is-occupied > header span { background:#f9dfe1; color:#b4232d; }
.tk-tennis-court-surface.is-occupied .tk-tennis-court-surface__field { filter:saturate(.88) brightness(.9); }
.tk-tennis-court-surface.is-paused { border-color:#7fc8cb; }
.tk-tennis-court-surface.is-paused > header span { background:#d8f2f1; color:#08787c; }
.tk-tennis-court-surface.is-paused .tk-tennis-court-surface__field { filter:saturate(.8) brightness(.92); }
.tk-tennis-court-surface.is-time-expired { border-color:#e3ad54; }
.tk-tennis-court-surface.is-time-expired > header span { background:#fff0d5; color:#9a5b00; }
.tk-tennis-court-surface.is-time-expired .tk-tennis-court-surface__field { filter:saturate(.72) brightness(.9); }
.tk-tournament-tennis-rounds-content { display:grid; gap:1rem; }
.tk-tournament-tennis-rounds-content .tk-ribbon-round:first-child,.tk-tournament-tennis-rounds-content .tk-ribbon-break:first-child { margin-top:.85rem; }
.tk-tournament-tennis-next-games-card,.tk-tournament-tennis-standings-card,.tk-tournament-tennis-rounds-card { margin-top:1rem; }
.tk-tournament-tennis-next-games-card .tk-tournament-active-class-actions { margin-left:auto; }
.tk-tournament-tennis-next-games-card [data-ribbon-next-games-limit] { width:5.2rem; min-width:5.2rem; }
.tk-ribbon-next-games { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:.75rem; }
.tk-ribbon-next-games > article { display:grid; gap:.42rem; padding:.7rem .8rem; border:1px solid #cbdcf2; border-top:4px solid #397bd1; border-radius:10px; background:#fff; box-shadow:0 3px 12px rgba(23,61,107,.06); }
.tk-ribbon-next-games > article > span { color:#58749a; font-size:.73rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.tk-ribbon-next-games > article > strong { color:#173d6b; font-size:.88rem; line-height:1.45; }
.tk-ribbon-next-games > article > strong b { color:#7792b0; }
.tk-ribbon-next-games > .tk-tournament-match-card > span:first-child { color:#173d6b; font-size:.82rem; font-weight:850; }
.tk-tournament-ribbon-standings th,.tk-tournament-ribbon-standings td { vertical-align:middle; }
.tk-tournament-ribbon-standings__avatar-cell { width:var(--tk-ranking-avatar-size); padding-right:.5rem !important; }
.tk-tournament-ribbon-standings__avatar { display:block; box-sizing:border-box; width:var(--tk-ranking-avatar-size); height:var(--tk-ranking-avatar-size); border:3px solid #5a9cf0; border-radius:50%; object-fit:cover; }
.tk-tournament-ribbon-standings__avatar.is-placeholder { display:block; box-sizing:border-box; width:var(--tk-ranking-avatar-size); height:var(--tk-ranking-avatar-size); border:3px solid #5a9cf0; border-radius:50%; background:#dbe8f6; }
.tk-ribbon-rank { display:inline-grid; width:1.8rem; height:1.8rem; place-items:center; border-radius:50%; background:linear-gradient(135deg,#6bbbe9,#1b6fb6); box-shadow:inset 0 1px rgba(255,255,255,.62),0 1px 3px rgba(18,75,125,.28); color:#fff; font-weight:850; }
.tk-tournaments-page:not(.tk-public-tournament-page) .tk-tournament-tables-overview { padding-bottom:10px; }
.tk-tournament-table-overview-item { width:350px; min-width:0; padding:0; }
.tk-tournament-table-surface { position:relative; display:grid; grid-template-rows:auto auto auto; box-sizing:border-box; width:100%; padding:0; overflow:hidden; appearance:none; border:3px solid #61ad74; border-radius:10px; background:#fff; box-shadow:0 3px 9px rgba(19,72,123,.12); color:#173d6b; font-size:.82rem; font-weight:800; text-align:center; }
.tk-tournament-table-surface__header { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-width:0; padding:.52rem .65rem; color:#153f6c; font-size:.8rem; }
.tk-tournament-table-surface__title { color:#153f6c; font-size:1rem; font-weight:850; letter-spacing:0; text-align:left; }
.tk-tournament-table-surface__competition { flex:1 1 auto; min-width:0; overflow:hidden; color:#365d88; font-size:.72rem; font-weight:800; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.tk-tournament-table-surface__number { display:inline-grid; min-width:1.55rem; height:1.55rem; place-items:center; margin-left:.38rem; padding:0 .35rem; border:0; border-radius:999px; background:#1976d2; box-shadow:inset 0 1px rgba(255,255,255,.45),0 1px 2px rgba(12,66,123,.25); color:#fff; font-size:.9rem; font-weight:850; line-height:1; text-shadow:none; }
.tk-tournament-table-surface__header .tk-tournament-table-surface__title { display:inline-flex; align-items:center; gap:.38rem; }
.tk-tournament-table-surface__timing { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; padding:0 .45rem .5rem; color:#26517e; font-size:.8rem; font-weight:800; line-height:1.1; text-align:center; }
.tk-tournament-table-surface__timing > span { display:grid; gap:.05rem; padding:.22rem .35rem; border:1px solid #c9dbee; border-radius:4px; background:#f7fbff; }
.tk-tournament-table-surface__timing b { color:#173d6b; font-size:.72rem; font-weight:850; }
.tk-tournament-table-live-score { display:flex; flex-wrap:nowrap; align-items:center; justify-content:center; gap:.4rem; width:max-content; max-width:100%; margin:.9rem auto 0; color:#0b5c9e; font-size:1.12rem; font-weight:850; line-height:1.25; text-align:center; }
.tk-tournament-table-set-score { padding:.2rem .62rem; border:2px solid currentColor; border-radius:999px; background:#fff; font-weight:900; white-space:nowrap; }
.tk-tournament-table-set-score.is-won { border-color:#61ad74; background:#eff9f1; color:#19723a; }
.tk-tournament-table-set-score.is-lost { border-color:#e18b91; background:#fff0f1; color:#b13b45; }
.tk-tournament-table-surface__plate { position:absolute; z-index:1; inset:0; display:grid; grid-template-columns:1fr 1fr; align-items:center; border:3px solid #135a9a; border-radius:4px; background:linear-gradient(to bottom, transparent 49%, rgba(218,241,255,.8) 49.5%, rgba(218,241,255,.8) 50.5%, transparent 51%), linear-gradient(145deg, #5fa9e7 0%, #2a82cb 52%, #1262a9 100%); box-shadow:inset 0 0 0 2px rgba(194,228,255,.45), inset 0 8px 12px rgba(255,255,255,.1), 0 4px 8px rgba(14,65,111,.25); }
.tk-tournament-table-surface__plate::before { position:absolute; z-index:3; top:-7px; bottom:-11px; left:50%; width:7px; transform:translateX(-50%); border:1px solid #0b4275; border-radius:2px; background:linear-gradient(90deg, #0b4d85, #e1f4ff 48%, #0b4d85 52%); box-shadow:0 2px 4px rgba(3,38,70,.38); content:""; }
.tk-tournament-table-surface__plate::after { position:absolute; z-index:2; bottom:-13px; left:calc(50% - 14px); width:28px; height:8px; border-radius:0 0 50% 50%; background:linear-gradient(#0d528c, #083b6a); box-shadow:0 2px 3px rgba(3,38,70,.24); content:""; }
.tk-tournament-table-surface__player { position:relative; z-index:1; align-self:stretch; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; padding:.25rem .4rem .42rem; overflow-wrap:anywhere; color:#fff; font-size:.68rem; font-weight:800; line-height:1.2; text-align:center; text-shadow:0 1px 2px rgba(0,36,74,.78); }
.tk-tournament-table-surface__player > span { display:block; }
.tk-tournament-table-surface__player > .tk-tournament-table-surface__player-identity { display:inline-flex; align-items:center; justify-content:center; min-width:0; }
.tk-tournament-table-surface__player-name { display:grid; min-width:0; }
.tk-tournament-table-surface__player-name > span { display:block; }
.tk-tournament-table-surface__player-identity > .tk-tournament-table-surface__handicap { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:max-content; min-width:1.55rem; margin:0 0 .1rem .28rem; padding:.05rem .3rem; border:1px solid #a9dbc3; border-radius:999px; background:#e6f6ec; color:#167044; font-size:.7rem; font-weight:850; line-height:1.1; text-shadow:none; }
.tk-tournament-table-surface__player.is-player-one { grid-column:1; }
.tk-tournament-table-surface__player.is-player-two { grid-column:2; }
.tk-tournament-table-surface__player-meta { display:flex !important; flex-wrap:wrap; gap:.16rem; align-items:center; justify-content:center; margin-top:.26rem; text-shadow:none; }
.tk-tournament-table-surface__player-meta > span { padding:.08rem .28rem; border:1px solid #dfc48c; border-radius:3px; background:#fff3d8; color:#8a5a10; font-size:.58rem; font-weight:850; line-height:1.1; white-space:nowrap; }
.tk-tournament-player-meta-badge { display:inline-flex; align-items:center; margin-left:.32rem; padding:.08rem .32rem; border:1px solid #dfc48c; border-radius:999px; background:#fff3d8; color:#8a5a10; font-size:.72em; font-weight:800; line-height:1.15; white-space:nowrap; vertical-align:middle; }
.tk-tournament-player-avatar { display:inline-grid; width:20px; height:20px; flex:0 0 20px; place-items:center; overflow:hidden; border:1px solid #b7d3ed; border-radius:50%; background:#edf5ff; box-shadow:inset 0 1px 1px rgba(255,255,255,.9), 0 1px 2px rgba(12,62,109,.22); object-fit:cover; }
.tk-tournament-player-avatar.is-placeholder { background:#edf5ff url('/static/icons/file-user.svg') center/12px 12px no-repeat; }
.tk-tournament-table-surface__player > .tk-tournament-player-avatar { position:absolute; z-index:5; top:23%; left:50%; width:52px; height:52px; margin:0; transform:translate(-50%,-50%); border-color:rgba(255,255,255,.92); background-color:rgba(255,255,255,.88); }
.tk-tournament-table-surface__player > .tk-tournament-player-avatar.is-placeholder { background-color:rgba(255,255,255,.88); }
.tk-tournament-table-surface__plate:not(.is-team-match) .tk-tournament-table-surface__player { display:grid; grid-template-rows:1fr 1fr; padding:0; font-size:.78rem; }
.tk-tournament-table-surface__plate:not(.is-team-match) .tk-tournament-table-surface__player > .tk-tournament-player-avatar { top:8px; left:50%; box-sizing:border-box; width:auto; height:calc(50% - 16px); max-width:calc(100% - 16px); aspect-ratio:1; transform:translateX(-50%); }
.tk-tournament-table-surface__plate:not(.is-team-match) .tk-tournament-table-surface__player > .tk-tournament-player-avatar.is-placeholder { background-size:32px 32px; }
.tk-tournament-table-surface__plate:not(.is-team-match) .tk-tournament-table-surface__player-identity { position:absolute; top:calc(75% - .7rem); right:0; left:0; transform:translateY(-50%); }
.tk-tournament-table-surface__plate:not(.is-team-match) .tk-tournament-table-surface__player-meta { position:absolute; top:calc(75% + .7rem); right:0; left:0; margin-top:0; }
.tk-tournament-table-surface__plate:not(.is-team-match) .tk-tournament-table-surface__player-meta > span { font-size:.65rem; }
.tk-tournament-table-surface__timeout { position:absolute; z-index:4; top:.22rem; display:grid; width:22px; height:22px; place-items:center; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(5,47,85,.3); }
.tk-tournament-table-surface__timeout img { width:19px; height:19px; }
.tk-tournament-table-surface__timeout.is-player-one { left:.28rem; }
.tk-tournament-table-surface__timeout.is-player-two { right:.28rem; }
.tk-tournament-table-surface__plate.is-team-match { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.tk-tournament-table-surface__plate.is-team-match .tk-tournament-table-surface__player { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:1fr 1fr; place-content:center; align-items:center; column-gap:.18rem; row-gap:.08rem; padding:.1rem .22rem; font-size:.78rem; }
.tk-tournament-table-surface__plate.is-team-match .tk-tournament-table-surface__player > span { display:block; }
.tk-tournament-table-surface__plate.is-team-match .tk-tournament-table-surface__player > .tk-tournament-player-avatar { position:static; grid-column:1; grid-row:1 / -1; align-self:center; justify-self:center; box-sizing:border-box; width:54px; height:54px; transform:none; }
.tk-tournament-table-surface__plate.is-team-match .tk-tournament-table-surface__player-identity { grid-column:2; grid-row:1; justify-content:center; align-self:end; width:100%; text-align:center; }
.tk-tournament-table-surface__plate.is-team-match .tk-tournament-table-surface__player-meta { grid-column:2; grid-row:2; flex-direction:column; align-self:start; justify-self:center; margin-top:0; }
.tk-tournament-table-surface__plate.is-team-match .tk-tournament-table-surface__player-meta > span { font-size:.65rem; }
.tk-tournament-table-surface__player.is-team-one-top { grid-column:1; grid-row:1; }
.tk-tournament-table-surface__player.is-team-one-bottom { grid-column:1; grid-row:2; }
.tk-tournament-table-surface__player.is-team-two-top { grid-column:2; grid-row:1; }
.tk-tournament-table-surface__player.is-team-two-bottom { grid-column:2; grid-row:2; }
.tk-tournament-table-surface__team-handicap { position:absolute; z-index:4; top:50%; display:inline-flex; min-width:1.55rem; align-items:center; justify-content:center; padding:.05rem .3rem; border:1px solid #a9dbc3; border-radius:999px; background:#e6f6ec; color:#167044; font-size:.7rem; font-weight:850; line-height:1.1; text-shadow:none; transform:translate(-50%,-50%); }
.tk-tournament-table-surface__team-handicap.is-team-one { left:25%; }
.tk-tournament-table-surface__team-handicap.is-team-two { left:75%; }
.tk-tournament-table-surface__status { position:absolute; z-index:2; top:.35rem; right:0; left:50%; color:#fff; font-size:.7rem; font-weight:850; letter-spacing:.02em; line-height:1; text-align:center; text-shadow:0 1px 2px rgba(0,36,74,.78); }
.tk-tournament-table-surface.is-free .tk-tournament-table-surface__player, .tk-tournament-table-surface.is-defective .tk-tournament-table-surface__player { visibility:hidden; }
.tk-tournament-table-surface.is-defective .tk-tournament-table-surface__player { color:#f9d6da; }
.tk-tournament-table-surface.is-free .tk-tournament-table-surface__plate { border-color:#4d9c61; background:linear-gradient(to bottom, transparent 49%, rgba(234,255,238,.78) 49.5%, rgba(234,255,238,.78) 50.5%, transparent 51%), linear-gradient(145deg, #7dcc8d 0%, #47a65e 52%, #257a3d 100%); }
.tk-tournament-table-surface.is-occupied .tk-tournament-table-surface__plate { border-color:#0a477f; background:linear-gradient(to bottom, transparent 49%, rgba(218,241,255,.8) 49.5%, rgba(218,241,255,.8) 50.5%, transparent 51%), linear-gradient(145deg, #3d95d9 0%, #176eb5 52%, #0a4e8d 100%); }
.tk-tournament-table-surface.is-defective .tk-tournament-table-surface__plate { border-color:#9b5961; background:linear-gradient(to bottom, transparent 49%, rgba(255,230,232,.7) 49.5%, rgba(255,230,232,.7) 50.5%, transparent 51%), linear-gradient(145deg, #bd8189 0%, #975962 52%, #754048 100%); }
/* Tischtennisplatten verwenden dieselbe äußere Card-Sprache wie die Badmintonfelder. */
.tk-tournament-table-surface__plate { position:relative; inset:auto; aspect-ratio:2.74 / 1.525; margin:.05rem .45rem .45rem; }
.tk-tournament-table-surface__status { position:static; display:inline-flex; align-items:center; justify-content:center; padding:.16rem .45rem; border-radius:999px; background:#dff5e5; color:#16723d; font-size:.72rem; font-weight:850; letter-spacing:0; text-shadow:none; }
.tk-tournament-table-surface.is-free { border-color:#61ad74; }
.tk-tournament-table-surface.is-occupied { border-color:#d9363e; }
.tk-tournament-table-surface.is-occupied .tk-tournament-table-surface__status { background:#f9dfe1; color:#b4232d; }
.tk-tournament-table-surface.is-defective { border-color:#9b5961; }
.tk-tournament-table-surface.is-defective .tk-tournament-table-surface__status { background:#f4dfe2; color:#8b3942; }
.tk-tennis-court-surface:has(.tk-badminton-court-surface__field) { border:3px solid #61ad74; }
.tk-tennis-court-surface.is-occupied:has(.tk-badminton-court-surface__field) { border-color:#d9363e; }
.tk-tournament-active-matches-head > div { flex:1 1 auto; min-width:0; }
.tk-tournament-groups-grid { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.75rem; margin-top:.75rem; }
.tk-tournament-group-card { box-sizing:border-box; flex:0 1 auto; width:fit-content; max-width:100%; min-width:0; padding:1rem; border-radius:8px; }
.tk-tournament-group-card-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin:-.2rem 0 1rem; }
.tk-tournament-group-card-head h4 { margin:0; color:#173d6b; font-size:1rem; }
.tk-tournament-group-status { display:flex; align-items:center; justify-content:flex-end; gap:.55rem; color:#58749a; font-size:.72rem; font-weight:650; }
.tk-tournament-group-status > span { display:inline-flex; align-items:center; gap:.22rem; white-space:nowrap; }
.tk-tournament-group-status-badge { display:inline-grid; width:1.35rem; height:1.35rem; place-items:center; border:1px solid #b9d4f8; border-radius:50%; background:#edf5ff; color:#175aa8; font-size:.7rem; font-weight:800; line-height:1; }
@media (max-width:640px) { .tk-tournament-group-card-head { align-items:flex-start; flex-direction:column; } .tk-tournament-group-status { justify-content:flex-start; flex-wrap:wrap; } }
.tk-tournament-group-card .table-responsive { overflow-x:auto; }
.tk-tournament-group-table { width:max-content; margin:0; border:1px solid #e0eaf6; border-radius:6px; border-collapse:separate; border-spacing:0; table-layout:auto; font-size:.82rem; overflow:hidden; }
.tk-tournament-group-table th, .tk-tournament-group-table td { padding:.42rem; text-align:center; vertical-align:middle; }
.tk-tournament-group-table tbody tr.is-provisionally-qualified > * { background:#e8f7ec; }
.tk-tournament-group-table tbody tr.is-manually-qualified > * { background:#d9f1e1; }
.tk-tournament-group-rank { display:inline-grid; place-items:center; width:22px; height:22px; border:1px solid; border-radius:50%; color:#fff; font-size:.72rem; font-weight:850; line-height:1; text-shadow:0 1px 1px rgba(0,0,0,.38); box-shadow:inset 0 1px 2px rgba(255,255,255,.65), inset 0 -2px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.24); }
.tk-tournament-group-rank.is-qualified { border-color:#12643d; background:radial-gradient(circle at 32% 26%, #84e7ac 0 12%, #28a965 42%, #11643b 100%); }
.tk-tournament-group-rank.is-eliminated { border-color:#9d202b; background:radial-gradient(circle at 32% 26%, #ff9ca4 0 12%, #e34d5a 42%, #a62430 100%); }
.tk-tournament-group-stats { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; margin-left:1rem; color:#315d8f; font-size:.78rem; font-weight:750; }
.tk-tournament-group-stat-badge { display:inline-grid; place-items:center; min-width:1.55rem; height:1.55rem; margin-left:.2rem; padding:0 .3rem; border:1px solid #175b9e; border-radius:50%; background:radial-gradient(circle at 32% 26%, #7ec8ff 0 12%, #2989dc 42%, #0c4f91 100%); box-shadow:inset 0 1px 2px rgba(255,255,255,.65), inset 0 -2px 3px rgba(0,42,93,.42), 0 1px 2px rgba(13,62,112,.28); color:#fff; font-size:.72rem; text-shadow:0 1px 1px rgba(0,42,85,.55); }
.tk-tournament-group-stat-badge.is-qualified { border-color:#12643d; background:radial-gradient(circle at 32% 26%, #84e7ac 0 12%, #28a965 42%, #11643b 100%); }
.tk-tournament-group-table th:first-child { min-width:0; text-align:left; }
.tk-tournament-group-position { display:inline-grid; width:20px; height:20px; place-items:center; margin-right:.45rem; border:1px solid #175b9e; border-radius:50%; background:radial-gradient(circle at 32% 26%, #7ec8ff 0 12%, #2989dc 42%, #0c4f91 100%); box-shadow:inset 0 1px 2px rgba(255,255,255,.65), inset 0 -2px 3px rgba(0,42,93,.42), 0 1px 2px rgba(13,62,112,.28); color:#fff; font-size:.68rem; font-weight:850; line-height:1; text-shadow:0 1px 1px rgba(0,42,85,.55); vertical-align:middle; }
.tk-tournament-group-table tbody th:first-child { white-space:nowrap; }
.tk-tournament-group-table tbody th:first-child > .tk-tournament-player-avatar { width:20px; height:20px; margin-right:.35rem; vertical-align:middle; }
.tk-tournament-group-pair-names { display:inline-grid; gap:.1rem; vertical-align:middle; line-height:1.2; white-space:nowrap; }
.tk-tournament-handicap-badge { display:inline-flex; align-items:center; justify-content:center; min-width:1.55rem; margin-left:.28rem; padding:.08rem .34rem; border:1px solid #9bc8ee; border-radius:999px; background:#e8f4ff; color:#1769aa; font-size:.7em; font-weight:800; line-height:1.2; vertical-align:middle; }
.tk-tournament-group-pair-names > span { display:block; }
.tk-tournament-group-rounds { display:grid; grid-template-columns:minmax(0, 1fr); gap:.55rem; width:100%; margin-top:.8rem; }
.tk-tournament-group-card, .tk-tournament-group-round, .tk-tournament-group-round-content { overflow:visible; }
.tk-tournament-group-round { position:relative; z-index:1; border:1px solid #cbdcf2; border-radius:6px; background:#f8fbff; }
.tk-tournament-group-round.is-round-draggable { cursor:grab; }
.tk-tournament-group-round.is-round-draggable > * { cursor:grab; }
.tk-tournament-group-round.is-round-dragging { opacity:.45; cursor:grabbing; }
.tk-tournament-group-round.is-round-drop-target { outline:3px dashed rgba(38,116,58,.55); outline-offset:3px; box-shadow:0 0 0 5px rgba(215,242,222,.72); }
.tk-tournament-group-round:has(.dropdown.show), .tk-tournament-group-round:has(.dropdown-menu.show) { z-index:20; }
.tk-tournament-group-round:has(.tk-user-action-menu:not([hidden])) { z-index:30; }
.tk-tournament-group-round .dropdown-menu { z-index:1060; }
.tk-tournament-group-round-toggle { display:flex; align-items:center; gap:.7rem; width:100%; padding:.45rem .55rem; border:0; border-bottom:1px solid #cbdcf2; background:transparent; color:#173d6b; font-size:.78rem; font-weight:700; text-align:left; }
.tk-tournament-group-round-title { flex:0 0 auto; }
.tk-tournament-group-round-kpis { display:flex; flex:1 1 auto; justify-content:flex-end; gap:.55rem; color:#58749a; font-size:.69rem; font-weight:650; }
.tk-tournament-group-round-kpis > span { display:inline-flex; align-items:center; gap:.22rem; white-space:nowrap; }
.tk-tournament-group-round-kpi { display:inline-grid; width:1.3rem; height:1.3rem; place-items:center; border:1px solid #b9d4f8; border-radius:50%; background:#edf5ff; color:#175aa8; font-size:.67rem; font-weight:800; line-height:1; }
.tk-tournament-group-round-kpi.is-complete { border-color:#9bcda8; background:#e7f5ea; color:#28723b; }
.tk-tournament-group-round-kpi.is-waiting { border-color:#e3ccb0; background:#fff4e5; color:#80551f; }
.tk-tournament-group-round-kpi.is-playing { border-color:#efa9b1; background:#fff0f2; color:#b4233d; }
.tk-tournament-group-round-toggle:hover { background:#eef5fd; }
.tk-tournament-group-round-toggle:focus-visible { position:relative; z-index:1; outline:2px solid #5a9cf0; outline-offset:-2px; }
.tk-tournament-group-round-toggle-icon { width:.52rem; height:.52rem; margin-right:.15rem; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translate(-2px, -2px); transition:transform .15s ease; }
.tk-tournament-group-round.is-collapsed .tk-tournament-group-round-toggle { border-bottom:0; }
.tk-tournament-group-round.is-collapsed .tk-tournament-group-round-toggle-icon { transform:rotate(-45deg) translate(-1px, 1px); }
.tk-tournament-group-round.is-complete { border-color:#9bcda8; }
.tk-tournament-group-round.is-complete .tk-tournament-group-round-toggle { border-bottom-color:#9bcda8; background:linear-gradient(135deg, #e2f4e6 0%, #f1fbf3 100%); color:#28723b; }
@media (max-width:640px) { .tk-tournament-group-round-toggle { align-items:flex-start; flex-wrap:wrap; } .tk-tournament-group-round-kpis { justify-content:flex-start; order:3; width:calc(100% - 1.25rem); } .tk-tournament-group-round-toggle-icon { margin-top:.2rem; } }
.tk-tournament-group-game { position:relative; display:flex; align-items:center; justify-content:space-between; gap:.4rem; padding:.4rem .55rem; font-size:.78rem; }
.tk-tournament-group-game + .tk-tournament-group-game { border-top:1px solid #e0eaf6; }
.tk-tournament-table-menu { position:relative; z-index:1; }
.tk-tournament-table-menu:has(.tk-user-action-menu:not([hidden])) { z-index:31; }
.tk-tournament-table-menu > .tk-user-action-menu { position:absolute; z-index:1060; top:calc(100% + .45rem); right:0; left:auto; }
.tk-tournament-group-state-button { flex:0 0 auto; width:32px; height:32px; margin-left:.35rem; margin-right:.55rem; padding:0; }
.tk-tournament-group-state-button:disabled { opacity:.45; cursor:not-allowed; }
.tk-tournament-group-state-button.is-start { border-color:#16824b; background:#198754; box-shadow:0 2px 5px rgba(22, 130, 75, .24); }
.tk-tournament-group-state-button.is-stop { border-color:#b9273b; background:#dc3545; box-shadow:0 2px 5px rgba(185, 39, 59, .24); }
.tk-tournament-group-state-button.is-start .tk-user-icon-image, .tk-tournament-group-state-button.is-stop .tk-user-icon-image { filter:brightness(0) invert(1); }
.tk-tournament-group-state-button.is-start:hover { border-color:#126c3e; background:#157347; }
.tk-tournament-group-state-button.is-stop:hover { border-color:#982235; background:#bb2d3b; }
.tk-tournament-group-winning-sets { flex:0 0 auto; width:auto; height:32px !important; min-height:32px !important; padding:.25rem .65rem !important; box-sizing:border-box; line-height:1 !important; margin-left:.6rem; border-color:#b9d5f4; background-image:none !important; appearance:none; -webkit-appearance:none; color:#084783; font-size:.72rem; font-weight:800; }
.tk-tournament-group-game .tk-user-icon-btn { width:32px; height:32px; border-radius:9px; }
.tk-tournament-group-game .tk-user-icon-image { width:17px; height:17px; }
.tk-tournament-next-games .tk-user-icon-btn { width:32px; height:32px; border-radius:9px; }
.tk-tournament-next-games .tk-user-icon-image { width:17px; height:17px; }
.tk-tournament-table-badge { display:inline-flex; align-items:center; justify-content:center; min-height:24px; padding:.2rem .5rem; border:1px solid #bd5900; border-radius:7px; background:linear-gradient(145deg, #ffb13b 0%, #f57c00 48%, #cc5100 100%); box-shadow:inset 0 1px 1px rgba(255,255,255,.5), inset 0 -2px 3px rgba(117,39,0,.3), 0 2px 4px rgba(150,64,0,.24); color:#fff; font-size:.68rem; font-weight:850; line-height:1; text-shadow:0 1px 1px rgba(101,39,0,.55); white-space:nowrap; }
.tk-modal-header.tk-tennis-qr-modal-header { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; }
.tk-tennis-qr-modal-header .tk-modal-title { justify-self:start; margin:0; }
.tk-tennis-qr-modal-header .tk-tournament-table-badge { justify-self:center; min-height:34px; padding:.45rem .9rem; border-radius:9px; font-size:.9rem; letter-spacing:.03em; }
.tk-tennis-qr-modal-header .btn-close { justify-self:end; margin:0; }
.tk-tournament-table-badge.is-waiting { width:24px; min-width:24px; height:24px; min-height:24px; padding:0; border-color:#efbb76; border-radius:7px; background:#fff0dc; box-shadow:0 2px 5px rgba(176, 102, 24, .24); color:#a76216; text-shadow:none; }
.tk-tournament-table-badge.is-waiting img { width:13px; height:13px; }
.tk-tournament-match-card.is-waiting,.tk-tournament-match-card.is-player-conflict { opacity:1; border-top-color:#dc3545; }
.tk-tournament-group-game-players { display:inline-flex; align-items:center; flex-wrap:wrap; gap:.25rem; }
.tk-tournament-group-game-players .tk-tournament-group-position { margin-right:.15rem; }
.tk-tournament-group-game-players .tk-tournament-group-pair-names { margin-right:.15rem; }
.tk-tournament-group-game-result { display:inline-flex; flex:1 1 auto; align-items:center; justify-content:flex-end; gap:1.2rem; min-width:0; color:#285d96; text-align:right; white-space:nowrap; }
.tk-tournament-group-game-result strong { color:#173d6b; font-size:.84rem; }
.tk-tournament-group-game-result.is-pending { color:#9aaec5; }
.tk-tournament-active-bracket { margin-top:1rem; padding:1rem; border:1px solid #d9e6f7; background:#fff; overflow-x:auto; }
.tk-tournament-active-bracket h4 { margin:0 0 .8rem; color:#173d6b; font-size:1rem; }
.tk-tournament-active-bracket-rounds { display:flex; align-items:stretch; gap:1rem; min-width:max-content; }
.tk-tournament-active-bracket-round { display:grid; align-content:start; gap:.6rem; width:190px; }
.tk-tournament-active-bracket-round > header { color:#58749a; font-size:.75rem; font-weight:750; text-transform:uppercase; }
.tk-tournament-active-bracket .tk-bracket-match { display:grid; gap:.25rem; min-height:0; padding:.65rem .75rem; }
@media (max-width:1320px) { .tk-tournament-run-hero > .tk-tournament-run-toolbar { grid-template-columns:1fr; } }
@media (max-width:760px) { .tk-tournament-run-toolbar { align-items:stretch; } .tk-tournament-run-toolbar .tk-tournament-option-field { flex:1 1 calc(100% - 58px); } .tk-tournament-run-mode { margin-left:0; } .tk-tournament-active-bracket-head { align-items:stretch; flex-direction:column; } .tk-tournament-active-layout-control { flex:1 1 auto; width:100%; margin-left:0; } .tk-tournament-active-layout-control .form-select { min-width:0; } }
@media (max-width:960px) { .tk-tournament-active-bracket-content { flex-direction:column; } .tk-tournament-active-bracket-content .tk-tournament-active-trees-scroll { width:100%; } .tk-tournament-winner-card { flex-basis:auto; align-self:stretch; } }
.tk-tournament-matches { padding:1.1rem; border:1px solid #d9e6f7; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(23, 61, 107, .06); }
.tk-tournament-ranking-page .site-header,.tk-tournament-ranking-page .site-footer { display:none !important; }
.tk-tournament-ranking-display { min-height:100vh; padding-top:2rem; background:linear-gradient(135deg, #f4f9ff 0%, #fff 55%, #eaf4ff 100%); }
.tk-tournament-ranking-display__kicker { margin:0 0 .2rem; color:#58749a; font-size:.82rem; font-weight:750; }
.tk-tournament-ranking-refresh-controls { display:flex; align-items:end; gap:.55rem; margin-left:auto; }
.tk-tournament-ranking-refresh-controls label { display:grid; gap:.2rem; color:#58749a; font-size:.72rem; font-weight:750; }
.tk-tournament-ranking-refresh-input { display:flex; align-items:center; gap:.3rem; }
.tk-tournament-ranking-refresh-input .form-control { width:48px; min-width:48px; padding:.35rem .45rem; text-align:right; }
.tk-tournament-ranking-refresh-input > span { color:#58749a; font-size:.78rem; font-weight:750; }
.tk-tournament-ranking-refresh-controls [data-tournament-ranking-refresh-countdown] { justify-content:center; width:64px; min-width:64px; font-variant-numeric:tabular-nums; }
.tk-public-tournament-page .tk-tournament-doubles-tables-card,
.tk-public-tournament-page .tk-tournament-doubles-tables-card + .tk-tournament-matches { background:linear-gradient(135deg, #eaf4ff 0%, #f4f9ff 100%); }
.tk-tournament-matches > .tk-admin-panel-head { margin-bottom:1rem; }
.tk-tournament-next-games { display:grid; grid-template-columns:repeat(auto-fill, minmax(var(--tk-tournament-next-match-card-width, 210px), var(--tk-tournament-next-match-card-width, 210px))); justify-content:start; gap:.8rem; }
.tk-tournament-match-card { position:relative; display:grid; grid-template-columns:minmax(0, 1fr); gap:.5rem; min-width:0; min-height:142px; padding:.7rem .8rem; border:1px solid #cbdcf2; border-top:4px solid #397bd1; border-radius:10px; background:#fff; box-shadow:0 3px 12px rgba(23, 61, 107, .06); }
.tk-tournament-match-card > span { grid-column:1 / -1; color:#58749a; font-size:.73rem; font-weight:700; letter-spacing:.035em; text-transform:uppercase; }
.tk-tournament-match-card > .tk-tournament-match-card__handicap-header { cursor:help; text-decoration:underline dotted rgba(30, 100, 180, .65); text-underline-offset:3px; }
.tk-tournament-match-card strong { display:grid; align-content:start; gap:.35rem; min-width:0; color:#173d6b; font-size:.84rem; overflow-wrap:anywhere; }
.tk-tournament-match-card__player { display:flex; align-items:center; gap:.3rem; min-width:0; }
.tk-tournament-match-card__player > .tk-tournament-player-name { min-width:0; overflow-wrap:anywhere; }
.tk-tournament-match-card__player > .tk-tournament-player-avatar { margin-right:.05rem; }
.tk-tournament-match-card__player .tk-tournament-handicap-badge { flex:0 0 auto; margin-left:auto; }
.tk-tournament-match-card__players { position:relative; display:grid !important; align-content:stretch !important; gap:0 !important; overflow:hidden; border:1px solid #cbdcf2; border-radius:7px; background:#fff; }
.tk-tournament-match-card__players::after { position:absolute; z-index:2; top:50%; right:.55rem; left:.55rem; height:1px; background:#d6e1ee; content:""; pointer-events:none; }
.tk-tournament-match-card__players .tk-tournament-match-card__player { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; min-height:34px; padding:.3rem .48rem; border:0; border-radius:0; }
.tk-tournament-match-card__players .tk-tournament-match-card__player.is-player-1 { background:#edf5ff; color:#175aa8; }
.tk-tournament-match-card__players .tk-tournament-match-card__player.is-player-2 { background:#edf5ff; color:#175aa8; }
.tk-tournament-match-card__players .tk-tournament-match-card__player > .tk-tournament-player-name { flex:0 0 auto; min-width:max-content; overflow-wrap:normal; white-space:nowrap; }
.tk-tournament-match-card__players .tk-tournament-handicap-badge { position:relative; z-index:3; margin-left:.32rem; }
.tk-tournament-match-card > :is(.tk-tournament-table-badge,.tk-ribbon-court-badge), .tk-tournament-match-card > .tk-tournament-table-menu { position:absolute; top:.38rem; right:.8rem; }
.tk-tournament-next-games > .tk-tournament-match-card > .tk-ribbon-court-badge { top:calc(.5rem - 2px); right:0; min-height:1.55rem; height:1.55rem; padding:.1rem .5rem; font-size:.78rem; font-weight:850; }
.tk-tournament-match-card > .tk-ribbon-court-badge.is-waiting-for-court { right:2.35rem; }
.tk-tournament-match-card > .tk-ribbon-waiting-icon { position:absolute; top:.62rem; right:.35rem; display:grid; width:1.55rem; height:1.55rem; place-items:center; font-size:1.35rem; line-height:1; }
.tk-tournament-match-card.is-waiting > .tk-ribbon-waiting-icon { top:calc(.5rem - 2px); right:.35rem; }
.tk-tournament-match-card > .tk-ribbon-waiting-icon + .tk-ribbon-court-badge { right:2.35rem; }
.tk-tournament-match-card > .tk-tournament-match-drop-index { position:absolute; z-index:2; top:.38rem; right:3.45rem; display:grid; width:24px; height:24px; place-items:center; border:1px solid #e7bcbc; border-radius:50%; background:#fffafa; box-shadow:inset 0 1px 1px rgba(255,255,255,.9), inset 0 -2px 2px rgba(162,86,94,.20), 0 2px 3px rgba(103,43,43,.22); color:#a94d57; font-size:.88rem; font-weight:900; line-height:1; text-shadow:0 1px rgba(255,255,255,.75); }
.tk-tournament-next-games .tk-tournament-match-card > .tk-tournament-table-badge.is-waiting { right:.28rem; }
.tk-tournament-match-card__actions { display:flex; align-items:center; justify-content:flex-end; gap:.45rem; align-self:end; min-height:32px; }
.tk-tournament-match-card__actions .tk-tournament-group-winning-sets { margin-left:0; margin-right:auto; }
.tk-tournament-match-card__actions .btn { min-width:56px; font-size:.72rem; font-weight:750; }
.tk-tournament-match-card__actions .btn-success:not(:disabled) { border-color:#16824b; background:#198754; color:#fff; box-shadow:0 2px 5px rgba(22, 130, 75, .24); }
.tk-tournament-match-card__actions .btn-success:not(:disabled):hover { border-color:#126c3e; background:#157347; }
.tk-tournament-match-player { display:block; width:100%; max-width:100%; padding:.24rem .48rem; border:1px solid; border-radius:5px; font-weight:750; line-height:1.2; }
.tk-tournament-match-player.is-player-1 { border-color:#b9d4f8; background:#edf5ff; color:#175aa8; }
.tk-tournament-match-player.is-player-2 { border-color:#e3ccb0; background:#fff4e5; color:#80551f; }
.tk-tournament-match-player.is-pair { position:relative; display:grid; grid-template-rows:1fr 1fr; min-height:54px; padding:.12rem .48rem; text-align:center; }
.tk-tournament-match-player.is-pair::after { position:absolute; top:50%; right:.45rem; left:.45rem; height:1px; background:currentColor; opacity:.2; content:""; }
.tk-tournament-match-player.is-pair > span { position:relative; z-index:1; display:grid; place-items:center; min-height:0; }
.tk-tournament-match-pair-member { grid-template-columns:1fr; padding-right:2rem; padding-left:2rem; }
.tk-tournament-match-pair-member .tk-tournament-match-player-avatar { left:.08rem; width:22px; height:22px; }
.tk-tournament-match-player.is-single { position:relative; display:grid; min-height:32px; place-items:center; padding-right:2.5rem; padding-left:2.5rem; text-align:center; }
.tk-tournament-match-player-avatar { position:absolute; left:.48rem; display:grid; width:25px; height:25px; place-items:center; overflow:hidden; border:1px solid rgba(255,255,255,.95); border-radius:50%; background:rgba(255,255,255,.25); box-shadow:0 2px 4px rgba(12,51,91,.25), inset 0 1px 1px rgba(255,255,255,.55); }
.tk-tournament-match-player-avatar img { width:100%; height:100%; object-fit:cover; }
.tk-tournament-match-player-name { display:block; width:100%; }
.tk-tournament-match-card strong em { color:#6a809d; font-size:.76rem; font-style:normal; font-weight:600; }
.tk-tournament-match-card small { color:#58749a; font-weight:600; }
.tk-tournament-match-card .tk-user-icon-btn { align-self:end; justify-self:end; margin:0; }
.tk-tournament-match-card.is-complete { border-top-color:#58a66c; background:#f8fcf8; }
.tk-tournament-bracket { position:relative; padding:1.1rem; border:1px solid #d9e6f7; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(23, 61, 107, .06); }
.tk-tournament-bracket > .h5 { min-height:42px; margin-bottom:.5rem; padding-right:400px; }
.tk-tournament-trees-viewport { max-height:75vh; overflow:auto; padding:.75rem; border:1px solid #e2e5e9; border-radius:12px; background:#fafafa; cursor:grab; touch-action:none; }
.tk-tournament-trees-viewport.is-dragging-bracket { cursor:grabbing; user-select:none; }
.tk-tournament-trees-canvas { display:flex; flex-direction:column; align-items:flex-start; gap:1.5rem; width:max-content; min-width:100%; min-height:0; padding:1.25rem; background:#fafafa; }
.tk-tournament-trees-canvas.is-side-by-side { display:grid; grid-template-columns:max-content max-content; align-items:start; }
.tk-tournament-trees-canvas.is-side-by-side .tk-bracket-final-tree { grid-column:1 / -1; }
.tk-tournament-trees-canvas.is-single-elimination:has(.tk-bracket-placement-tree) { display:grid; grid-template-columns:max-content max-content; align-items:start; }
.tk-tournament-trees-canvas.is-single-elimination .tk-bracket-placement-tree { align-self:start; }
.tk-tournament-trees-canvas.is-double-elimination { position:relative; display:grid; grid-template-columns:max-content max-content max-content; align-items:stretch; gap:0; padding:0; border:1px solid #d9e1ea; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(22, 26, 31, .07); }
.tk-tournament-trees-canvas.is-double-elimination > .tk-bracket-tree { min-height:100%; padding:1.1rem; border:0; border-radius:0; box-shadow:none; }
.tk-tournament-trees-canvas.is-double-elimination > .is-loser-bracket-tree { position:relative; z-index:11; border-right:2px solid #9ba7b4; border-radius:12px 0 0 12px; }
.tk-tournament-trees-canvas.is-double-elimination > .is-winner-bracket-tree { border-right:0; }
.tk-tournament-trees-canvas.is-double-elimination > .tk-bracket-final-tree { border-radius:0 12px 12px 0; }
.tk-tournament-trees-canvas.is-double-elimination > .tk-bracket-final-tree { order:3; }
.tk-tournament-trees-canvas.is-double-elimination > .tk-bracket-final-tree { margin-left:1.45rem; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-bracket-rounds { direction:rtl; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-bracket-round { direction:ltr; }
.tk-tournament-trees-canvas.is-double-elimination .tk-bracket-tree > h4 { text-align:center; }
.tk-tournament-trees-canvas.is-double-elimination .is-winner-bracket-tree .tk-bracket-rounds { column-gap:3.6rem; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-bracket-round > header { clip-path:polygon(19px 0, 100% 0, calc(100% - 19px) 50%, 100% 100%, 19px 100%, 0 50%); }
.tk-bracket-layout-control { position:absolute; top:1.1rem; right:1.1rem; }
.tk-bracket-layout-control .form-select { width:min(100%, 380px); min-width:320px; }
.tk-bracket-tree { display:flex; flex:0 0 auto; flex-direction:column; width:max-content; min-width:max-content; max-width:none; overflow:visible; padding:1.1rem; border:1px solid #e0e3e7; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(22, 26, 31, .07); }
.tk-bracket-tree.is-winner-bracket-tree,
.tk-bracket-tree.is-loser-bracket-tree { flex:0 0 auto; }
.tk-bracket-tree[data-tournament-mode="single_elimination"] { padding-top:1.1rem; }
.tk-bracket-tree > h4 { margin:0 0 1rem; padding-bottom:.75rem; border-bottom:1px solid #edf0f2; color:#2f3339; font-size:1rem; font-weight:750; letter-spacing:0; text-transform:none; }
.tk-bracket-tree.is-winner-bracket-tree > h4 { margin:-1.1rem -1.1rem 1rem; padding:1rem 1.1rem .85rem; border-bottom-color:#b9dcc3; background:linear-gradient(135deg, #e6f5ea 0%, #f2faf4 100%); color:#27663a; }
.tk-bracket-tree.is-loser-bracket-tree > h4 { margin:-1.1rem -1.1rem 1rem; padding:1rem 1.1rem .85rem; border-bottom-color:#ecc4c4; background:linear-gradient(135deg, #fbe9e9 0%, #fff4f4 100%); color:#8a3535; }
.tk-bracket-tree.tk-bracket-final-tree > h4 { margin:-1.1rem -1.1rem 1rem; padding:1rem 1.1rem .85rem; border-bottom-color:#edcfaa; background:linear-gradient(135deg, #fff0dc 0%, #fff8ee 100%); color:#8a531d; }
.tk-bracket-rounds { position:relative; display:flex; flex:1; flex-wrap:nowrap; align-items:stretch; gap:2.15rem; min-width:max-content; }
.tk-bracket-tree.is-winner-bracket-tree .tk-bracket-rounds,
.tk-bracket-tree.is-loser-bracket-tree .tk-bracket-rounds { display:grid; flex:none; grid-template-columns:repeat(var(--tk-bracket-round-count), var(--tk-bracket-card-width, 238px)); width:max-content; }
.tk-bracket-round { display:flex; flex:0 0 var(--tk-bracket-card-width, 238px); flex-direction:column; min-height:0; }
.tk-bracket-round > header { display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:38px; margin:0 0 .95rem; padding:0 1.9rem; clip-path:polygon(0 0, calc(100% - 19px) 0, 100% 50%, calc(100% - 19px) 100%, 0 100%, 19px 50%); background:linear-gradient(145deg, #2ca0ff 0%, var(--brand-blue) 46%, var(--brand-blue-dark) 100%); border:1px solid rgba(194, 226, 255, .78); color:#fff; box-shadow:inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(0, 67, 143, .34); filter:drop-shadow(0 7px 8px rgba(0, 95, 196, .24)) drop-shadow(0 2px 2px rgba(18, 58, 114, .15)); font-size:.8rem; font-weight:750; letter-spacing:.03em; line-height:1; text-align:center; text-shadow:0 1px 1px rgba(0, 59, 129, .4); text-transform:uppercase; }
.tk-bracket-round-number { display:inline-grid; width:25px; height:25px; place-items:center; border:1px solid rgba(255, 255, 255, .82); border-radius:50%; background:linear-gradient(145deg, #f8fcff 0%, #b9e0ff 48%, #6db9f2 100%); box-shadow:inset 0 1px 1px rgba(255, 255, 255, .92), inset 0 -2px 2px rgba(5, 85, 160, .18), 0 2px 3px rgba(0, 42, 99, .32); color:var(--brand-blue-dark); font-size:1rem; font-weight:850; letter-spacing:0; text-shadow:none; }
.tk-bracket-round-matches { position:relative; display:flex; flex:1; flex-direction:column; justify-content:space-around; gap:1rem; }
.tk-tournament-trees-canvas > .tk-bracket-tree:first-child .tk-bracket-round:first-of-type .tk-bracket-round-matches { justify-content:flex-start; gap:1.25rem; padding-top:1rem; }
.tk-bracket-tree.is-loser-bracket-tree .tk-bracket-round:first-of-type .tk-bracket-round-matches { justify-content:flex-start; gap:1.25rem; padding-top:1rem; }
.tk-bracket-round:not(:first-of-type) .tk-bracket-round-matches::before { position:absolute; z-index:0; top:14%; bottom:14%; left:-2.15rem; width:1px; background:#b8c0c8; content:""; }
.tk-bracket-final-tree .tk-bracket-round:not(:first-of-type) .tk-bracket-round-matches::before { display:none; }
.tk-bracket-match { position:relative; z-index:1; display:grid; gap:.15rem; width:var(--tk-bracket-card-width, 238px); min-height:74px; padding:.38rem .7rem; border:1px solid #e0e2e5; border-radius:8px; background:#fff; box-shadow:0 2px 5px rgba(22, 26, 31, .10); }
.tk-loser-player-card { position:relative; z-index:2; display:flex; align-items:center; width:var(--tk-bracket-card-width, 238px); min-height:46px; padding:.38rem .7rem; border:1px solid #e0e2e5; border-radius:8px; background:#fff; box-shadow:0 2px 5px rgba(22, 26, 31, .10); }
.tk-loser-player-card.is-loser-round-player { border-color:#e0e2e5; background:#fff; box-shadow:0 2px 5px rgba(22, 26, 31, .10); }
.tk-loser-player-card.is-winner { border-color:#b7ddc0; background:#eff9f1; }
.tk-loser-player-card.is-loser { border-color:#edc1c1; background:#fff2f2; }
.tk-loser-player-card.is-overall-champion { border-color:#78bb87; background:linear-gradient(135deg,#e5f6e8,#f5fcf6); box-shadow:0 3px 9px rgba(31,123,57,.16); }
.tk-loser-player-card.is-overall-champion strong { color:#16743a; font-weight:850; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-bracket-round:first-of-type .tk-bracket-round-matches { display:block; padding-top:0; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-loser-player-card { position:absolute; left:0; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-bracket-round:nth-of-type(odd):not(:first-of-type) .tk-bracket-round-matches { display:block; padding-top:0; }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-loser-player-card::after { position:absolute; z-index:3; top:50%; right:calc(-2.2rem - 2px); width:calc(2.2rem + 2px); height:1.25px; background:#b8c0c8; content:""; transform:translateY(-50%); }
.tk-bracket-match::after { position:absolute; top:50%; left:100%; width:2.15rem; height:1px; background:#b8c0c8; content:""; }
.tk-bracket-round.is-winner-bracket-round:not(:first-of-type) .tk-bracket-round-matches::before,
.tk-bracket-round.is-loser-bracket-round:not(:first-of-type) .tk-bracket-round-matches::before,
.tk-bracket-round.is-winner-bracket-round .tk-bracket-match::after,
.tk-bracket-round.is-loser-bracket-round .tk-bracket-match::after { display:none; }
.tk-bracket-round.is-winner-bracket-round .tk-bracket-round-matches,
.tk-bracket-round.is-loser-bracket-round .tk-bracket-round-matches { overflow:visible; }
.tk-bracket-round.is-winner-bracket-round:not(:first-of-type) .tk-bracket-match,
.tk-bracket-round.is-loser-bracket-round:not(:first-of-type) .tk-bracket-match { position:absolute; left:0; }
.tk-winner-bracket-connections,
.tk-loser-bracket-connections,
.tk-loser-third-round-connections,
.tk-bracket-transfer-connections,
.tk-loser-round-two-connections,
.tk-loser-round-four-connections { position:absolute; z-index:0; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.tk-loser-bracket-connections { z-index:0; }
.tk-loser-round-two-connections { z-index:6; overflow:visible !important; }
.tk-loser-round-four-connections { z-index:6; overflow:visible !important; }
.tk-loser-round-two-connections > i,
.tk-loser-round-four-connections > i { position:absolute; display:block; margin:0; padding:0; background:#b8c0c8; box-shadow:0 0 .5px rgba(69, 78, 87, .42); }
.tk-winner-bracket-connections path,
.tk-loser-bracket-connections path,
.tk-loser-third-round-connections path { fill:none; stroke:#b8c0c8; stroke-width:1.25; vector-effect:non-scaling-stroke; }
.tk-bracket-transfer-connections path { fill:none; stroke:#cf5656; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.tk-bracket-transfer-connections { z-index:4; }
.tk-bracket-transfer-connections { position:absolute; z-index:12; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.tk-bracket-transfer-connections path { fill:none; stroke:#b8c0c8; stroke-width:1.25; vector-effect:non-scaling-stroke; }
.tk-winner-final-drop-position { position:absolute; z-index:13; display:grid; width:24px; height:24px; place-items:center; border:1px solid #e7bcbc; border-radius:50%; background:#fffafa; box-shadow:0 2px 3px rgba(103,43,43,.22); color:#a94d57; font-size:.78rem; font-weight:900; transform:translate(-50%, calc(-100% - .4rem)); }
.tk-winner-final-connection { position:absolute; z-index:12; display:block; height:1.25px; margin:0; padding:0; background:#b8c0c8; box-shadow:0 0 .5px rgba(69, 78, 87, .42); pointer-events:none; }
.tk-bracket-match.is-final-transfer-source::after { display:none; }
.tk-bracket-round:last-child .tk-bracket-match::after { display:none; }
.tk-bracket-match > span { display:none; }
.tk-bracket-match strong,
.tk-loser-player-card strong { display:flex; align-items:center; gap:.42rem; min-height:26px; padding:0 0 .12rem; border-bottom:1px solid #edf0f2; color:#34383e; font-size:.84rem; line-height:1.15; overflow-wrap:normal; white-space:nowrap; }
.tk-bracket-team-member { display:inline-flex; flex:0 0 auto; align-items:center; gap:.4rem; min-width:max-content; white-space:nowrap; }
.tk-bracket-match strong:has(.tk-bracket-team-member) { min-width:max-content; }
.tk-bracket-team-member__qttr { color:#34383e; font-weight:700; }
.tk-bracket-match strong > .tk-tournament-handicap-badge,
.tk-loser-player-card strong > .tk-tournament-handicap-badge { flex:0 0 auto; margin-left:0; }
.tk-bracket-match strong::before,
.tk-loser-player-card strong::before { display:inline-grid; flex:0 0 21px; width:21px; height:21px; border:1px solid #d8dde2; border-radius:50%; background:linear-gradient(135deg, #b5d0d2 0 48%, #e7c4a8 49% 100%); box-shadow:0 0 0 2px #fff; content:""; }
.tk-bracket-match strong:empty::before,
.tk-loser-player-card strong:empty::before { display:none; }
.tk-bracket-match strong.has-avatar::before,
.tk-loser-player-card strong.has-avatar::before { display:none; }
.tk-bracket-match strong.has-slot-number::before,
.tk-loser-player-card strong.has-slot-number::before { display:none; }
.tk-bracket-player-avatar { flex:0 0 21px; width:21px; height:21px; border:1px solid #d8dde2; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px #fff; }
.tk-bracket-seed { display:inline-grid; flex:0 0 18px; width:18px; height:18px; place-items:center; border-radius:50%; background:#e2efff; color:#0d4fd6; font-size:.67rem; font-weight:800; }
.tk-bracket-qttr-badge, .tk-bracket-meta-badge, .tk-public-bracket-meta-badge { flex:0 0 auto; padding:.16rem .35rem; border:1px solid rgba(214, 177, 118, .42); border-radius:999px; background:linear-gradient(180deg, rgba(255, 248, 237, .98), rgba(246, 233, 210, .96)); color:#8a6231; font-size:.65rem; font-weight:800; line-height:1; white-space:nowrap; }
.tk-bracket-qttr-badge, .tk-bracket-meta-badge.is-first-meta, .tk-public-bracket-meta-badge.is-first-meta, .tk-bracket-meta-badge:first-of-type, .tk-public-bracket-meta-badge:first-of-type { margin-left:auto; }
.tk-bracket-match strong:last-of-type { border-bottom:0; }
.tk-loser-player-card strong { width:100%; border-bottom:0; }
.tk-bracket-match small { display:none; }
.tk-bracket-drop-index { position:absolute; z-index:12; top:-1.05rem; right:-1.25rem; display:grid; width:24px; height:24px; place-items:center; padding:0; border:1px solid #e7bcbc; border-radius:50%; background:#fffafa; box-shadow:inset 0 1px 1px rgba(255,255,255,.9), inset 0 -2px 2px rgba(162,86,94,.20), 0 2px 3px rgba(103,43,43,.22); color:#a94d57; font-size:.88rem; font-weight:900; line-height:1; text-align:center; text-shadow:0 1px rgba(255,255,255,.75); }
.tk-bracket-match > .tk-bracket-drop-index { display:grid; }
.tk-bracket-match:has(> .tk-bracket-drop-index) { z-index:30; overflow:visible; }
.tk-tournament-trees-canvas.is-double-elimination .is-winner-bracket-tree .tk-bracket-match::after { width:2.25rem; }
.tk-tournament-trees-canvas.is-double-elimination .is-winner-bracket-tree .tk-bracket-drop-index { top:50%; right:-3.45rem; left:auto; transform:translateY(-50%); }
.tk-tournament-trees-canvas.is-double-elimination .is-loser-bracket-tree .tk-bracket-drop-index.is-target { top:auto; right:auto; bottom:calc(-1.55rem - .3rem); left:0; transform:none; }
.tk-bracket-match strong.is-winner { padding:0 .28rem .12rem; border-color:#b7ddc0; border-radius:5px; background:#eff9f1; color:#26743a; }
.tk-bracket-match strong.is-loser { padding:0 .28rem .12rem; border-color:#edc1c1; border-radius:5px; background:#fff2f2; color:#a33d3d; }
.tk-bracket-match strong.is-open-slot { cursor:pointer; padding:0 .28rem .12rem; border:1px dashed #8cb9e9; border-radius:5px; color:#2766a6; background:#f4f9ff; }
.tk-bracket-match strong.is-bracket-removable { cursor:grab; }
.tk-bracket-match strong.is-bracket-removable.is-dragging-participant { cursor:grabbing; opacity:.45; }
.tk-tournament-group-table tbody tr.is-group-participant-removable { cursor:grab; }
.tk-tournament-group-table tbody tr.is-group-participant-removable > * { cursor:grab; }
.tk-tournament-group-table tbody tr.is-group-participant-dragging { cursor:grabbing; opacity:.3; }
.tk-tournament-group-table.is-group-participant-move-target { outline:3px dashed rgba(38,116,58,.55); outline-offset:3px; box-shadow:0 0 0 5px rgba(215,242,222,.72); }
body.is-group-participant-removal-drop-target::after { position:fixed; z-index:2000; right:1.5rem; bottom:1.5rem; padding:.8rem 1rem; border:2px dashed #d7892a; border-radius:10px; background:rgba(255,249,237,.97); box-shadow:0 6px 18px rgba(103,65,22,.18); color:#8a5315; font-weight:800; content:"Hier loslassen, um Teilnehmer aus der Gruppe zu entfernen"; pointer-events:none; }
/* Runde 1 der Gewinnerseite ist die manuell bearbeitbare Startaufstellung.
   Der Cursor darf nicht vom Grab-Cursor der gesamten Baumfläche überdeckt werden. */
.is-winner-bracket-tree .tk-bracket-round[data-round-number="1"] .tk-bracket-match > strong[data-participant-id]:not([data-participant-id=""]) { cursor:grab !important; }
.is-winner-bracket-tree .tk-bracket-round[data-round-number="1"] .tk-bracket-match > strong[data-participant-id]:not([data-participant-id=""]).is-dragging-participant { cursor:grabbing !important; }
.tk-bracket-match strong.is-open-slot::after { margin-left:auto; color:#2766a6; font-size:1rem; line-height:1; content:"+"; }
.tk-bracket-match strong.is-open-slot:focus-visible { outline:3px solid rgba(38,130,213,.42); outline-offset:2px; }
.tk-bracket-player-score { display:inline-grid; flex:0 0 22px; width:22px; height:22px; place-items:center; margin-left:auto; border-radius:50%; background:#ead8bc; color:#654c2f; font-size:.68rem; font-weight:800; line-height:1; }
.tk-bracket-match:not(.is-ready):not(.is-complete):not(.is-bye):not(.has-advanced-participant):not(.tk-bracket-champion-match) { opacity:.48; }
.tk-bracket-match.is-bye { opacity:1 !important; }
.tk-tournament-trees-canvas.is-table-tennis-doubles-tree .tk-bracket-match,
.tk-tournament-trees-canvas.is-table-tennis-doubles-tree .tk-loser-player-card { opacity:1 !important; }
.tk-bracket-match.is-ready { border-color:#dfe2e6; background:#fff; box-shadow:0 2px 5px rgba(22, 26, 31, .12); }
.tk-bracket-match.is-complete { border-color:#dfe2e6; background:#fff; }
.tk-bracket-match.is-complete { cursor:pointer; }
.tk-loser-player-card.is-complete { cursor:pointer; }
.tk-bracket-match.is-result-open { z-index:50 !important; }
.tk-loser-player-card.is-result-open { z-index:50 !important; }
.tk-bracket-tree:has(.tk-bracket-match.is-result-open), .tk-bracket-tree:has(.tk-loser-player-card.is-result-open) { position:relative; z-index:10; }
.tk-bracket-match.is-complete:focus-visible { outline:3px solid rgba(38,130,213,.42); outline-offset:3px; }
.tk-bracket-result-card { position:absolute; z-index:30; top:calc(100% + 9px); left:0; display:grid; gap:.45rem; width:min(440px, calc(100vw - 2rem)); padding:.8rem .85rem; border:1px solid #a9cdee; border-radius:10px; background:#fff; box-shadow:0 12px 27px rgba(20,65,112,.24); color:#173d6b; cursor:default; }
.tk-bracket-result-card::before { position:absolute; top:-7px; left:18px; width:12px; height:12px; border-top:1px solid #a9cdee; border-left:1px solid #a9cdee; background:#fff; content:""; transform:rotate(45deg); }
.tk-bracket-result-card.is-positioned-above { top:auto; bottom:calc(100% + 9px); }
.tk-bracket-result-card.is-positioned-above::before { top:auto; bottom:-7px; transform:rotate(225deg); }
.tk-bracket-result-card > strong { position:relative; z-index:1; padding:0; border:0; color:#436889; font-size:.72rem; letter-spacing:.04em; text-transform:uppercase; }
.tk-bracket-result-card__aggregate { position:absolute; top:.7rem; right:.8rem; padding:.18rem .42rem; border-radius:999px; background:#e8f3ff; color:#0d5eaa; font-size:.75rem; font-weight:850; }
.tk-bracket-result-card__players { display:grid; gap:.45rem; margin-top:.15rem; }
.tk-bracket-result-card__players > span { display:grid; grid-template-columns:155px minmax(0, 1fr) auto; align-items:center; gap:.45rem; color:#254d79; font-size:.8rem; }
.tk-bracket-result-card__players > span > span:first-child { overflow-wrap:anywhere; line-height:1.3; }
.tk-bracket-result-card__players > span > b { display:inline-grid; min-width:22px; height:22px; place-items:center; border-radius:50%; background:#edf5ff; color:#175aa8; font-size:.72rem; }
.tk-bracket-result-card__players > span > b.is-match-winner { background:#e7f8ee; color:#16804b; }
.tk-bracket-result-card__players > span > b.is-match-loser { background:#fff0f1; color:#bd3c48; }
.tk-bracket-result-card__point-stack { display:flex; flex-wrap:nowrap; justify-content:flex-start; gap:.28rem; min-width:0; }
.tk-bracket-result-card__set-point { display:inline-grid; min-width:30px; min-height:22px; place-items:center; padding:0 .35rem; border-radius:999px; background:#fff0f1; color:#bd3c48; font-size:.8rem; font-weight:700; }
.tk-bracket-result-card__set-point.is-set-winner { color:#16804b; background:#e7f8ee; font-weight:850; }
.tk-bracket-result-card__correction { display:inline-flex; align-items:center; justify-content:center; align-self:end; gap:.35rem; margin-top:.15rem; padding:.35rem .5rem; border:0; border-radius:6px; background:transparent; color:#34628d; font-size:.76rem; font-weight:750; }
.tk-bracket-result-card__correction:hover, .tk-bracket-result-card__correction:focus-visible { background:#edf5ff; color:#0d5eaa; }
.tk-bracket-result-card__correction img { width:15px; height:15px; }
.tk-tournament-completed-head { margin-top:1rem; }
.tk-tournament-completed-games { display:grid; gap:.8rem; margin-top:.65rem; }
.tk-tournament-completed-games__search { max-width:390px; }
.tk-tournament-completed-games__table-wrap { margin:0; }
.tk-tournament-completed-games__table { margin:0; }
.tk-tournament-completed-games__table th { white-space:nowrap; font-size:1rem; }
.tk-tournament-completed-games__table td { color:#173d6b; font-size:.78rem; }
.tk-tournament-completed-games__table td:nth-child(2), .tk-tournament-completed-games__table td:nth-child(3) { font-weight:700; }
.tk-tournament-completed-games__round { color:#58749a !important; font-size:.78rem; font-weight:800; letter-spacing:.03em; text-transform:uppercase; white-space:nowrap; }
.tk-tournament-completed-games__sets { color:#58749a !important; font-size:.78rem; font-weight:650; white-space:nowrap; }
.tk-tournament-completed-games__timeout { color:#a76216 !important; font-size:.78rem; font-weight:700; white-space:nowrap; }
.tk-tournament-completed-games__aggregate { width:1%; color:#167044 !important; font-weight:850; white-space:nowrap; }
.tk-tournament-completed-games__time { width:1%; color:#315d8f !important; font-variant-numeric:tabular-nums; font-weight:750; white-space:nowrap; }
@media (max-width:640px) { .tk-bracket-result-card { width:375px; } }
.tk-bracket-final-tree { min-width:240px; }
.tk-bracket-final-tree.is-champion-decided { display:grid; grid-template-columns:210px var(--tk-bracket-card-width, 238px); column-gap:1.5rem; min-width:calc(242px + var(--tk-bracket-card-width, 238px)); }
.tk-bracket-final-tree.is-champion-decided > h4 { grid-column:1 / -1; }
.tk-bracket-final-tree.is-champion-decided > .tk-bracket-rounds { grid-column:1; }
.tk-bracket-final-tree .tk-bracket-round { flex-basis:var(--tk-bracket-card-width, 238px); min-height:0; }
.tk-bracket-final-tree .tk-bracket-match { width:var(--tk-bracket-card-width, 238px); }
.tk-bracket-champion-card { display:flex; grid-column:2; flex-direction:column; }
.tk-tournament-awards-card { box-sizing:border-box; width:fit-content; min-width:0; max-width:calc(100% - 2rem); margin:1.65rem auto 0; padding:1.35rem 1.5rem; border:1px solid #cbdcf2; border-top:5px solid #d69b28; border-radius:14px; background:linear-gradient(135deg,#fffdf6 0%,#f4f9ff 100%); box-shadow:0 7px 18px rgba(28,63,104,.12); }
.tk-tournament-awards-card > header { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; }
.tk-tournament-awards-card h4 { margin:0; color:#173d6b; font-size:1.3rem; }
.tk-tournament-awards-card > header > span { color:#7085a1; font-size:.88rem; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.tk-tournament-awards-card__placements { display:flex; flex-wrap:wrap; gap:.9rem; margin:0; padding:0 0 .2rem; overflow-x:auto; list-style:none; }
.tk-tournament-awards-card__placements > li { display:grid; grid-template-columns:76px max-content; flex:0 0 max-content; column-gap:.65rem; min-width:max-content; min-height:142px; padding:.7rem; border:1px solid #dfe7f0; border-radius:11px; background:#fff; }
.tk-tournament-awards-card__placements > li.is-place-1 { border-color:#e8c56e; background:#fffaf0; }
.tk-tournament-awards-card__placements > li.is-place-2 { border-color:#cbd3dc; background:#fafbfd; }
.tk-tournament-awards-card__placements > li.is-place-3 { border-color:#d8b79c; background:#fff9f5; }
.tk-tournament-awards-card__trophy-column { display:grid; align-content:center; justify-items:center; gap:.4rem; min-width:0; }
.tk-tournament-awards-card__place { color:#607791; font-size:.78rem; font-weight:900; line-height:1; text-align:center; white-space:nowrap; }
.tk-tournament-awards-card__trophy { width:76px; height:76px; object-fit:contain; }
.tk-tournament-awards-card__player { display:grid; grid-template-rows:minmax(0,1fr) auto; align-items:center; justify-items:center; min-width:0; padding:.1rem; }
.tk-tournament-awards-card__name { display:flex; align-items:center; justify-content:center; gap:.4rem; min-width:0; }
.tk-tournament-awards-card__category { flex:0 0 auto; padding:.16rem .35rem; border:1px solid rgba(214,177,118,.42); border-radius:999px; background:linear-gradient(180deg,rgba(255,248,237,.98),rgba(246,233,210,.96)); color:#8a6231; font-size:.7rem; font-weight:800; line-height:1; white-space:nowrap; }
.tk-tournament-awards-card__placements img,.tk-tournament-awards-card__avatar { width:78px; height:78px; border:2px solid #fff; border-radius:50%; object-fit:cover; box-shadow:0 2px 6px rgba(23,61,107,.20); }
.tk-tournament-awards-card__placements img.tk-tournament-awards-card__trophy { width:76px; height:76px; border:0; border-radius:0; box-shadow:none; }
.tk-tournament-awards-card__avatar.is-placeholder { display:block; background:linear-gradient(135deg,#b5d0d2 0 48%,#e7c4a8 49% 100%); }
.tk-tournament-awards-card__placements strong { width:100%; min-width:0; color:#173d6b; font-size:1rem; line-height:1.25; overflow-wrap:normal; text-align:center; white-space:nowrap; }
.tk-tournament-awards-card__placements > li.is-team-placement { min-height:166px; }
.tk-tournament-awards-card__player.is-team { display:grid; grid-template-rows:repeat(2,minmax(0,1fr)); align-self:stretch; gap:.35rem; }
.tk-tournament-awards-card__player.is-team .tk-tournament-awards-card__team-member { display:grid; grid-template-columns:52px minmax(6.5rem,max-content); align-items:center; justify-items:start; gap:.55rem; min-width:0; }
.tk-tournament-awards-card__player.is-team .tk-tournament-awards-card__avatar { width:50px; height:50px; justify-self:start; }
.tk-tournament-awards-card__player.is-team strong { text-align:center; white-space:normal; }
@media (max-width:540px) { .tk-tournament-awards-card { padding:1.1rem; } }
.tk-bracket-champion-card > header { margin:0 0 .85rem; color:#9ba0a7; font-size:.72rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase; }
.tk-bracket-champion-match { width:var(--tk-bracket-card-width, 238px) !important; border:2px solid #61ad74; background:#f0fbf3; box-shadow:0 4px 12px rgba(38, 116, 58, .16); opacity:1; }
.tk-bracket-champion-match::after { display:none; }
.tk-bracket-champion-match strong { border-bottom:0; color:#1f6b33; font-weight:800; }
/* Globales Designmuster: Tischtennis-Ergebniseingabe */
.tk-table-tennis-result-modal .tk-modal-dialog { max-width:620px; }
.tk-table-tennis-result-modal .tk-modal-content { overflow:hidden; border:0; box-shadow:0 24px 70px rgba(10, 42, 82, .24); }
.tk-table-tennis-result-modal .tk-modal-header { padding:1.25rem 1.5rem; border-bottom:1px solid rgba(255,255,255,.16); background:linear-gradient(135deg,#123d70 0%,#176bc0 70%,#2388d5 100%); color:#fff; }
.tk-table-tennis-result-modal .tk-modal-title { color:#fff; }
.tk-table-tennis-result-modal__table-badge { margin-left:auto; padding:.42rem .72rem; border:1px solid rgba(255,255,255,.48); border-radius:999px; background:rgba(5,35,77,.22); color:#fff; font-size:.8rem; font-weight:800; line-height:1.1; white-space:nowrap; }
.tk-modal-kicker { display:block; margin-bottom:.2rem; color:#b9ddff; font-size:.7rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.tk-table-tennis-result-modal .tk-modal-body { padding:1.35rem 1.5rem 1.1rem; background:linear-gradient(180deg,#f4f8fd 0,#fff 40%); }
.tk-table-tennis-score { display:grid; gap:1rem; color:#102f55; }
.tk-table-tennis-score__intro { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:.08rem .65rem; }
.tk-table-tennis-score__intro strong { font-size:1rem; }
.tk-table-tennis-score__intro small { grid-column:2; color:#6a7f99; }
.tk-table-tennis-score__eyebrow { grid-row:1 / 3; padding:.45rem .65rem; border:1px solid #bed8f5; border-radius:10px; background:#e9f3ff; color:#1764ae; font-size:.72rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.tk-table-tennis-score__scoreboard { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; border:1px solid #d3e2f3; border-radius:14px; background:#fff; box-shadow:0 7px 20px rgba(20,72,126,.08); }
.tk-table-tennis-score__scoreboard > div { display:grid; gap:.25rem; min-width:0; padding:.8rem 1rem; text-align:center; }
.tk-table-tennis-score__scoreboard > div strong { position:relative; display:inline-block; justify-self:center; overflow:visible; color:#4a6481; font-size:.8rem; line-height:1.3; overflow-wrap:anywhere; white-space:pre-line; }
.tk-table-tennis-score__player-first-name::after { content:" "; }
.tk-table-tennis-score.is-team-match .tk-table-tennis-score__player-name.is-team { display:grid; gap:.08rem; }
.tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member { display:block; white-space:nowrap; }
.tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member-first-name::after { content:" "; }
.tk-table-tennis-score.is-team-match .tk-table-tennis-score__scoreboard > div strong { min-height:2.7em; }
.tk-table-tennis-score__scoreboard > div strong .tk-tournament-handicap-badge { position:absolute; top:50%; left:100%; min-width:1.8rem; margin:0 0 0 .26rem; padding:.08rem .36rem; font-size:1em; line-height:1.1; white-space:nowrap; transform:translateY(-50%); }
.tk-table-tennis-score__scoreboard > div > .tk-table-tennis-score__match-score { color:#173e6b; font-size:1.65rem; font-weight:800; line-height:1; }
.tk-table-tennis-score__scoreboard > div.is-leading > .tk-table-tennis-score__match-score { color:#087b58; }
.tk-table-tennis-score__scoreboard > span { align-self:center; color:#9cb0c8; font-size:1.4rem; font-weight:800; }
.tk-table-tennis-score__grid { overflow:hidden; border:1px solid #d3e2f3; border-radius:14px; background:#fff; }
.tk-table-tennis-score__header,.tk-table-tennis-score__row { display:grid; grid-template-columns:44px minmax(0,1fr) minmax(0,1fr); gap:.7rem; align-items:center; padding:.55rem .75rem; }
.tk-table-tennis-score__header { min-height:40px; background:#edf5ff; color:#476584; font-size:.72rem; font-weight:800; letter-spacing:.025em; }
.tk-table-tennis-score__header span:not(:first-child) { overflow:visible; text-align:center; line-height:1.3; overflow-wrap:anywhere; white-space:pre-line; }
.tk-table-tennis-score__header-player-first-name::after { content:" "; }
.tk-table-tennis-score__header-player.is-team { position:relative; display:grid; gap:.08rem; min-height:2.7em; place-content:center; padding-right:2.25rem; }
.tk-table-tennis-score__header-player.is-team .tk-tournament-handicap-badge { position:absolute; top:50%; right:0; transform:translateY(-50%); }
.tk-table-tennis-score__row { position:relative; border-top:1px solid #e8eff7; transition:background .15s ease; }
.tk-table-tennis-score__row:focus-within { z-index:1; background:#f4f9ff; box-shadow:inset 3px 0 #2682d5; }
.tk-table-tennis-score__row.is-complete { background:#fbfdff; }
.tk-table-tennis-score__row.is-locked { background:#f3f6fa; opacity:.68; }
.tk-table-tennis-score__row.is-locked .tk-table-tennis-score__set-label { color:#8293a7; background:#e2e8ef; }
.tk-table-tennis-score__row.is-locked .tk-table-tennis-score__input { border-color:#d7e0ea; background:repeating-linear-gradient(135deg,#edf1f5,#edf1f5 7px,#f4f6f8 7px,#f4f6f8 14px); cursor:not-allowed; }
.tk-table-tennis-score__row.is-invalid { padding-bottom:1.55rem; background:#fff5f5; box-shadow:inset 3px 0 #dc3545; }
.tk-table-tennis-score__set-label { display:grid; width:28px; height:28px; place-items:center; border-radius:50%; background:#eaf2fb; color:#52708f; font-size:.76rem; font-weight:800; }
.tk-table-tennis-score__row.is-complete .tk-table-tennis-score__set-label { color:#087b58; background:#dff7ee; }
.tk-table-tennis-score__input { height:42px; padding:.35rem .55rem; border-color:#b9cee5; border-radius:9px; color:#102f55; font-size:1.05rem; font-weight:800; text-align:center; }
.tk-table-tennis-score__field { display:grid; grid-template-columns:minmax(0,1fr) 32px; align-items:center; gap:.35rem; }
.tk-table-tennis-score__field .tk-table-tennis-score__input { min-width:0; }
.tk-table-tennis-score__timeout { display:grid; width:30px; height:30px; place-items:center; padding:0; border:1px solid #b9cee5; border-radius:8px; background:#fff; }
.tk-table-tennis-score__timeout img { width:15px; height:15px; }
.tk-table-tennis-score__timeout.is-active { border-color:#e29a43; background:#fff0dc; box-shadow:0 2px 5px rgba(176,102,24,.2); }
.tk-table-tennis-score__input:focus { border-color:#2682d5; box-shadow:0 0 0 3px rgba(38,130,213,.13); }
.tk-table-tennis-score__feedback { position:absolute; right:.8rem; bottom:.28rem; left:3.65rem; overflow:hidden; color:#b42318; font-size:.7rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.tk-table-tennis-score__help { display:flex; flex-wrap:wrap; gap:.15rem .35rem; margin:0; padding:.72rem .85rem; border:1px solid #e8d7b7; border-radius:11px; background:#fff9ec; color:#705630; font-size:.78rem; line-height:1.45; }
.tk-table-tennis-score__help span { color:#806b4c; }
.tk-table-tennis-score__keypad { position:fixed; z-index:1080; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; padding:.65rem; border:1px solid #c7d9ed; border-radius:12px; background:#f6faff; box-shadow:0 8px 18px rgba(20,72,126,.18); }
.tk-table-tennis-score__keypad[hidden] { display:none; }
.tk-table-tennis-score__keypad-key { min-height:40px; border:1px solid #b9cee5; border-radius:8px; background:#fff; color:#173e6b; font-size:1rem; font-weight:800; line-height:1; touch-action:manipulation; }
.tk-table-tennis-score__keypad-key:hover,.tk-table-tennis-score__keypad-key:focus-visible { border-color:#2682d5; background:#e9f3ff; outline:none; }
.tk-table-tennis-score__keypad-key:active { transform:translateY(1px); background:#dceeff; }
.tk-table-tennis-score__keypad-key.is-confirm { grid-column:1 / -1; border-color:#239664; background:#e7f8ee; }
.tk-table-tennis-score__keypad-key.is-confirm:hover,.tk-table-tennis-score__keypad-key.is-confirm:focus-visible { border-color:#087b58; background:#d5f3e3; }
.tk-table-tennis-score__keypad-key.is-confirm img { width:1.2rem; height:1.2rem; }
.tk-table-tennis-result-modal .tk-modal-footer { justify-content:space-between; padding:.9rem 1.5rem; background:#f7faff; }
.tk-table-tennis-result-modal__save-label { margin-left:auto; color:#647b96; font-size:.78rem; font-weight:700; }
@media (max-width:575px) {
  /* Nur Tischtennis: Tischnummer und Begegnung in der mobilen Erfassung klar lesbar halten. */
  .tk-table-tennis-result-modal__table-badge,
  .tk-public-tournament-form-card:has([data-scoring-mode="table_tennis"]) .tk-public-tournament-form-head__table-badge { padding:.52rem .82rem; font-size:1rem; }
  .tk-public-tournament-form-card:has([data-scoring-mode="table_tennis"]) .tk-public-tournament-form-head__title-row { gap:.5rem; }
  .tk-public-tournament-form-card:has([data-scoring-mode="table_tennis"]) .tk-public-tournament-form-head__title-row h1 { font-size:clamp(1rem,5vw,1.35rem); white-space:nowrap; }
  .tk-public-tournament-form-card:has([data-scoring-mode="table_tennis"]) .tk-public-tournament-counter-notice { display:none; }
  .tk-table-tennis-result-modal .tk-table-tennis-score__scoreboard > div strong,
  .tk-public-tournament-form-card:has([data-scoring-mode="table_tennis"]) .tk-table-tennis-score__scoreboard > div strong { font-size:1rem; line-height:1.35; }
  .tk-table-tennis-result-modal .tk-table-tennis-score__header,
  .tk-public-tournament-form-card:has([data-scoring-mode="table_tennis"]) .tk-table-tennis-score__header { font-size:.84rem; }
  .tk-public-tournament-tennis-teams { display:grid; justify-items:center; gap:.38rem; width:100%; margin:.8rem 0; text-align:center; }
  .tk-public-tournament-tennis-teams > strong,.tk-public-tournament-tennis-teams > span { display:block; width:100%; text-align:center; }
  .tk-public-tournament-tennis-teams > strong { color:#173d6b; line-height:1.4; }
  .tk-public-tournament-tennis-teams > span { color:#6b819b; font-size:.85rem; font-weight:800; text-transform:lowercase; }
  .tk-table-tennis-score__scoreboard > div strong { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; justify-self:stretch; width:100%; }
  .tk-table-tennis-score__scoreboard > div strong .tk-table-tennis-score__player-name { min-width:0; text-align:center; }
  .tk-table-tennis-score__player-first-name,.tk-table-tennis-score__player-last-name { display:block; white-space:nowrap; }
  .tk-table-tennis-score__player-first-name::after { content:none; }
  .tk-table-tennis-score__header-player-first-name,.tk-table-tennis-score__header-player-last-name { display:block; white-space:nowrap; }
  .tk-table-tennis-score__header-player-first-name::after { content:none; }
  .tk-table-tennis-score__header .tk-tournament-handicap-badge { display:none; }
  .tk-table-tennis-score__scoreboard > div strong .tk-tournament-handicap-badge { position:static; grid-column:2; grid-row:1; min-width:1.55rem; margin-left:.24rem; font-size:.82em; transform:none; }
  /* Öffentliche mobile Doppel-/Mixed-Erfassung: Teammitglieder bleiben klar getrennt. */
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__scoreboard > div strong { display:block; min-height:0; padding-right:2rem; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__player-name.is-team { display:block; width:100%; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member,
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__header-player.is-team .tk-table-tennis-score__team-member { display:grid; gap:.04rem; justify-items:center; padding:.14rem 0; white-space:nowrap; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member + .tk-table-tennis-score__team-member,
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__header-player.is-team .tk-table-tennis-score__team-member + .tk-table-tennis-score__team-member { margin-top:.16rem; padding-top:.34rem; border-top:1px solid #d4dfec; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member-first-name,
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member-last-name { display:block; white-space:nowrap; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__team-member-first-name::after { content:none; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__scoreboard > div strong .tk-tournament-handicap-badge { position:absolute; top:50%; right:0; left:auto; grid-column:auto; grid-row:auto; margin:0; transform:translateY(-50%); }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__header-player.is-team { min-height:0; padding-right:2rem; }
  .tk-public-tournament-form-card .tk-table-tennis-score.is-team-match .tk-table-tennis-score__header-player.is-team .tk-tournament-handicap-badge { display:inline-flex; top:50%; right:0; }
  .tk-table-tennis-result-modal .tk-modal-body { padding:1rem; }
  .tk-table-tennis-score__header,.tk-table-tennis-score__row { grid-template-columns:36px minmax(0,1fr) minmax(0,1fr); gap:.45rem; padding-right:.55rem; padding-left:.55rem; }
  .tk-table-tennis-score__feedback { left:3rem; }
  .tk-table-tennis-result-modal__save-label { display:none; }
}
@media (max-width: 640px) { .tk-tournament-mode-card { align-items:stretch; flex-direction:column; } .tk-tournament-mode-form { width:100%; } .tk-tournament-mode-form .form-select { min-width:0; } }
@media (max-width: 640px) { .tk-tournament-bracket > .h5 { min-height:0; padding-right:0; } .tk-bracket-layout-control { position:static; margin:0 0 1rem; } .tk-bracket-layout-control .form-select { min-width:0; width:100%; } }
.tk-assignment-member { display:inline-flex; align-items:center; gap:.5rem; }
.tk-assignment-member img { width:28px; height:28px; border-radius:50%; object-fit:cover; background:#eef5fd; }
.tk-assignment-member > span { display:flex; flex-direction:column; gap:.2rem; }
.tk-assignment-note { min-width:150px; }
.tk-assignment-note-preview { display:block; color:#54749a; font-size:.9rem; }
.tk-assignment-error { display:block; color:#d93025; font-weight:600; }
.tk-assignment-global-note { display:block; margin-top:.8rem; }
.tk-assignment-modal table { margin-top:.85rem; }
.tk-assignment-modal table th:nth-child(2), .tk-assignment-modal table td:nth-child(2) { width:145px; }
.tk-assignment-modal table th:nth-child(3), .tk-assignment-modal table td:nth-child(3) { width:62px; }
.tk-assignment-modal table th:nth-child(4), .tk-assignment-modal table td:nth-child(4) { width:84px; }
.tk-assignment-modal table th:nth-child(5), .tk-assignment-modal table td:nth-child(5) { width:auto; }
.tk-assignment-modal table th:last-child, .tk-assignment-modal table td:last-child { text-align:right; }
@media (max-width:640px) { .tk-assignment-fields, .tk-assignment-add-row { grid-template-columns:1fr; } }
.tk-admin-page .tk-member-record-tabs { margin-bottom:0 !important; }
.tk-admin-page .tk-admin-shell .tk-member-record-tabs { margin-bottom:0 !important; padding-bottom:0; }
.tk-admin-page .tk-admin-hero + .tk-member-record-tabs + [data-inventory-panel] { margin-top:1.5rem !important; }
.tk-admin-page .tk-admin-hero + .tk-member-record-tabs + [data-inventory-panel] { padding-top:1.5rem !important; }
.tk-inventory-page .tk-member-record-tabs { margin-bottom:0 !important; }
.tk-inventory-page .tk-admin-hero + .tk-member-record-tabs { margin-top:1.5rem !important; }
.tk-inventory-page [data-inventory-panel] { display:flow-root; margin-top:1.5rem !important; }
.tk-inventory-stock-form > [class*="col-"] { flex:0 1 25%; width:auto; }
.tk-inventory-stock-form > .col-auto { flex:0 0 auto; }
@media (max-width:700px) { .tk-inventory-stock-form > [class*="col-"] { flex-basis:50%; } .tk-inventory-stock-form > .col-auto { flex-basis:auto; } }
@media (max-width: 640px) {
  .tk-admin-hero-with-image { flex-direction:column-reverse; align-items:stretch; }
  .tk-admin-hero-with-image .tk-admin-hero-image { align-self:center; }
}
/* Badminton-Ranglisten verwenden eine kompakte, app-weit passende Segmentsteuerung. */
.tk-tournament-ranking-tabs { display:flex; align-items:center; gap:.4rem; width:max-content; max-width:100%; margin:0 0 1rem; padding:.35rem; overflow-x:auto; border:1px solid rgba(156, 189, 228, .52); border-radius:.85rem; background:linear-gradient(135deg, rgba(237, 245, 255, .96), rgba(248, 251, 255, .96)); box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 3px 10px rgba(32, 82, 142, .06); scrollbar-width:thin; }
.tk-tournament-ranking-tabs button { position:relative; flex:0 0 auto; min-height:2.45rem; padding:.52rem 1.15rem .52rem .9rem; border:1px solid transparent; border-radius:.62rem; background:transparent; color:#55708f; font:inherit; font-size:.88rem; font-weight:750; line-height:1.2; white-space:nowrap; transition:background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease; }
.tk-tournament-ranking-tab-count { position:absolute; top:-.48rem; right:-.42rem; z-index:1; display:inline-grid; min-width:1.3rem; height:1.3rem; place-items:center; padding:0 .25rem; border:1px solid rgba(255,255,255,.9); border-radius:999px; background:linear-gradient(145deg, #ff6e78 0%, #dd2635 58%, #b91625 100%); box-shadow:0 3px 6px rgba(151, 21, 35, .34), inset 0 1px 0 rgba(255,255,255,.4); color:#fff; font-size:.68rem; font-weight:850; line-height:1; text-shadow:0 1px 1px rgba(102, 10, 19, .45); }
.tk-tournament-ranking-tabs button:hover { border-color:rgba(115, 166, 229, .36); background:rgba(255,255,255,.78); color:#195a9f; }
.tk-tournament-ranking-tabs button:focus-visible { outline:0; border-color:#4f96e7; box-shadow:0 0 0 3px rgba(79, 150, 231, .22); }
.tk-tournament-ranking-tabs button.is-active { border-color:rgba(47, 126, 214, .72); background:linear-gradient(135deg, #2f8be1, #1769bd); box-shadow:0 3px 8px rgba(28, 103, 184, .26), inset 0 1px 0 rgba(255,255,255,.3); color:#fff; }
.tk-tournament-ranking-tabs button.is-active:hover { background:linear-gradient(135deg, #2f8be1, #1769bd); color:#fff; transform:translateY(-1px); }
@media (max-width:640px) { .tk-tournament-ranking-tabs { width:100%; } .tk-tournament-ranking-tabs button { padding:.5rem .75rem; font-size:.82rem; } }
body .tk-member-record-tabs {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.2rem;
  width:100%;
  max-width:100%;
  padding:0 .6rem;
  border-bottom:1px solid rgba(163, 190, 224, .72);
  background:transparent;
  box-shadow:none;
}
body .tk-member-record-tabs .tk-member-tab-card {
  flex:0 0 auto;
  width:auto;
  min-height:0;
  margin-bottom:-1px;
  padding:.6rem .9rem .55rem;
  text-align:left;
  border:1px solid transparent;
  border-bottom:0;
  border-radius:.72rem .72rem 0 0;
  background:rgba(232, 240, 250, .72);
  box-shadow:none;
}
body .tk-member-record-tabs .tk-member-tab-main {
  justify-content:flex-start;
  gap:.5rem;
}
body .tk-member-record-tabs .tk-member-tab-icon-wrap {
  width:1.85rem;
  height:1.85rem;
  border-radius:.45rem;
  border-color:rgba(156, 185, 220, .3);
  background:rgba(255, 255, 255, .74);
}
body .tk-member-record-tabs .tk-member-tab-icon { width:1.05rem; height:1.05rem; }
body .tk-member-record-tabs .tk-member-tab-card strong { color:#526d91; font-size:.9rem; }
body .tk-member-record-tabs .tk-member-tab-count { position:static; margin-left:.1rem; }
body .tk-member-record-tabs .tk-member-tab-card:hover,
body .tk-member-record-tabs .tk-member-tab-card:focus-visible {
  border-color:rgba(105, 158, 228, .42);
  border-bottom-color:rgba(221, 235, 253, .88);
  background:rgba(221, 235, 253, .88);
  box-shadow:inset 0 2px 0 rgba(87, 151, 229, .42);
}
body .tk-member-record-tabs .tk-member-tab-card:hover strong,
body .tk-member-record-tabs .tk-member-tab-card:focus-visible strong { color:#19589d; }
body .tk-member-record-tabs .tk-member-tab-card.is-active {
  border-color:rgba(82, 143, 221, .52);
  border-bottom-color:#f8fbff;
  background:#f8fbff;
  box-shadow:inset 0 3px 0 #4e93e6;
}
body .tk-member-record-tabs .tk-member-tab-card.is-active strong { color:#0e4d92; }
body .tk-member-record-tabs .tk-member-tab-card.is-active .tk-member-tab-icon-wrap {
  border-color:rgba(93, 151, 224, .45);
  background:rgba(255, 255, 255, .86);
}
.tk-inventory-page .tk-admin-hero + .tk-member-record-tabs + [data-inventory-panel] {
  margin-top:.35rem !important;
  padding-top:0 !important;
}
.tk-inventory-page [data-inventory-panel] { margin-top:.35rem !important; }
.tk-inventory-page [data-inventory-panel] > .row { --bs-gutter-y:.35rem; }
.tk-inventory-page [data-inventory-panel] > .row > [class*="col-"]:first-child { margin-top:0 !important; }

/* Bestandsüberschriften bleiben auf ausreichend breiten Ansichten lesbar in einer Zeile. */
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th {
  white-space:nowrap;
  overflow:visible;
}
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(6),
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(6) {
  width:10.5rem;
}
.tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td.tk-inventory-actions-cell {
  text-align:right;
}
@media (max-width:1199.98px) {
  .tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th {
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table th:nth-child(6),
  .tk-inventory-page [data-inventory-panel="jerseys"] > .row > .col-lg-5 .tk-admin-panel > table td:nth-child(6) {
    width:7rem;
  }
}
@media (max-width:640px) {
  body .tk-member-record-tabs { width:100%; }
}
.tk-member-record-page .tk-member-search-row { flex-direction:row; flex-wrap:wrap; align-items:center; }
.tk-member-record-page .tk-member-search-row > .tk-user-search-wrap { flex:1 1 19rem; min-width:16rem; max-width:30rem; width:auto; }
.tk-member-record-page .tk-member-filter-control { flex:0 1 15rem; min-width:15rem; max-width:none; width:auto; }
.tk-member-record-page .tk-member-filter-control .tk-member-filter-select { width:100%; min-width:0; }
.tk-member-record-page .tk-member-filter-select { flex:0 1 15rem; min-width:15rem; max-width:none; width:auto; }
.tk-member-record-page .tk-member-number-filter { display:flex; align-items:center; gap:.4rem; flex:0 1 15rem; min-width:13rem; }
.tk-member-record-page .tk-member-number-filter input { min-width:0; }
.tk-member-record-page .tk-member-years-filter { flex:0 1 13rem; min-width:11rem; }
.tk-member-record-page .tk-member-checkbox-filter { display:flex; align-items:center; gap:.45rem; flex:0 0 auto; margin:0; padding-left:0; color:#29466d; font-size:.88rem; font-weight:600; white-space:nowrap; }
.tk-member-record-page .tk-member-checkbox-filter .form-check-input { flex:0 0 auto; margin:0; }
.tk-filter-multiselect { position:relative; flex:0 1 15rem; min-width:15rem; }
.tk-filter-multiselect > summary { display:flex; align-items:center; min-height:var(--form-control-height); padding:0 1rem; border:1px solid var(--textfield-border); border-radius:16px; background:linear-gradient(180deg, var(--textfield-bg-top), var(--textfield-bg-bottom)); color:var(--textfield-text); font-weight:700; cursor:pointer; list-style:none; }
.tk-filter-multiselect > summary::-webkit-details-marker { display:none; }
.tk-filter-multiselect-options { position:absolute; z-index:20; top:calc(100% + .35rem); left:0; display:grid; gap:.5rem; width:max-content; min-width:100%; max-width:calc(100vw - 1.5rem); padding:.75rem; border:1px solid #c7d9f2; border-radius:12px; background:#fff; box-shadow:0 .6rem 1.5rem rgba(23,61,107,.16); }
.tk-filter-multiselect-options .form-check { display:flex; align-items:center; width:max-content; max-width:100%; margin:0; white-space:nowrap; }
.tk-filter-multiselect-options .form-check-label { white-space:nowrap; }

@media (max-width: 1199.98px) {
  .tk-member-record-page .tk-member-search-row { flex-wrap:wrap; }
  .tk-member-record-page .tk-member-filter-control,
  .tk-member-record-page .tk-member-filter-select,
  .tk-member-record-page .tk-member-years-filter { flex:1 1 15rem; min-width:15rem; }
}

@media (max-width: 640px) {
  .tk-member-record-page .tk-member-search-row > .tk-user-search-wrap { flex-basis:100%; max-width:none; }
  .tk-member-record-page .tk-member-filter-control,
  .tk-member-record-page .tk-member-filter-select,
  .tk-member-record-page .tk-member-number-filter,
  .tk-member-record-page .tk-member-years-filter { flex:1 1 10rem; width:auto; }
  .tk-member-record-page .tk-member-checkbox-filter { flex-basis:100%; }
}

/* Inventarlisten verwenden denselben ruhigen Außenrahmen wie die Mitgliederliste. */
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-admin-panel > table.table-bordered {
  border: 1px solid rgba(120, 161, 218, 0.24);
  border-radius: 1.15rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: rgba(250, 252, 255, 0.82);
  box-shadow: 0 18px 36px -34px rgba(23, 47, 104, 0.36);
}

.tk-inventory-page [data-inventory-panel="jerseys"] .tk-admin-panel > table.table-bordered > :not(caption) > * > * {
  border-right-width: 0;
  border-left-width: 0;
}

.tk-inventory-page [data-inventory-panel="jerseys"] .tk-admin-panel > table.table-bordered > thead > tr:first-child > * {
  border-top-width: 0;
}

.tk-inventory-page [data-inventory-panel="jerseys"] .tk-admin-panel > table.table-bordered thead th {
  border-bottom: 1px solid rgba(94, 143, 210, 0.18);
  background: rgba(250, 252, 255, 0.72);
  color: #6d83a2;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tk-inventory-page [data-inventory-panel="jerseys"] .tk-admin-panel > table.table-bordered tbody td {
  border-bottom: 1px solid rgba(120, 161, 218, 0.14);
}

.tk-inventory-page [data-inventory-panel="jerseys"] .tk-admin-panel > table.table-bordered > tbody > tr:last-child > * {
  border-bottom-width: 0;
}

/* Das Aktionsmenü der Ausgabeliste darf den Tabellenrahmen überragen. */
.tk-inventory-page [data-jersey-assignments-card] > table.table-bordered {
  overflow: visible;
}

.tk-inventory-page [data-jersey-assignments-card] tbody tr:has(.tk-assignment-action-menu.is-open) {
  position: relative;
  z-index: 2;
}

/* Sportbekleidungsausgabe: controls wrap naturally, while only the data grid scrolls. */
.tk-inventory-page [data-jersey-assignments-card] {
  overflow: hidden !important;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-filter-row > * {
  flex: 1 1 10rem;
  min-width: 0;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-filter-row [data-assignment-search] {
  flex: 2 1 18rem;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(120, 161, 218, .24);
  border-radius: 1rem;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  table-layout: auto;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table th,
.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table td,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table th,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table td {
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Preserve the existing inventory-list look inside the new scroll viewport. */
.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table.table-bordered,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table.table-bordered {
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(250, 252, 255, .82);
  box-shadow: none;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table.table-bordered > :not(caption) > * > *,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table.table-bordered > :not(caption) > * > * {
  border-right-width: 0;
  border-left-width: 0;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table.table-bordered thead th,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table.table-bordered thead th {
  border-top-width: 0;
  border-bottom: 1px solid rgba(94, 143, 210, .18);
  background: rgba(250, 252, 255, .72);
  color: #6d83a2;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table.table-bordered tbody td,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table.table-bordered tbody td {
  border-bottom: 1px solid rgba(120, 161, 218, .14);
}

.tk-inventory-page [data-jersey-assignments-card] .tk-assignment-table-scroll > table.table-bordered > tbody > tr:last-child > *,
.tk-inventory-page [data-inventory-panel="jerseys"] .tk-inventory-stock-table-wrap > table.table-bordered > tbody > tr:last-child > * {
  border-bottom-width: 0;
}


.tk-user-page-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  color: #6d83a2;
  font-weight: 700;
}
@media (max-width: 640px) {
  .tk-member-record-page .tk-member-search-row { flex-wrap:wrap; }
  .tk-member-record-page .tk-member-filter-control,
  .tk-member-record-page .tk-member-filter-select { flex:1 1 15rem; min-width:15rem; }
}

.tk-partner-assignment-modal .tk-modal-body {
  padding-top: 1.25rem;
}

.tk-partner-assignment-modal .tk-modal-header > .tk-user-icon-btn {
  margin-left: auto;
}

.tk-partner-assignment-tournament-name {
  margin: 0 0 1.25rem;
  color: var(--bs-heading-color, #102b55);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.tk-partner-assignment-filters,
.tk-partner-assignment-cards {
  display: grid;
  gap: .875rem;
}

.tk-partner-assignment-filters {
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) auto;
  margin-bottom: 1rem;
}

.tk-partner-assignment-automatic-button {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  justify-content: center;
  padding: 0 .9rem;
  white-space: nowrap;
  width: auto;
}

.tk-partner-assignment-automatic-button .tk-user-icon-image {
  height: 1rem;
  width: 1rem;
}

.tk-partner-assignment-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tk-partner-assignment-cards .tk-admin-panel {
  min-width: 0;
}

.tk-partner-assignment-cards tbody tr:not(.text-muted) {
  cursor: pointer;
}

.tk-partner-assignment-cards tbody tr.is-selected > * {
  background: rgba(44, 125, 255, .14);
}

.tk-partner-assignment-feedback {
  color: #b54708;
  font-size: .95rem;
}

.tk-partner-assignment-save-tooltip-target {
  display: inline-flex;
}

.tk-tournament-registration-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  justify-content: flex-start;
  white-space: nowrap;
}

.tk-tournament-registration-class-state {
  align-items: center;
  display: grid;
  gap: .65rem;
  grid-template-columns: minmax(10rem, 1fr) auto auto;
}

.tk-tournament-registration-seeded {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  margin: 0;
  white-space: nowrap;
}

.tk-member-list-grid[data-tournament-participant-selection] th,
.tk-member-list-grid[data-tournament-participant-selection] td,
.tk-tournament-registration-table th,
.tk-tournament-registration-table td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tk-tournament-registration-class-state {
    grid-template-columns: minmax(10rem, 1fr) auto;
  }

  .tk-tournament-registration-class-state > .tk-admin-chip {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .tk-partner-assignment-filters,
  .tk-partner-assignment-cards {
    grid-template-columns: 1fr;
  }
}

[data-member-contact-form] .tk-member-contact-location-fields {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  width: 100%;
}

[data-member-contact-form] .tk-member-contact-location-fields .form-control {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
}

/* Keep the public member portal footer at the bottom on short pages. */
body.tk-member-portal-page .site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.tk-member-portal-page .site-shell > main {
  flex: 1 0 auto;
}

body.tk-member-portal-page .site-shell > .site-footer {
  margin-top: auto !important;
}

/* Temporärer Vollbild-Rahmen: Der Inhalt ist die unveränderte öffentliche Liveansicht. */
body.tk-tournament-live-presentation-page .site-header,
body.tk-tournament-live-presentation-page .tus-admin-sidebar,
body.tk-tournament-live-presentation-page .tk-admin-sidebar-backdrop { display:none !important; }
.tk-tournament-live-presentation { position:fixed; inset:0; background:#fff; }.tk-tournament-live-presentation iframe { width:100%; height:100%; border:0; }
.tk-tournament-live-presentation-countdown { position:fixed; z-index:100; top:1rem; right:1rem; display:grid; padding:.55rem .8rem; border:1px solid #b7d6fb; border-radius:12px; background:rgba(255,255,255,.94); box-shadow:0 3px 12px rgba(23,61,107,.16); color:#58749a; font-size:.74rem; font-weight:700; text-align:center; pointer-events:none; }.tk-tournament-live-presentation-countdown strong { color:#1768c2; font-size:1.25rem; }

/* Must come after card surfaces: those use overflow:hidden for rounded corners. */
body .table-responsive,
body .tk-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: auto;
  isolation: isolate;
  scrollbar-color: #76a7e5 #edf5ff;
  scrollbar-width: auto;
}

body .table-responsive::-webkit-scrollbar,
body .tk-table-scroll::-webkit-scrollbar {
  height: 12px;
}

body .table-responsive::-webkit-scrollbar-track,
body .tk-table-scroll::-webkit-scrollbar-track {
  background: #edf5ff;
  border-radius: 999px;
}

body .table-responsive::-webkit-scrollbar-thumb,
body .tk-table-scroll::-webkit-scrollbar-thumb {
  background: #76a7e5;
  border: 3px solid #edf5ff;
  border-radius: 999px;
}

@media (max-width: 575.98px) {
  [data-member-contact-form] .tk-member-contact-location-fields {
    flex-direction: column;
  }
}

/* Wiederverwendbare Auswertungskarte für Verwaltungslisten und Turniere. */
.tk-statistics-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(15rem,1fr)); gap:1rem; margin-bottom:1rem; }
.tk-statistics-grid--charts { grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr)); }
.tk-statistics-metric { display:grid; grid-template-rows:auto minmax(220px,auto) auto; align-content:start; gap:.6rem; padding:1rem; border:1px solid #d6e5f7; border-radius:12px; background:#f8fbff; }
.tk-statistics-metric h4 { margin:0; color:#173d6b; font-size:1rem; }
.tk-statistics-chart { position:relative; height:220px; min-width:0; }
.tk-statistics-chart canvas { max-width:100%; }
.tk-statistics-bar-list { display:grid; gap:.48rem; }
.tk-statistics-bar-row { display:grid; grid-template-columns:minmax(6rem,auto) minmax(5rem,1fr) auto; align-items:center; gap:.65rem; color:#31577f; font-size:.88rem; }
.tk-statistics-bar-track { height:.6rem; overflow:hidden; border-radius:999px; background:#e5effa; }
.tk-statistics-bar { height:100%; min-width:.25rem; border-radius:inherit; background:#4c91e8; }
.tk-statistics-bar.is-success { background:#32a879; }
.tk-statistics-bar.is-warning { background:#e9a23b; }
.tk-statistics-bar.is-purple { background:#8b6bd6; }
.tk-statistics-class-list { display:grid; gap:.7rem; margin:0; padding:0; list-style:none; }
.tk-statistics-class-list li { display:grid; gap:.35rem; }
.tk-statistics-class-label { display:flex; justify-content:space-between; gap:.75rem; color:#173d6b; font-weight:700; }
.tk-statistics-class-meta { color:#58749a; font-size:.86rem; }
.tk-statistics-badge-list { display:flex; flex-wrap:wrap; gap:.5rem; margin:0; padding:0; list-style:none; }
.tk-statistics-badge-list .tk-admin-chip { max-width:100%; overflow-wrap:anywhere; }
@media (max-width: 575.98px) { .tk-statistics-bar-row { grid-template-columns:1fr; gap:.2rem; } }

/* App-weite Typografie für Tabellenköpfe – Referenz: Gegnermannschaften. */
body table thead th {
  color: #17324f !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

/* Wiederverwendbares Aktionsmenü für Tabellenzeilen. */
.tk-row-action-menu { display: inline-flex; position: relative; }
.tk-row-action-menu.is-open { z-index: 10001; }
.tk-row-action-menu-panel {
  position: fixed;
  inset: auto;
  z-index: 2100;
  display: grid;
  min-width: 11.5rem;
  padding: .4rem;
  border: 1px solid rgba(120, 161, 218, .3);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .75rem 1.5rem rgba(23, 47, 104, .22);
}
.tk-row-action-menu-panel[hidden] { display: none; }
.tk-row-action-menu-panel form { margin: 0; }
.tk-row-action-menu-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .5rem .65rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: #26466f;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.tk-row-action-menu-item:hover,
.tk-row-action-menu-item:focus-visible { background: #edf5ff; color: #165dff; }
.tk-row-action-menu-item.is-danger { color: #b42318; }
.tk-row-action-menu-item.is-danger:hover,
.tk-row-action-menu-item.is-danger:focus-visible { background: #fff0f0; color: #b42318; }
.tk-row-action-menu-item img { width: 1rem; height: 1rem; object-fit: contain; }
.tk-ribbon-bye-score {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.tk-ribbon-bye-score .form-control {
  width: 4.5rem;
  min-width: 4.5rem;
}

.tk-admin-table .form-check:has(> input[data-hall-area-flag]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.5rem;
  margin: 0;
  padding-left: 0;
}

.tk-admin-table .form-check:has(> input[data-hall-area-flag]) > .form-check-input {
  float: none;
  margin: 0;
}
