/* 日期是主轴；公开数据与原生管理工作流不变。仅在新时间线成功装载后覆盖旧赛程布局。 */
body.tt-schedule {
  --tt-bg:#0d1521; --tt-panel:#16212f; --tt-ink:#e9eef4; --tt-muted:#abb6c7;
  --tt-line:#2c394a; --tt-accent:#f17d75; --tt-focus:#3a2026; --tt-action:#bc302b;
  --tt-warm:#e9bd6d; --tt-warm-bg:#41321b;
}
html.light-mode body.tt-schedule {
  --tt-bg:#fcfaf7; --tt-panel:#f3f1ee; --tt-ink:#1c2735; --tt-muted:#596678;
  --tt-line:#e4e1dc; --tt-accent:#b5322b; --tt-focus:#fbedE6; --tt-action:#b82d27;
  --tt-warm:#775209; --tt-warm-bg:#ffe4af;
}
body.tt-schedule .tournament-detail-page {background:var(--tt-bg)!important;color:var(--tt-ink)!important;padding-top:76px!important;}
body.tt-schedule .broadcast-hero {min-height:0!important;margin:0!important;background:transparent!important;border:0!important;}
body.tt-schedule .broadcast-hero__art,body.tt-schedule .broadcast-hero__shade,
body.tt-schedule .broadcast-hero__utility,body.tt-schedule .hero-badges,
body.tt-schedule .registration-decision,body.tt-schedule .broadcast-facts,
body.tt-schedule .broadcast-facts-strip,body.tt-schedule .event-facts {display:none!important;}
body.tt-schedule .broadcast-hero__inner {max-width:1440px!important;padding:24px 56px 10px!important;margin:auto!important;min-height:0!important;height:auto!important;display:block!important;}
body.tt-schedule .broadcast-hero__stage {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;padding:0!important;margin:0!important;min-height:0!important;}
body.tt-schedule .hero-identity {display:flex!important;gap:14px!important;align-items:center!important;flex-wrap:wrap;padding:0!important;}
body.tt-schedule #tournament-title {font-family:var(--font-sans,ui-sans-serif,system-ui,sans-serif)!important;font-size:26px!important;line-height:1.45!important;margin:0!important;font-weight:750!important;color:var(--tt-ink)!important;letter-spacing:0!important;text-shadow:none!important;filter:none!important;}
body.tt-schedule #tournament-title span {display:inline!important;}
body.tt-schedule .tab-nav {position:static!important;background:transparent!important;backdrop-filter:none!important;border-color:var(--tt-line)!important;}
body.tt-schedule .tab-nav>.container {max-width:1440px!important;padding:0 44px!important;}
body.tt-schedule .tab-nav .tab-item {color:var(--tt-muted)!important;padding:0 12px!important;min-height:52px!important;}
body.tt-schedule .tab-nav .tab-item.active {color:var(--tt-ink)!important;}
body.tt-schedule .tab-nav .active-indicator {background:var(--tt-accent)!important;}
body.tt-schedule main.tab-content {max-width:1440px!important;padding:34px 56px 52px!important;}
body.tt-schedule main>#yuncheng-schedule-query,
body.tt-schedule main>app-tournament-competition-workspace {display:none!important;}
.tt-root,.tt-header-actions,.tt-zone {font-family:var(--font-sans,ui-sans-serif,system-ui,sans-serif);color:var(--tt-ink);}
.tt-root * {box-sizing:border-box;min-width:0;}
.tt-root h2,.tt-root h3,.tt-root p,.tt-root dl,.tt-root dd {margin:0;}
.tt-root h2 {font-size:32px;font-weight:750;line-height:1.4;}
.tt-zone {font-size:11px;background:var(--tt-panel);color:var(--tt-muted);padding:4px 8px;border:1px solid var(--tt-line);border-radius:5px;white-space:nowrap;}
.tt-header-actions {display:flex;gap:24px;align-items:center;flex:0 0 auto;}
.tt-link {display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:44px;color:var(--tt-muted);font-size:14px;font-weight:600;text-decoration:none;background:transparent;border:0;padding:4px 0;cursor:pointer;}
.tt-link:hover {color:var(--tt-accent);text-decoration:underline;}
.tt-icon {display:inline-flex;width:20px;height:20px;flex:0 0 20px;align-items:center;justify-content:center;}
.tt-icon svg {width:100%;height:100%;}
.tt-header-actions .tt-icon {color:var(--tt-accent);}
.tt-toolbar {display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px;}
.tt-intro {margin-top:6px!important;color:var(--tt-muted);font-size:15px;line-height:1.6;}
.tt-controls {display:flex;align-items:center;gap:20px;flex:0 1 550px;}
.tt-search {display:flex;align-items:center;gap:12px;flex:1;border:1px solid var(--tt-line);background:var(--tt-panel);border-radius:6px;padding:0 16px;min-height:52px;color:var(--tt-muted);}
.tt-search input {width:100%;border:0;outline:0;background:transparent;color:var(--tt-ink);min-height:50px;font-size:15px;padding:0;}
.tt-search input::placeholder {color:var(--tt-muted);opacity:1;}
.tt-search:focus-within {outline:2px solid var(--tt-accent);outline-offset:2px;}
.tt-round-picker {position:relative;flex:0 0 150px;}
.tt-round-picker summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 16px;border:1px solid var(--tt-line);border-radius:6px;background:var(--tt-panel);font-size:15px;font-weight:650;cursor:pointer;list-style:none;}
.tt-round-options {position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:210px;display:grid;background:var(--tt-panel);padding:6px;border:1px solid var(--tt-line);border-radius:6px;box-shadow:0 8px 16px #0002;}
.tt-round-option {min-height:44px;padding:8px 12px;background:transparent;color:var(--tt-ink);border:0;border-radius:4px;text-align:left;font-size:15px;cursor:pointer;}
.tt-round-option:hover,.tt-round-option[aria-pressed=true] {background:var(--tt-focus);color:var(--tt-accent);}
.tt-day {display:grid;grid-template-columns:144px minmax(0,1fr);margin-bottom:24px;}
.tt-date {border-right:1px solid var(--tt-line);padding:16px 24px 0 0;}
.tt-date h3 {font-size:32px;font-weight:750;line-height:1.3;font-variant-numeric:tabular-nums;}
.tt-date>span {display:block;color:var(--tt-muted);font-size:16px;margin-top:6px;}
.tt-day-matches {padding-left:32px;display:grid;gap:12px;align-content:start;}
.tt-match {border:1px solid var(--tt-line);border-radius:6px;background:transparent;overflow:hidden;}
.tt-match+.tt-match {margin-top:12px;}
.tt-match-summary {display:grid;grid-template-columns:210px minmax(0,1fr) 104px 44px;column-gap:24px;row-gap:8px;align-items:center;min-height:108px;padding:22px 24px;list-style:none;cursor:pointer;}
.tt-root summary::-webkit-details-marker {display:none;}
.tt-match-time {align-self:center;border-right:1px solid var(--tt-line);padding-right:16px;}
.tt-match-time strong {display:block;font-size:18px;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap;}
.tt-match-time span {display:block;margin-top:5px;font-size:14px;color:var(--tt-muted);line-height:1.5;}
.tt-pairing {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px;font-size:18px;line-height:1.6;}
.tt-pairing strong {font-weight:650;overflow-wrap:anywhere;}
.tt-bye .tt-pairing {display:block;}
.tt-score {font-size:17px;color:var(--tt-muted);font-weight:700;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;}
.tt-state {padding:5px 12px;font-size:13px;font-weight:650;line-height:1.6;text-align:center;color:var(--tt-muted);border-radius:20px;background:var(--tt-panel);white-space:nowrap;justify-self:end;}
.tt-state-pending {background:var(--tt-warm-bg);color:var(--tt-warm);}
.tt-match-open {display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;color:var(--tt-muted);}
.tt-featured {background:var(--tt-focus);border-color:color-mix(in srgb,var(--tt-accent) 45%,var(--tt-line));}
.tt-featured .tt-match-summary {grid-template-columns:210px minmax(0,1fr) 104px 160px;}
.tt-featured .tt-match-open {grid-column:4;grid-row:1/3;background:var(--tt-action);color:white;border-radius:6px;font-size:14px;font-weight:650;padding:6px 12px;}
.tt-featured .tt-match-open .tt-icon {display:none;}
.tt-featured .tt-topic {grid-column:2/4;display:flex;gap:8px;align-items:flex-start;color:var(--tt-muted);font-size:14px;line-height:1.6;}
.tt-featured .tt-match-time {grid-row:1/3;}
.tt-match[open]>.tt-match-summary {border-bottom:1px solid var(--tt-line);}
.tt-match[open]>.tt-match-summary .tt-match-open .tt-icon,
.tt-day-history[open]>.tt-history-head .tt-icon,.tt-bundle[open]>.tt-bundle-head>.tt-icon,.tt-round-picker[open]>summary .tt-icon {transform:rotate(180deg);}
.tt-history-head {display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:100px;padding:20px 24px;background:var(--tt-panel);border-radius:6px;list-style:none;cursor:pointer;}
.tt-history-head strong {font-size:16px;font-weight:650;}
.tt-history-head>div>span {display:block;color:var(--tt-muted);font-size:14px;line-height:1.5;margin-top:4px;}
.tt-expand {display:flex;gap:8px;align-items:center;font-size:14px;color:var(--tt-muted);}
.tt-day-history[open]>.tt-history-head {margin-bottom:12px;}
.tt-materials {padding:24px;background:var(--tt-panel);}
.tt-details {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 32px;font-size:15px;line-height:1.7;}
.tt-detail:first-child {grid-column:1/-1;}
.tt-detail dt {font-size:13px;color:var(--tt-muted);margin-bottom:2px;}
.tt-detail dd {color:var(--tt-ink);overflow-wrap:anywhere;}
.tt-material-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:20px;border-top:1px solid var(--tt-line);padding-top:16px;}
.tt-material-actions>p {width:100%;}
.tt-muted,.tt-source-note {font-size:13px;line-height:1.7;color:var(--tt-muted);}
.tt-source-note {margin-top:16px!important;}
.tt-button {display:inline-flex;align-items:center;justify-content:center;min-width:88px;min-height:44px;padding:8px 16px;background:var(--tt-action);color:#fff;border:1px solid var(--tt-action);border-radius:6px;font-size:14px;line-height:1.5;cursor:pointer;text-decoration:none;}
.tt-secondary {background:transparent;border-color:var(--tt-line);color:var(--tt-ink);}
.tt-button:disabled {opacity:.6;cursor:wait;}
.tt-bundle {background:var(--tt-panel);border:1px solid var(--tt-line);border-radius:6px;margin-top:16px;}
.tt-bundle-head {display:grid;grid-template-columns:170px minmax(0,1fr) 24px;align-items:center;gap:24px;min-height:100px;padding:20px 24px;cursor:pointer;list-style:none;}
.tt-bundle-head>strong {display:flex;align-items:center;gap:14px;font-size:23px;font-weight:650;}
.tt-bundle-head>strong .tt-icon {color:var(--tt-warm);width:26px;height:26px;flex-basis:26px;}
.tt-bundle-head>div {border-left:1px solid var(--tt-line);padding-left:24px;font-size:15px;line-height:1.6;}
.tt-bundle-head>div>strong {font-weight:650;}
.tt-bundle-head>div>span {display:block;font-size:14px;color:var(--tt-muted);margin-top:4px;}
.tt-bundle-list {padding:0 24px 24px;}
.tt-history-date {color:var(--tt-muted);font-size:13px;padding:12px 24px 0;}
.tt-empty {padding:40px 24px;background:var(--tt-panel);border:1px solid var(--tt-line);border-radius:6px;}
.tt-empty h3 {font-size:20px;margin-bottom:10px;}
.tt-empty p {color:var(--tt-muted);margin-bottom:20px;}
.tt-topics {margin-top:24px;scroll-margin-top:80px;}
.tt-topics>summary {font-size:15px;color:var(--tt-muted);padding:12px 0;min-height:44px;cursor:pointer;}
.tt-topics #yuncheng-workbook-query {margin-top:16px;background:var(--tt-panel);box-shadow:none;border-radius:6px;color:var(--tt-ink);}
.tt-topics #yuncheng-workbook-query .yc-op-muted,.tt-topics .yc-op-record p {color:var(--tt-muted);}
.tt-topics #yuncheng-workbook-query input {min-height:44px;}
.tt-footnote {color:var(--tt-muted);font-size:13px;margin-top:20px!important;line-height:1.6;}
.tt-root summary:focus-visible,.tt-root button:focus-visible,.tt-root a:focus-visible,.tt-header-actions a:focus-visible,.tt-header-actions button:focus-visible {outline:2px solid var(--tt-accent);outline-offset:3px;}
@media(max-width:1200px){
  body.tt-schedule #tournament-title {font-size:23px!important;}
  body.tt-schedule .broadcast-hero__stage {flex-wrap:wrap;gap:12px!important;}
  .tt-toolbar {align-items:flex-start;}
  .tt-controls {flex-basis:460px;}
  .tt-day {grid-template-columns:118px minmax(0,1fr);}
  .tt-day-matches {padding-left:24px;}
  .tt-match-summary,.tt-featured .tt-match-summary {grid-template-columns:165px minmax(0,1fr) 98px 44px;gap:12px;padding:20px;}
  .tt-match-time strong {font-size:16px;}
  .tt-match-time span {font-size:13px;}
  .tt-pairing {gap:16px;font-size:16px;}
  .tt-featured .tt-match-open {grid-column:4;grid-row:1/3;background:transparent;color:var(--tt-accent);padding:0;}
  .tt-featured .tt-match-open>span:not(.tt-icon) {display:none;}
  .tt-featured .tt-match-open .tt-icon {display:inline-flex;}
}
@media(max-width:850px){
  body.tt-schedule .broadcast-hero__inner {padding:22px 24px 8px!important;}
  body.tt-schedule main.tab-content {padding:28px 24px 40px!important;}
  body.tt-schedule .tab-nav>.container {padding:0 12px!important;}
  .tt-toolbar {display:block;}
  .tt-controls {margin-top:18px;gap:12px;}
  .tt-day {grid-template-columns:92px minmax(0,1fr);}
  .tt-day-matches {padding-left:18px;}
  .tt-date {padding-right:16px;}
  .tt-date h3 {font-size:26px;}
  .tt-match-summary,.tt-featured .tt-match-summary {grid-template-columns:minmax(0,1fr) 100px 44px;}
  .tt-match-time {grid-column:1/-1!important;grid-row:auto!important;border-right:0;display:flex;flex-wrap:wrap;gap:6px 16px;padding-right:0;}
  .tt-match-time span {margin:0;}
  .tt-pairing {grid-column:1;}
  .tt-state {grid-column:2;}
  .tt-featured .tt-match-open,.tt-match-open {grid-column:3;grid-row:2!important;}
  .tt-featured .tt-topic {grid-column:1/-1;}
}
@media(max-width:600px){
  body.tt-schedule .tournament-detail-page {padding-top:64px!important;}
  body.tt-schedule .broadcast-hero__inner {padding:18px 16px 8px!important;}
  body.tt-schedule #tournament-title {font-size:21px!important;}
  body.tt-schedule .hero-identity {gap:8px!important;}
  body.tt-schedule .tab-nav>.container {padding:0 4px!important;}
  body.tt-schedule main.tab-content {padding:24px 16px 40px!important;}
  .tt-header-actions {gap:20px;flex-wrap:wrap;}
  .tt-header-actions .tt-link {font-size:12px;}
  .tt-root h2 {font-size:28px;}
  .tt-intro {font-size:13px;}
  .tt-controls {display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;}
  .tt-search {padding:0 10px;gap:6px;}
  .tt-search input {font-size:14px;}
  .tt-search .tt-icon {width:18px;height:18px;flex-basis:18px;}
  .tt-round-picker {min-width:0;}
  .tt-round-picker summary {padding:0 10px;font-size:14px;gap:4px;}
  .tt-day {display:block;margin-bottom:24px;}
  .tt-date {display:flex;gap:12px;align-items:baseline;border-right:0;padding:0 0 10px;}
  .tt-date h3 {font-size:24px;}
  .tt-date>span {font-size:14px;margin:0;}
  .tt-day-matches {padding:0;}
  .tt-match-summary,.tt-featured .tt-match-summary {grid-template-columns:minmax(0,1fr) 44px;padding:16px;column-gap:10px;}
  .tt-match-time {padding-right:0;}
  .tt-pairing {grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);font-size:15px;gap:8px;}
  .tt-score {font-size:14px;white-space:normal;}
  .tt-state {grid-column:1;grid-row:3;justify-self:start;font-size:12px;padding:4px 10px;}
  .tt-match-open,.tt-featured .tt-match-open {grid-column:2;grid-row:3!important;}
  .tt-featured .tt-topic {grid-column:1/-1;grid-row:4;font-size:13px;margin-top:4px;}
  .tt-history-head {padding:16px;min-height:88px;gap:8px;}
  .tt-history-head>div {min-width:0;}
  .tt-history-head>div>span {font-size:12px;}
  .tt-history-head .tt-expand>span:not(.tt-icon) {display:none;}
  .tt-expand {min-width:44px;min-height:44px;justify-content:center;}
  .tt-bundle-head {grid-template-columns:minmax(0,1fr) 24px;gap:8px;padding:16px;}
  .tt-bundle-head>strong {font-size:19px;}
  .tt-bundle-head>div {grid-column:1;grid-row:2;border-left:0;padding:0;font-size:14px;}
  .tt-bundle-head>.tt-icon {grid-column:2;grid-row:1/3;}
  .tt-bundle-head>div>span {font-size:12px;}
  .tt-bundle-list {padding:0 12px 16px;}
  .tt-materials {padding:16px;}
  .tt-details {grid-template-columns:minmax(0,1fr);gap:12px;}
  .tt-detail:first-child {grid-column:auto;}
  .tt-history-date {padding:10px 16px 0;}
}
@media(prefers-reduced-motion:reduce){.tt-root * {scroll-behavior:auto!important;}}
