/* Вынесено из tema/rankedin_new/tournament_timetable.tpl — 20261108, 1:1 без изменений.
   Правки стилей теперь только здесь, в tpl CSS не возвращать. */

/* === source: tournament_timetable.tpl (строки 116–164) === */

.eventCont { cursor: grab; }
.eventCont.grabbing { cursor: grabbing; user-select: none; }
.header-right { display: flex; align-items: center; gap: 10px; }
.tt-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-hover, #f8f9fa);
  border: 1px solid var(--surface-border, #e2e8f0);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.tt-refresh-btn:hover {
  background: var(--surface-active, #f1f5f9);
  color: var(--teal, #0d9488);
  border-color: var(--teal, #0d9488);
}
.tt-refresh-btn:active {
  transform: scale(0.96);
}
.tt-refresh-btn.is-spinning .tt-refresh-icon {
  animation: tt-refresh-spin 0.6s linear infinite;
}
.tt-refresh-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
@keyframes tt-refresh-spin {
  100% { transform: rotate(360deg); }
}
body.is-preview-mode .tt-refresh-btn,
body.is-preview-mode #tt-manual-refresh {
  display: none !important;
}
.live-badge.live-icon { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-hover); border: 1px solid var(--surface-border); border-radius: 999px; padding: 5px 8px; color: var(--text-muted); }
.live-badge .ring { transform: rotate(-90deg); flex-shrink: 0; }
.live-badge .ring-bg { fill: none; stroke: var(--surface-border); stroke-width: 2.5; }
.live-badge .ring-fg { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 43.98; stroke-dashoffset: 43.98; animation: none; }
.live-badge.anim .ring-fg { animation: ringfill var(--ring-time, 60000ms) linear forwards; }
@keyframes ringfill { from { stroke-dashoffset: 43.98; } to { stroke-dashoffset: 0; } }
.live-badge .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good-text); box-shadow: 0 0 0 3px var(--good-bg); animation: liveDotPulse 1.6s ease-in-out infinite; }
@keyframes liveDotPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 3px var(--good-bg); } 50% { opacity: 0.45; box-shadow: 0 0 0 5px rgba(16,185,129,0.08); } }
@media(prefers-reduced-motion:reduce){ .live-badge .live-dot { animation: none; } }

/* ==========================================================================
   v3: Hero-шапка и фильтры (день + корт). Стили НЕ затрагивают .eventCont
   и таблицу расписания — масштаб/ячейки/зум сохранены без изменений.
   ========================================================================== */

.tournament-timetable-v3 {
  --ttv-teal: var(--teal, #0d9488);
  --ttv-teal-dark: var(--teal-dark, #0b7d73);
  --ttv-surface: var(--surface, #ffffff);
  --ttv-surface-border: var(--surface-border, #e2e8f0);
  --ttv-text: var(--text, #0f172a);
  --ttv-muted: var(--text-muted, #475569);
  --ttv-grad: var(--grad, linear-gradient(135deg, #0d9488, #6366f1));
  --ttv-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07);
  --ttv-r-lg: var(--r-lg, 20px);
  --ttv-r-md: var(--r-md, 14px);
}

/* ── Hero секция ── */
.tournament-timetable-v3 .hero {
  background: var(--ttv-grad);
  border-radius: var(--ttv-r-lg);
  padding: 18px 24px !important;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(13, 148, 136, 0.55);
  margin-bottom: 16px;
}
.tournament-timetable-v3 .hero::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.tournament-timetable-v3 .hero > * {
  position: relative;
  z-index: 1;
}
.tournament-timetable-v3 .hero h1 {
  font-family: var(--pr-font-heading, Manrope, Inter, system-ui, sans-serif);
  font-size: 22px !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #fff;
}
.tournament-timetable-v3 .hero .sub {
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.94;
  color: #fff;
}
.tournament-timetable-v3 .hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tournament-timetable-v3 .hero .chip {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--ttv-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: none !important;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Фильтры: день + корт ── */
.tournament-timetable-v3 .controls.tt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 0 0 14px;
}
.tournament-timetable-v3 .tt-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tournament-timetable-v3 .tt-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ttv-muted);
}
.tournament-timetable-v3 .tt-filter-group .select {
  flex: 0 0 auto;
  min-width: 150px;
  max-width: 240px;
  width: auto !important;
  height: 40px;
  border: 1px solid var(--ttv-surface-border);
  border-radius: var(--ttv-r-md);
  background-color: var(--ttv-surface);
  color: var(--ttv-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 34px 0 12px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-shadow: var(--ttv-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tournament-timetable-v3 .tt-filter-group .select:focus {
  outline: none;
  border-color: var(--ttv-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}
.tournament-timetable-v3 .tt-filter-hint {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ttv-muted);
  opacity: 0.75;
  padding-bottom: 10px;
}
@media (max-width: 640px) {
  .tournament-timetable-v3 .hero { padding: 16px 16px !important; }
  .tournament-timetable-v3 .hero h1 { font-size: 19px !important; }
  .tournament-timetable-v3 .hero .meta { gap: 6px; }
  .tournament-timetable-v3 .hero .chip { font-size: 11.5px; padding: 4px 10px; }
  .tournament-timetable-v3 .controls.tt-filters { gap: 8px; }
  .tournament-timetable-v3 .tt-filter-group { flex: 1 1 46%; }
  .tournament-timetable-v3 .tt-filter-group .select { width: 100% !important; min-width: 0; max-width: none; }
  .tournament-timetable-v3 .tt-filter-hint { display: none; }
}

/* Тёмная тема (аналог profile_v3 / category v3) */
[data-theme="dark"] .tournament-timetable-v3 .hero { border: 1px solid var(--ttv-surface-border); }
[data-theme="dark"] .tournament-timetable-v3 .hero .chip {
  background: rgba(17, 24, 39, 0.82) !important;
  color: #f9fafb !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
[data-theme="dark"] .tournament-timetable-v3 .tt-filter-group .select {
  background-color: var(--ttv-surface);
  color: var(--ttv-text);
}

/* Печать: hero и фильтры не выводятся ([[noprint]] в tpl) — страховка */
@media print {
  .tournament-timetable-v3 .hero,
  .tournament-timetable-v3 .controls.tt-filters { display: none !important; }
}

/* Mobile/tablet audit 2026-11-27: readable and tappable zoom, local scroll. */
@media screen and (max-width:1100px) {
  .tournament-timetable-v3 .tt-zoom-bar { flex-wrap:wrap; justify-content:flex-start; gap:6px; }
  .tournament-timetable-v3 .tt-zoom { max-width:100%; min-width:0; flex-wrap:wrap; gap:4px; padding:4px 6px; border-radius:12px; }
  .tournament-timetable-v3 .tt-zoom-btn,
  .tournament-timetable-v3 .tt-zoom-reset { width:36px; height:36px; min-width:36px; min-height:36px; }
  .tournament-timetable-v3 .tt-zoom-range { flex:1 1 76px; min-width:60px; width:100px; height:32px; }
  .tournament-timetable-v3 .tt-zoom-value { min-height:32px; min-width:44px; justify-content:center; }
  .tournament-timetable-v3 .eventCont { scrollbar-width:thin; scrollbar-color:var(--teal) var(--surface-hover); overscroll-behavior-x:contain; }
}

/* Compact schedule: make the name readable, not the sticky court column oversized. */
.tournament-timetable-v3 .eventCont {
  --tt-base-cell-width:180px; --tt-base-cell-height:96px;
  --tt-base-head-width:130px; --tt-base-court-width:130px; --tt-base-col-head-height:36px;
}
@media screen and (max-width:1200px) {
  .tournament-timetable-v3 .eventCont {
    --tt-base-cell-width:180px; --tt-base-cell-height:110px;
    --tt-base-head-width:94px; --tt-base-court-width:94px; --tt-base-col-head-height:32px;
    --tt-cell-width:180px; --tt-cell-height:110px; --tt-head-width:94px; --tt-court-width:94px;
    padding:6px !important;
  }
  .tournament-timetable-v3 .timetable table { border-spacing:calc(4px * var(--tt-scale,1)) !important; }
  .tournament-timetable-v3 .timetable table tr.rowHead th:first-child,
  .tournament-timetable-v3 .timetable table tr:not(.rowHead) th:first-child {
    box-sizing:border-box !important; max-width:var(--tt-court-width) !important;
    padding:5px 4px !important; text-align:center !important;
    font-size:clamp(12px,calc(12px * var(--tt-scale,1)),16px) !important;
    font-weight:650 !important; white-space:normal !important; overflow-wrap:anywhere !important;
    line-height:1.25 !important;
  }
  .tournament-timetable-v3 .court-name-wrap { flex-direction:column; gap:2px; align-items:center; }
  .tournament-timetable-v3 .timetable textarea.court-name-input {
    padding:2px !important; min-height:24px !important; font-size:clamp(12px,calc(12px * var(--tt-scale,1)),16px) !important;
    font-weight:650; text-align:center; line-height:1.25 !important; white-space:pre-wrap;
  }
  .tournament-timetable-v3 .court-edit-icon { font-size:10px; }
  .tournament-timetable-v3 .timetable .cell { padding:calc(5px * var(--tt-scale,1)) !important; height:auto !important; min-height:0 !important; }
  .tournament-timetable-v3 .timetable .cell-handle { gap:4px; height:auto !important; min-height:0 !important; }
  .tournament-timetable-v3 .timetable .row:not(.alwaysBot) { margin-inline:0 !important; min-width:0; }
  .tournament-timetable-v3 .timetable .team { gap:4px !important; min-width:0; }
  .tournament-timetable-v3 .timetable .elipsis { white-space:normal !important; align-items:flex-start !important; gap:4px; }
  .tournament-timetable-v3 .timetable .player-name {
    flex:1 1 0; white-space:normal !important; overflow:visible !important;
    overflow-wrap:anywhere !important; text-overflow:clip !important;
    font-size:clamp(12px,calc(13px * var(--tt-scale,1)),18px) !important; line-height:1.25;
  }
  .tournament-timetable-v3 .timetable .player-name .tt-name-short { display:none; }
  .tournament-timetable-v3 .timetable .player-name .tt-name-full[hidden] { display:inline !important; }
  .tournament-timetable-v3 .timetable .score { padding:2px 4px !important; }
  .tournament-timetable-v3 .timetable .alwaysBot { flex-wrap:wrap !important; gap:2px 4px; margin-inline:0 !important; }
  .tournament-timetable-v3 .timetable .alwaysBot .tt-meta-round { flex:1 1 auto !important; white-space:normal !important; overflow-wrap:anywhere; }
}
@media screen and (max-width:480px) {
  .tournament-timetable-v3 .eventCont {
    --tt-base-cell-width:172px; --tt-base-cell-height:112px;
    --tt-base-head-width:88px; --tt-base-court-width:88px;
    --tt-cell-width:172px; --tt-cell-height:112px; --tt-head-width:88px; --tt-court-width:88px;
    padding:4px !important;
  }
  .tournament-timetable-v3 .timetable table tr.rowHead th:first-child { font-size:12px !important; padding:4px 2px !important; }
}

/* Readability wins over shaving another few pixels off the timetable. */
.tournament-timetable-v3 .timetable .player-name {
  flex:1 1 0; white-space:normal !important; overflow:visible !important;
  text-overflow:clip !important; overflow-wrap:anywhere !important;
  line-height:1.3;
}
.tournament-timetable-v3 .timetable .elipsis { white-space:normal !important; align-items:flex-start !important; }
.tournament-timetable-v3 .timetable .alwaysBot {
  display:grid !important; grid-template-columns:minmax(0,1fr) auto; align-items:start !important;
  gap:3px 5px; overflow:visible !important; padding-top:4px !important; margin-top:5px !important;
}
.tournament-timetable-v3 .timetable .alwaysBot .tt-meta-cat,
.tournament-timetable-v3 .timetable .alwaysBot .tt-meta-round,
.tournament-timetable-v3 .timetable .alwaysBot .tt-meta-dop {
  max-width:none !important; min-width:0 !important; width:auto !important; padding:0 !important;
  white-space:normal !important; overflow:visible !important; text-overflow:clip !important;
  overflow-wrap:anywhere; text-align:left !important; font-size:clamp(7px,calc(11px * var(--tt-scale,1)),16px) !important; line-height:1.25 !important;
}
.tournament-timetable-v3 .timetable .alwaysBot .tt-meta-cat { grid-column:1; grid-row:1; }
.tournament-timetable-v3 .timetable .alwaysBot .tt-meta-dop { grid-column:2; grid-row:1; max-width:80px !important; }
.tournament-timetable-v3 .timetable .alwaysBot .tt-meta-round { grid-column:1/-1; grid-row:2; }
.tournament-timetable-v3 .timetable .tt-stage-badge { white-space:normal !important; font-size:clamp(7px,calc(11px * var(--tt-scale,1)),16px) !important; align-items:flex-start !important; }
.tournament-timetable-v3 .timetable .tt-stage-text { white-space:normal !important; overflow-wrap:anywhere; }
.tournament-timetable-v3 .timetable .tt-cat-full[hidden] { display:none !important; }
.tournament-timetable-v3 .timetable .cell,
.tournament-timetable-v3 .timetable .cell-handle { height:auto !important; min-height:0 !important; }
.tournament-timetable-v3 .tt-filter-choice { min-width:0; }
.tournament-timetable-v3 .tt-filter-choice .tt-select-display { display:none; }
@media screen and (max-width:1200px) {
  .tournament-timetable-v3 .timetable table tr:not(.rowHead) th.court-head,
  .tournament-timetable-v3 .timetable table tr.rowHead th:first-child {
    overflow:visible !important; text-overflow:clip !important; white-space:normal !important;
    font-size:12px !important; line-height:1.3 !important;
  }
  .tournament-timetable-v3 .timetable .court-name-wrap { width:100%; }
  .tournament-timetable-v3 .timetable textarea.court-name-input {
    font-size:12px !important; line-height:1.3 !important; text-overflow:clip !important;
    overflow-wrap:anywhere !important; padding:2px !important;
  }
  .tournament-timetable-v3 .timetable .tt-meta-cat .tt-cat-short { display:none; }
  .tournament-timetable-v3 .timetable .tt-meta-cat .tt-cat-full[hidden] { display:inline !important; }
}
@media screen and (max-width:640px) {
  .tournament-timetable-v3 .controls.tt-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
  .tournament-timetable-v3 .tt-filter-group { min-width:0; }
  .tournament-timetable-v3 .tt-filter-choice { position:relative; }
  .tournament-timetable-v3 .tt-filter-choice .tt-select-display {
    display:block; min-height:44px; box-sizing:border-box; width:100%;
    padding:8px 29px 8px 10px; border:1px solid var(--ttv-surface-border); border-radius:var(--ttv-r-md);
    background:var(--ttv-surface); color:var(--ttv-text); font-size:14px; font-weight:700;
    line-height:1.3; overflow-wrap:anywhere; white-space:normal;
  }
  .tournament-timetable-v3 .tt-filter-choice::after {
    content:""; position:absolute; right:13px; top:18px; width:7px; height:7px;
    border-right:1.8px solid var(--ttv-muted); border-bottom:1.8px solid var(--ttv-muted);
    transform:rotate(45deg); pointer-events:none;
  }
  .tournament-timetable-v3 .tt-filter-choice .select {
    opacity:0; position:absolute; inset:0; height:100% !important; width:100% !important; cursor:pointer; z-index:1;
  }
  .tournament-timetable-v3 .tt-filter-choice:focus-within .tt-select-display {
    outline:2px solid var(--ttv-teal); outline-offset:2px;
  }
  .tournament-timetable-v3 .tt-zoom-range { min-width:60px; }
}
@media screen and (max-width:480px) {
  .tournament-timetable-v3 .controls.tt-filters { grid-template-columns:minmax(0,1fr); gap:7px; }
}

@media screen and (max-width:768px) {
  .tournament-timetable-v3 .timetable .alwaysBot :is(.tt-meta-cat,.tt-meta-round,.tt-meta-dop),
  .tournament-timetable-v3 .timetable .tt-stage-badge { font-size:11px !important; }
}


/* Schedule views: compact code rail and readable court/time agenda.
   Keep source table, sorting, editing, and print layout intact. */
.tt-view-tools[hidden], .tt-list-view[hidden], .tt-court-legend[hidden], .tt-edit-hint[hidden] { display:none!important; }
.tt-view-tools { min-width:0; margin:0 0 12px; }
.tt-view-switch { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; max-width:490px; padding:3px; border:1px solid var(--surface-border); border-radius:12px; background:var(--surface-hover); }
.tt-view-switch button { border:1px solid transparent; background:transparent; color:var(--text-muted); border-radius:8px; min-height:38px; min-width:0; padding:6px 5px; font:700 13px/1.25 var(--pr-font-ui, Inter, system-ui, sans-serif); cursor:pointer; white-space:normal; overflow-wrap:anywhere; }
.tt-view-switch button[aria-pressed=true] { color:var(--teal); background:var(--surface); border-color:var(--surface-border); box-shadow:0 1px 3px rgba(15,23,42,.06); }
.tt-view-switch button:focus-visible,.tt-court-code:focus-visible,.tt-legend-item:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.tt-court-legend { margin-top:10px; border:1px solid var(--surface-border); border-radius:10px; padding:9px; background:var(--surface); }
.tt-legend-title { font:700 12px/1.35 var(--pr-font-ui, Inter, system-ui, sans-serif); color:var(--text-muted); margin-bottom:6px; }
.tt-legend-items { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:5px 12px; }
.tt-legend-item { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:7px; min-width:0; }
.tt-legend-code { display:inline-flex; align-items:center; justify-content:center; background:var(--teal-glow); color:var(--teal); min-width:30px; padding:4px 5px; border-radius:6px; font:750 12px/1.2 var(--pr-font-ui, Inter, system-ui, sans-serif); white-space:nowrap; font-variant-numeric:tabular-nums; }
.tt-legend-name { font-size:13px; line-height:1.3; padding:3px 0; overflow-wrap:anywhere; min-width:0; }
.tt-legend-item textarea.tt-legend-input { box-sizing:border-box!important; display:block!important; width:100%!important; max-width:100%!important; min-width:0!important; min-height:34px!important; padding:5px 7px!important; border:1px solid var(--surface-border); border-radius:7px; background:var(--surface-hover); color:var(--text); text-align:left!important; font:600 13px/1.35 var(--pr-font-ui, Inter, system-ui, sans-serif)!important; white-space:pre-wrap!important; overflow-wrap:anywhere; resize:none; field-sizing:content; }
.tt-edit-hint { margin:8px 0 0; color:var(--text-muted); font-size:12px; line-height:1.4; }
.tt-grid-day-label,.tt-grid-corner,.tt-court-code,.tt-slot-code { display:none; }
@media screen {
  .tt-view-enhanced .timetable-content-area[hidden] { display:none!important; }
  .tt-view-enhanced[data-tt-view=grid] .tt-grid-day-label { display:block; font-size:14px; font-weight:750; margin:12px 0 5px; font-variant-numeric:tabular-nums; }
  .tt-view-enhanced[data-tt-view=grid] .tt-filter-hint { display:inline; }
  .tt-view-enhanced:not([data-tt-view=grid]) .tt-filter-hint { display:none!important; }
}
.tt-list-view { min-width:0; display:grid; gap:16px; }
.tt-list-day { display:grid; gap:9px; min-width:0; }
.tt-list-date { margin:0; font:750 15px/1.3 var(--pr-font-ui, Inter, system-ui, sans-serif); color:var(--text); }
.tt-list-group { min-width:0; border:1px solid var(--surface-border); border-radius:11px; overflow:hidden; background:var(--surface); }
.tt-list-group-title { margin:0; display:flex; align-items:center; gap:7px; padding:9px 10px; background:var(--surface-hover); color:var(--text); font:750 13px/1.35 var(--pr-font-ui, Inter, system-ui, sans-serif); }
.tt-list-group-title .tt-list-group-name { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.tt-list-count { margin-left:auto; flex-shrink:0; color:var(--text-muted); font-size:11px; font-weight:550; }
.tt-list-match { min-width:0; display:grid; grid-template-columns:50px minmax(0,1fr); gap:10px; padding:11px 10px; border-top:1px solid var(--surface-border); align-items:start; }
.tt-list-when { color:var(--teal); font:750 13px/1.35 var(--pr-font-ui, Inter, system-ui, sans-serif); font-variant-numeric:tabular-nums; padding-top:2px; }
.tt-list-info { min-width:0; }
.tt-list-player { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:start; margin-bottom:4px; color:var(--text); font:650 14px/1.4 var(--pr-font-ui, Inter, system-ui, sans-serif); }
.tt-list-player-name,.tt-list-court { overflow-wrap:anywhere; min-width:0; white-space:normal; }
.tt-list-score { font-weight:800; color:var(--teal); font-variant-numeric:tabular-nums; }
.tt-list-court { color:var(--text-muted); font:650 12px/1.35 var(--pr-font-ui, Inter, system-ui, sans-serif); margin-bottom:5px; }
.tt-list-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; color:var(--text-muted); font:550 12px/1.35 var(--pr-font-ui, Inter, system-ui, sans-serif); overflow-wrap:anywhere; margin-top:6px; }
.tt-list-status { font-weight:700; }
.tt-list-status[data-state=done] { color:var(--good-text); }
.tt-list-status[data-state=live] { color:var(--info-text); }
.tt-list-status[data-state=walkover] { color:var(--warn-text); }
.tt-list-empty { color:var(--text-muted); padding:12px; margin:0; }
@media(max-width:480px) {
  .tt-view-switch button { font-size:12px; min-height:40px; }
  .tt-list-match { grid-template-columns:43px minmax(0,1fr); gap:8px; padding:9px 8px; }
  .tt-legend-items { grid-template-columns:minmax(0,1fr); }
  .tt-list-group-title { padding:8px; }
}
@media print {
  .tt-view-tools,.tt-list-view,.tt-grid-day-label,.tt-grid-corner,.tt-court-code,.tt-slot-code { display:none!important; }
  .tt-view-enhanced .timetable-content-area { display:block!important; }
  .tt-grid-original { display:inline!important; }
}
.is-preview-mode .tt-legend-input { pointer-events:none; border-color:transparent!important; background:transparent!important; }
.is-preview-mode .tt-edit-hint { display:none!important; }/* Timetable control hub A: one compact, scoped toolbar; full-width native dialogs. */
.tournament-timetable-v3 .hero.tt-compact-hero {
  padding:10px 12px!important;margin:0 0 8px!important;border-radius:10px;
  box-shadow:0 10px 30px -12px rgba(13,148,136,.55);background:var(--ttv-grad);color:#fff;border:1px solid transparent;
}
.tournament-timetable-v3 .tt-compact-hero::after {display:none;}
.tournament-timetable-v3 .tt-compact-hero .sub {color:#fff;font-size:clamp(16px,2vw,21px);font-weight:750;opacity:1;line-height:1.35;overflow-wrap:anywhere;}
.tt-tournament-details summary {cursor:pointer;color:#fff;font-size:12px;line-height:1.4;margin-top:3px;}
.tournament-timetable-v3 .tt-compact-hero .meta {margin-top:5px;gap:4px;}
.tournament-timetable-v3 .tt-compact-hero .chip {background:var(--surface-hover)!important;color:var(--ttv-text)!important;border-color:var(--ttv-surface-border)!important;padding:4px 7px;white-space:normal;}
.tournament-timetable-v3 .tt-schedule-section {min-width:0;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
.tt-control-hub {display:grid;gap:7px;min-width:0;margin-bottom:10px;}
.tt-hub-head {display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;}
.tt-hub-head h1 {font:750 20px/1.2 var(--pr-font-heading, Manrope, Inter, system-ui, sans-serif);color:var(--ttv-text);margin:0;min-width:0;overflow-wrap:anywhere;}
.tt-hub-actions {display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-shrink:0;}
.tt-hub-stats {margin:0;color:var(--ttv-muted);font-size:12px;line-height:1.3;}
.tt-hub-btn {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:38px;padding:6px 9px;border-radius:8px;border:1px solid var(--ttv-surface-border);background:var(--ttv-surface);color:var(--ttv-text);font:650 13px/1.3 var(--pr-font-ui, Inter, system-ui, sans-serif);cursor:pointer;white-space:normal;text-align:center;box-sizing:border-box;}
.tt-hub-btn:hover {background:var(--surface-hover);}
.tt-hub-btn:focus-visible,.tt-day-summary:focus-visible,.tt-tournament-details summary:focus-visible {outline:2px solid var(--teal);outline-offset:2px;}
.tt-hub-btn svg {flex:none;}
.tt-hub-actions #tt-manual-refresh {width:36px;height:36px;min-width:36px;padding:0;justify-content:center;border-radius:8px;}
.tt-hub-actions .tt-refresh-label {display:none;}
.tt-hub-actions #tt-live {min-height:34px;padding:5px 7px;}
.tt-finished {font-size:11px;color:var(--ttv-muted);white-space:nowrap;}
.tt-control-hub .tt-view-tools {display:grid;gap:7px;min-width:0;margin:0;}
.tt-control-hub .tt-view-switch {max-width:none;}
.tt-hub-filters {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:start;}
.tt-filter-trigger {justify-content:flex-start;text-align:left;min-height:42px;}
.tt-filter-trigger #tt-filter-summary {flex:1;min-width:0;overflow-wrap:anywhere;}
.tt-filter-active {border-color:var(--teal);color:var(--teal);}
.tt-chevron {width:7px;height:7px;flex:0 0 7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);margin:0 2px 3px;}
.tt-legend-trigger {color:var(--teal);min-height:42px;}
.tt-legend-trigger[aria-expanded=true] .tt-chevron {transform:rotate(225deg);margin:3px 2px 0;}
.tt-view-enhanced .controls.tt-filters,.tt-view-enhanced .tt-actions-fallback {display:none!important;}
.tt-control-hub .tt-court-legend {margin:0;padding:7px 9px;border-radius:8px;}
.tt-control-hub .tt-legend-title {margin:0 0 4px;font-size:11px;font-weight:550;}
.tt-control-hub .tt-legend-items {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:4px 10px;}
.tt-control-hub .tt-legend-item {gap:6px;align-items:start;}
.tt-control-hub .tt-legend-code {min-width:29px;padding:3px 4px;font-size:12px;}
.tt-control-hub .tt-legend-name {font-size:12px;padding:2px 0;line-height:1.35;}
.tt-control-hub .tt-legend-item textarea.tt-legend-input {display:none!important;}
.tt-control-hub .tt-legend-editing .tt-legend-item:has(.tt-legend-input) .tt-legend-name {display:none;}
.tt-control-hub .tt-legend-editing .tt-legend-item textarea.tt-legend-input {display:block!important;}
.tt-control-hub .tt-legend-edit-btn {margin-top:6px;min-height:34px;font-size:12px;}
.is-preview-mode .tt-legend-edit-btn {display:none!important;}
.tt-control-hub .tt-edit-hint {margin:0;font-size:12px;}
.tt-hub-dialog {width:min(420px,calc(100% - 20px));max-width:100%;max-height:85vh;max-height:85dvh;padding:0;border:1px solid var(--ttv-surface-border);border-radius:14px;background:var(--ttv-surface);color:var(--ttv-text);box-shadow:0 16px 48px #0004;overflow:auto;}
.tt-hub-dialog:not([open]) {display:none;}
.tt-hub-dialog::backdrop {background:rgba(0,0,0,.55);}
.tt-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-bottom:1px solid var(--ttv-surface-border);background:var(--ttv-surface);position:sticky;top:0;z-index:2;}
.tt-dialog-head h2 {font:750 16px/1.35 var(--pr-font-heading, Manrope, Inter, system-ui, sans-serif);margin:0;color:var(--ttv-text);}
.tt-dialog-close {font-size:20px;width:36px;height:36px;min-width:36px;padding:0;}
.tt-dialog-body {display:grid;gap:8px;padding:12px;min-width:0;}
.tt-dialog-body label {font-size:13px;font-weight:700;color:var(--ttv-text);}
.tt-dialog-select {width:100%;min-width:0;min-height:44px;border:1px solid var(--ttv-surface-border);border-radius:8px;background:var(--ttv-surface);color:var(--ttv-text);padding:8px;font:600 14px/1.3 var(--pr-font-ui, Inter, system-ui, sans-serif);}
.tt-dialog-actions {display:grid;grid-template-columns:1fr 1.5fr;gap:6px;margin-top:6px;}
.tt-dialog-actions .tt-hub-btn {min-height:44px;}
.tt-hub-btn.tt-primary {border-color:var(--teal);color:var(--teal);background:var(--surface-hover);}
.tt-menu-action {justify-content:flex-start;text-align:left;min-height:44px;}
.tt-menu-help {font-size:12px;color:var(--ttv-muted);margin:2px 0 0;line-height:1.4;}
#tt-open-all:empty {display:none;}
#tt-open-all a {max-width:100%;white-space:normal!important;}
.tt-view-enhanced .timetable-header {display:none;}
.tt-view-enhanced[data-tt-view=grid] .tt-grid-day-label {display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0 5px;font-size:13px;min-width:0;}
.tt-day-date {min-width:0;overflow-wrap:anywhere;}
.tt-day-options {min-width:0;}
.tt-day-summary {cursor:pointer;list-style:none;display:flex;align-items:center;gap:5px;justify-content:flex-end;border:1px solid var(--ttv-surface-border);border-radius:8px;padding:5px 7px;min-height:34px;font-size:12px;color:var(--ttv-muted);background:var(--ttv-surface);white-space:nowrap;}
.tt-day-summary::-webkit-details-marker {display:none;}
.tt-day-summary::after {content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px;}
.tt-day-options[open] .tt-day-summary::after {transform:rotate(225deg);margin:3px 2px 0;}
.tt-view-enhanced .tt-grid-day-label:has(.tt-day-options[open]) {flex-wrap:wrap;}
.tt-view-enhanced .tt-day-options[open] {flex:0 1 auto;display:grid;gap:5px;margin-left:auto;max-width:100%;justify-items:end;}
.tt-view-enhanced .tt-day-options .tt-day-head {margin:0;justify-content:flex-end;max-width:100%;}
.tt-view-enhanced .tt-day-options .tt-day-actions {gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:100%;}
.tt-view-enhanced .tt-day-options .tt-zoom {flex-wrap:wrap;max-width:100%;}
.tt-view-enhanced:not([data-tt-view=grid]) .tt-touch-editor {display:none!important;}
.tt-view-enhanced .tt-touch-editor {margin:0 0 6px;padding:6px!important;}
.tt-view-enhanced .tt-touch-editor:not(:has(.tt-touch-controls:not([hidden]))) {padding:0!important;border:0;background:transparent;}
.tt-view-enhanced .tt-touch-editor [data-tt-toggle] {min-height:36px!important;font-size:12px;}
@media(min-width:850px) {
  .tt-control-hub .tt-view-tools {grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;}
  .tt-control-hub .tt-court-legend,.tt-control-hub .tt-edit-hint {grid-column:1/-1;}
  .tt-control-hub .tt-view-switch {max-width:490px;}
}
@media(max-width:480px) {
  .tt-hub-head h1 {font-size:17px;}
  .tt-hub-actions {gap:4px;}
  .tt-hub-actions .tt-finished {font-size:10px;white-space:nowrap;}
  .tt-hub-btn {font-size:12px;padding:6px;}
  .tt-legend-trigger {max-width:122px;}
  .tt-hub-dialog {width:100%;max-width:100%;margin:auto auto 0;border-radius:14px 14px 0 0;padding-bottom:env(safe-area-inset-bottom);}
  .tt-control-hub .tt-legend-items {grid-template-columns:minmax(0,1fr);}
}
@media print {
  .tt-control-hub,.tt-compact-hero,.tt-hub-dialog,.tt-touch-editor {display:none!important;}
  .tt-view-enhanced .timetable-header {display:block!important;}
  .tt-day-options {display:none!important;}
}
/* Full chosen names remain visible even when the native picker abbreviates them. */
.tt-dialog-selected {font-size:12px;line-height:1.35;color:var(--ttv-muted);overflow-wrap:anywhere;margin:0;}
.tt-dialog-selected[hidden] {display:none!important;}
.tt-view-enhanced .tt-control-hub .tt-view-tools {margin:0!important;}
.tt-rename-courts[hidden], .tt-finished[hidden] {display:none!important;}
@media(max-width:360px) {
  .tt-hub-head {flex-wrap:wrap;}
  .tt-hub-head h1 {flex:1 1 auto;}
  .tt-hub-actions {max-width:100%;flex-shrink:1;}
  .tt-hub-actions .tt-finished {font-size:10px;}
}

.tt-hub-dialog [hidden], .tt-control-hub [hidden] {display:none!important;}
/* Desktop keeps the original full court names and horizontal scrolling.
   Compact codes apply only to phone/tablet layouts. */
@media screen {
  .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .timetable table tr:not(.rowHead) th:first-child {
    position:relative!important;left:auto!important;z-index:auto!important;
    white-space:normal!important;overflow-wrap:anywhere;
  }
  .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .timetable table tr.rowHead th:first-child {
    left:auto!important;z-index:6!important;
  }
  .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .timetable .tt-grid-original {display:block;}
  .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .timetable .court-name-wrap {width:100%;}
}
@media screen and (max-width:849px), screen and (max-width:1366px) and (pointer:coarse) {
  .tt-view-enhanced[data-tt-view=grid] .timetable table tr.rowHead th:first-child,
  .tt-view-enhanced[data-tt-view=grid] .timetable table tr:not(.rowHead) th:first-child {
    box-sizing:border-box!important; width:40px!important; min-width:40px!important; max-width:40px!important;
    padding:3px 2px!important; text-align:center!important; white-space:normal!important; overflow:visible!important;
    font:700 11px/1.25 var(--pr-font-ui, Inter, system-ui, sans-serif)!important;
    position:sticky!important; left:0!important; z-index:5!important;
  }
  .tt-view-enhanced[data-tt-view=grid] .timetable table tr.rowHead th:first-child { z-index:7!important; }
  .tt-view-enhanced[data-tt-view=grid] .timetable .tt-grid-original { display:none!important; }
  .tt-view-enhanced[data-tt-view=grid] .tt-grid-corner { display:inline; }
  .tt-view-enhanced[data-tt-view=grid] .tt-court-code {
    display:inline-flex; align-items:center; justify-content:center; cursor:pointer; box-sizing:border-box;
    min-height:36px; width:34px; max-width:100%; padding:1px; color:var(--teal); border:0; background:transparent;
    font:800 12px/1.2 var(--pr-font-ui, Inter, system-ui, sans-serif); white-space:nowrap;
  }
  .tt-view-enhanced[data-tt-view=grid] .tt-slot-code { display:block; color:var(--text-muted); font-size:11px; font-weight:650; line-height:1.3; margin-bottom:4px; font-variant-numeric:tabular-nums; }
  .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .timetable table tr:not(.rowHead) th:first-child {position:sticky!important;left:0!important;z-index:5!important;}
  .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .timetable table tr.rowHead th:first-child {left:0!important;z-index:7!important;}
}
#tt-open-all .tt-tv-link {display:flex;width:100%;height:auto;justify-content:flex-start;text-decoration:none;box-sizing:border-box;color:var(--ttv-text);}
.tt-legend-edit-btn:disabled {opacity:.7;cursor:wait;}
/* Keep the expanded scale controls directly under their right-hand trigger.
   Explicit close: never dismiss a control during a slider drag or keyboard input. */
.tt-view-enhanced .tt-day-summary {justify-self:end;}
.tt-view-enhanced .tt-day-options .tt-zoom {justify-content:flex-end;}
@media screen and (max-width:520px) {
  .tt-view-enhanced .tt-day-options[open] {flex:1 1 100%;width:100%;}
  .tt-view-enhanced .tt-day-options .tt-day-head,
  .tt-view-enhanced .tt-day-options .tt-day-actions {width:100%;}
  .tt-view-enhanced .tt-day-options .tt-zoom {max-width:100%;}
}

/* 2026-12-01: shared visible external-screen action + contrast-safe timetable controls. */
.tournament-timetable-v3 .tt-hub-open-screen {text-decoration:none;min-height:36px;white-space:nowrap;flex-shrink:0;}
.tt-view-enhanced[data-tt-view=grid] .tt-grid-day-label .tt-visible-open {display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 36px;min-width:36px;height:36px;padding:0;box-sizing:border-box;border:1px solid var(--ttv-surface-border);border-radius:8px;background:var(--ttv-surface);color:var(--ttv-text);text-decoration:none;}
.tt-view-enhanced[data-tt-view=grid] .tt-grid-day-label .tt-visible-open:hover,.tournament-timetable-v3 .tt-hub-open-screen:hover {border-color:var(--teal);color:var(--teal);background:var(--surface-hover);}
.tt-view-enhanced[data-tt-view=grid] .tt-grid-day-label .tt-visible-open:focus-visible {outline:2px solid var(--teal);outline-offset:2px;}
.tt-view-enhanced[data-tt-view=grid] .tt-day-options .tt-day-open {display:none!important;}
@media(max-width:520px){.tournament-timetable-v3 .tt-hub-open-screen{font-size:0;width:36px;min-width:36px;padding:0;}.tournament-timetable-v3 .tt-hub-open-screen svg{width:18px;height:18px;}.tt-view-enhanced[data-tt-view=grid] .tt-day-options[open]{flex:1 1 100%;}}
/* Both native selects and enhanced dialog must retain readable option text in dark mode. */
[data-theme="dark"] .tournament-timetable-v3 {--ttv-surface:#192533;--ttv-surface-border:#40546a;--ttv-text:#f1f5f9;--ttv-muted:#c1cbd8;color-scheme:dark;}
[data-theme="dark"] .tournament-timetable-v3 .tt-hub-dialog,
[data-theme="dark"] .tournament-timetable-v3 .tt-dialog-head,
[data-theme="dark"] .tournament-timetable-v3 .tt-dialog-select,
[data-theme="dark"] .tournament-timetable-v3 .tt-filter-group .select,
[data-theme="dark"] .tournament-timetable-v3 .tt-hub-btn,
[data-theme="dark"] .tournament-timetable-v3 .tt-day-summary,
[data-theme="dark"] .tournament-timetable-v3 .tt-visible-open {background-color:var(--ttv-surface);border-color:var(--ttv-surface-border);color:var(--ttv-text);}
[data-theme="dark"] .tournament-timetable-v3 .tt-dialog-select option,
[data-theme="dark"] .tournament-timetable-v3 .tt-filter-group .select option {background-color:#192533;color:#f1f5f9;}
[data-theme="dark"] .tournament-timetable-v3 .tt-hub-btn:hover,
[data-theme="dark"] .tournament-timetable-v3 .tt-visible-open:hover {background-color:#28394a;color:#9ee6d9;border-color:#6b9b9a;}
[data-theme="dark"] .tournament-timetable-v3 .tt-hub-btn.tt-primary {background-color:#17423f;color:#b9f6e9;border-color:#449f91;}
[data-theme="dark"] .tournament-timetable-v3 .tt-menu-help,
[data-theme="dark"] .tournament-timetable-v3 .tt-dialog-selected {color:var(--ttv-muted);}

/* Mobile transfer fields follow the active site theme, including native pickers. */
[data-theme="dark"] .tt-touch-editor { color-scheme: dark; }
[data-theme="dark"] .tt-touch-editor .tt-touch-fields label { color: var(--text); }
[data-theme="dark"] .tt-touch-editor .tt-touch-fields select.select-filter {
  color-scheme: dark;
  background-color: var(--surface-hover) !important;
  color: var(--text) !important;
  border-color: var(--surface-border) !important;
}
[data-theme="dark"] .tt-touch-editor .tt-touch-fields select option,
[data-theme="dark"] .tt-touch-editor .tt-touch-fields select optgroup {
  background-color: var(--surface); color: var(--text);
}
[data-theme="dark"] .tt-touch-editor .tt-touch-fields select:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
[data-theme="dark"] .tt-touch-editor .tt-touch-fields select:disabled {
  color: var(--text-muted) !important; opacity: .75;
}


/* One native stepper per day. The hidden range remains the zoom state carrier. */
.tt-view-enhanced .tt-grid-day-label .tt-inline-day-tools{margin:0 0 0 auto;min-width:0;display:flex;justify-content:flex-end}
.tt-view-enhanced .tt-inline-day-tools .tt-day-actions{display:flex;justify-content:flex-end}
.tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools .tt-zoom{
 display:inline-flex;flex-wrap:nowrap;align-items:center;gap:2px;padding:2px;
 border:1px solid var(--ttv-surface-border);background:var(--ttv-surface);border-radius:9px
}
.tt-view-enhanced .tt-inline-day-tools :is(.tt-zoom-label,.tt-zoom-range,.tt-zoom-reset){display:none!important}
.tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools :is(.tt-zoom-btn,.tt-zoom-value){
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 height:32px;min-height:32px;width:32px;min-width:32px;padding:0;
 border:0;border-radius:6px;background:transparent;color:var(--ttv-text);font-size:19px;font-weight:750
}
.tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools .tt-zoom-value{
 width:55px;min-width:55px;font-size:13px;font-variant-numeric:tabular-nums;
 background:var(--sc-selected,var(--surface-hover));color:var(--sc-accent,var(--ttv-teal))
}
.tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools .tt-zoom-btn:hover{background:var(--sc-hover,var(--surface-hover));color:var(--ttv-teal)}
.tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools .tt-zoom-btn:disabled{opacity:.38}
.tt-view-enhanced[data-tt-view=grid] .tt-grid-day-label .tt-visible-open{display:none!important}
@media screen and (min-width:850px) and (pointer:fine), screen and (min-width:1367px) {
  .tt-view-enhanced .tt-touch-editor,
  .tt-control-hub .tt-legend-trigger,
  .tt-control-hub .tt-court-legend:not(.tt-legend-editing) {display:none!important;}
}
@media print {
  .tt-view-enhanced .tt-inline-day-tools {display:none!important;}
}
/* Public schedule: flat workspace, no nested decorative cards. */
@media screen {
 .tournament-timetable-v3 .tt-schedule-section .eventCont{
  padding:0 0 5px!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;margin-bottom:16px!important;
  scrollbar-width:thin;scrollbar-color:var(--ttv-teal) transparent
 }
 .tournament-timetable-v3 .tt-schedule-section .eventCont>.box.movableTable{
  padding:0!important;margin:0!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important
 }
 .tournament-timetable-v3 .tt-control-hub .tt-view-tools.pr-screen-filters:not([hidden]){
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;border-radius:0!important;gap:8px 12px
 }
 .tournament-timetable-v3 .tt-control-hub .tt-hub-filters{
  display:flex;align-items:center;gap:5px;flex:0 1 360px
 }
 .tournament-timetable-v3 .tt-hub-filters .tt-filter-trigger{flex:1 1 180px;min-width:0}
 .tournament-timetable-v3 .tt-hub-filters .tt-legend-trigger{flex:none;white-space:nowrap}
 .tournament-timetable-v3 .tt-hub-filters .tt-rename-courts{
  flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0
 }
 .tournament-timetable-v3 .tt-control-hub .tt-view-switch{margin-left:auto}
 .tournament-timetable-v3 .tt-grid-day-label{padding:0 0 4px;border-bottom:1px solid var(--ttv-surface-border)}
 .tournament-timetable-v3 .tt-day-date{font-size:14px;font-weight:750;color:var(--ttv-text)}
 .tournament-timetable-v3 .tt-grid-day-label .tt-zoom{margin:0}
 .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .rowHead .tt-grid-original{display:none!important}
 .tournament-timetable-v3.tt-view-enhanced[data-tt-view=grid] .rowHead .tt-grid-corner{display:inline}
 .tournament-timetable-v3 .tt-hub-actions .tt-hub-open-screen{margin:0}
 .tournament-timetable-v3 .tt-control-hub .tt-legend-edit-btn{min-height:38px}
 body.is-preview-mode .tournament-timetable-v3 :is(.tt-rename-courts,.tt-legend-edit-btn){display:none!important}
 @media(max-width:849px){
  .tournament-timetable-v3 .tt-control-hub .tt-hub-filters{flex:1 1 100%}
  .tournament-timetable-v3 .tt-control-hub .tt-view-switch{flex:1 1 100%;margin:0}
  .tournament-timetable-v3 .tt-control-hub .tt-view-tools{gap:6px}
  .tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools :is(.tt-zoom-btn,.tt-zoom-value){height:36px;min-height:36px}
  .tournament-timetable-v3.tt-view-enhanced .tt-inline-day-tools .tt-zoom-btn{width:36px;min-width:36px}
 }
 @media(min-width:850px) and (pointer:fine), (min-width:1367px){
  .tournament-timetable-v3 :is(.tt-rename-courts,.tt-legend-edit-btn){display:none!important}
  .tournament-timetable-v3 .tt-hub-filters .tt-legend-trigger{display:none!important}
 }
}
