/* 仅赛事收尾：纸面公告 + 原生编辑表单，沿用站点日夜主题。 */
body.tc-management {
  --tf-bg: #111210;
  --tf-panel: #1b1c19;
  --tf-ink: #e9e4d8;
  --tf-muted: #b9b5a9;
  --tf-line: #3a3b33;
  --tf-accent: #ec8978;
  --tf-active: #30211d;
  --tf-warm: #d5b575;
}
html.light-mode body.tc-management {
  --tf-bg: #f6f3eb;
  --tf-panel: #fffcf5;
  --tf-ink: #302d27;
  --tf-muted: #716b60;
  --tf-line: #ddd7c9;
  --tf-accent: #a33d2c;
  --tf-active: #f4e8da;
  --tf-warm: #8b652a;
}
body.tc-management .management-header,
body.tc-management .tf-context,
body.tc-management .tf-checklist,
body.tc-management .tf-task-title { display: none !important; }
body.tc-management .workspace-shell { grid-template-columns: minmax(210px, 23%) minmax(0, 1fr); column-gap: 32px; }
body.tc-management .tc-ui { color: var(--tf-ink); box-sizing: border-box; }
.tc-ui *, [data-tc-native] * { box-sizing: border-box; }
.tc-kicker { font-size: 11px; letter-spacing: .12em; color: var(--tf-muted); margin: 0 0 7px; }
.tc-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 0 20px; border-bottom: 1px solid var(--tf-line); }
.tc-banner h1 { margin: 0; font: 600 clamp(21px, 2.4vw, 34px)/1.5 'Noto Serif SC', 'Source Han Serif SC', serif; }
.tc-meta { font-size: 14px; color: var(--tf-muted); margin: 9px 0 0; }
.tc-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; flex-shrink: 0; }
.tc-banner-warning { min-height: 46px; border: 1px solid var(--tf-line); border-radius: 4px; background: var(--tf-active); color: var(--tf-accent); padding: 10px 16px; font-size: 13px; cursor: pointer; }
.tc-link { border: 0; background: transparent; color: var(--tf-muted); cursor: pointer; min-height: 44px; padding: 8px 4px; font-size: 13px; text-align: left; }
.tc-link:hover { color: var(--tf-accent); }
.tc-primary, .tc-secondary { border: 1px solid var(--tf-line); border-radius: 4px; min-height: 46px; padding: 10px 22px; font-size: 16px; cursor: pointer; white-space: normal; }
.tc-secondary { background: var(--tf-panel); color: var(--tf-ink); }
.tc-primary { background: #9c3b2b; color: #fffaf0; border-color: #9c3b2b; }
.tc-primary:disabled, .tc-secondary:disabled { opacity: .55; cursor: not-allowed; }
.tc-primary:disabled { background: var(--tf-line); color: var(--tf-muted); border-color: var(--tf-line); opacity: 1; }
.tc-ui button:focus-visible, .tc-ui a:focus-visible, [data-tc-native] input:focus-visible { outline: 2px solid var(--tf-accent); outline-offset: 3px; }
body.tc-management .workspace-shell > .tc-outline { grid-column: 1 !important; grid-row: 2/6 !important; padding: 22px 20px 0 0; border-right: 1px solid var(--tf-line); min-height: 515px; }
.tc-outline-entry { display: grid; gap: 6px; width: 100%; min-height: 75px; padding: 15px 16px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--tf-ink); text-align: left; cursor: pointer; }
.tc-outline-entry strong { font-size: 18px; font-weight: 550; }
.tc-outline-entry span { color: var(--tf-muted); font-size: 14px; line-height: 1.5; }
.tc-outline-entry[aria-current='true'] { border-color: var(--tf-accent); background: var(--tf-active); }
.tc-outline-entry[aria-current='true'] strong { color: var(--tf-accent); }
.tc-outline-note { border-top: 1px solid var(--tf-line); margin: 22px 0 0; padding: 18px 14px; font-size: 12px; line-height: 1.8; color: var(--tf-muted); }
.tc-outline-note strong { color: var(--tf-warm); font-size: 13px; }
.tc-outline-note p { margin: 8px 0 0; }
body.tc-management .workspace-shell > .tc-preview { grid-column: 2 !important; grid-row: 2/5 !important; padding-top: 20px; }
.tc-preview-tabs { display: flex; gap: 22px; align-items: center; min-height: 48px; margin-bottom: 12px; border-bottom: 1px solid var(--tf-line); }
.tc-version-tab { min-height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--tf-muted); padding: 8px 0; font-size: 14px; cursor: pointer; }
.tc-version-tab[aria-selected='true'] { border-bottom-color: var(--tf-accent); color: var(--tf-accent); font-weight: 600; }
.tc-preview-status { color: var(--tf-accent); font-size: 13px; margin-left: auto; border: 1px solid var(--tf-accent); border-radius: 3px; padding: 5px 10px; }
.tc-paper { position: relative; isolation: isolate; min-height: 430px; background: transparent; padding: 24px 20px 20px; overflow: hidden; }
.tc-paper::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('assets/timer-ink-landscape.091f6846ca6254f6.png') right top / auto 260% no-repeat; opacity: .045; pointer-events: none; }
html.light-mode .tc-paper::before { opacity: .075; }
.tc-paper-heading { border-bottom: 1px solid var(--tf-line); padding-bottom: 18px; }
.tc-paper-heading h2 { font: 600 clamp(25px, 3.1vw, 44px)/1.4 'Noto Serif SC', 'Source Han Serif SC', serif; letter-spacing: .05em; margin: 2px 0 10px; }
.tc-paper-event { color: var(--tf-muted); font-size: 16px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.tc-paper-section { padding: 15px 0; border-bottom: 1px solid var(--tf-line); }
.tc-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tc-section-heading h3 { margin: 0; font: 600 22px/1.5 'Noto Serif SC', 'Source Han Serif SC', serif; }
.tc-section-heading button { color: var(--tf-muted); font-size: 14px; }
.tc-empty { color: var(--tf-muted); font-size: 16px; margin: 6px 0 0; line-height: 1.8; }
.tc-placement { display: grid; grid-template-columns: minmax(65px, 20%) minmax(0, 1fr); align-items: start; gap: 16px; margin: 10px 0 0; line-height: 1.7; }
.tc-rank { color: var(--tf-warm); font-size: 14px; overflow-wrap: anywhere; }
.tc-placement strong { font-size: 18px; font-weight: 550; overflow-wrap: anywhere; }
.tc-award-names { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-award-name { border: 1px solid var(--tf-line); color: var(--tf-warm); padding: 5px 12px; font-size: 14px; border-radius: 3px; }
.tc-summary { white-space: pre-wrap; font-size: 14px; line-height: 1.9; margin: 7px 0 0; overflow-wrap: anywhere; }
.tc-paper-footnote { font-size: 11px; color: var(--tf-muted); margin: 16px 0 0; }
.tc-empty-public { padding: 60px 0; text-align: center; }
.tc-empty-public h3 { font: 600 22px/1.5 'Noto Serif SC', serif; }
.tc-empty-public p { color: var(--tf-muted); font-size: 14px; line-height: 1.9; }
body.tc-management .workspace-shell > .tc-footer { grid-column: 1/-1 !important; grid-row: 6 !important; display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--tf-line); padding: 18px 0; margin-top: 22px !important; }
.tc-footer-note { color: var(--tf-muted); font-size: 12px; margin-left: auto; }
.tc-footer-actions { display: flex; gap: 12px; }
body.tc-management .workspace-shell > .tc-edit-heading { grid-column: 2 !important; grid-row: 2 !important; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 15px; }
.tc-edit-heading h2 { font: 600 23px/1.5 'Noto Serif SC', serif; }
body.tc-management .workspace-shell > [data-tc-native] { grid-column: 2 !important; grid-row: 3 !important; display: none !important; min-height: 400px; padding: 22px; background: var(--tf-panel); border: 1px solid var(--tf-line); }
[data-tc-native] > * { display: none !important; }
body.tc-management [data-tc-mode='edit'][data-tc-tab='result'] > [data-tc-native],
body.tc-management [data-tc-mode='edit'][data-tc-tab='result'] > .tc-edit-heading { display: block !important; }
body.tc-management [data-tc-mode='edit'] > .tc-edit-heading { display: flex !important; }
body.tc-management [data-tc-mode='edit'] > .tc-preview { display: none !important; }
[data-tc-group='placements'] > [data-tc-native] > [data-tc-group='placements'],
[data-tc-group='awards'] > [data-tc-native] > [data-tc-group='awards'],
[data-tc-group='summary'] > [data-tc-native] > [data-tc-group='summary'] { display: block !important; }
[data-tc-native] [data-tc-group] { border: 0 !important; padding: 0 !important; }
[data-tc-native] .field, .tc-award-search input { min-width: 0; max-width: 100%; min-height: 44px; color: var(--tf-ink); background: var(--tf-bg); border: 1px solid var(--tf-line); border-radius: 4px; padding: 10px 12px; font-size: 14px; }
[data-tc-native] textarea { width: 100%; min-height: 240px; line-height: 1.8; }
[data-tc-native] button { min-height: 44px; }
.tc-award-search { display: grid; gap: 8px; margin: 20px 0 14px; font-size: 13px; color: var(--tf-muted); }
.tc-selection-note { font-size: 13px; color: var(--tf-warm); line-height: 1.7; }
[data-tc-group='awards'] > .mt-3 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; max-height: 310px; overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
[data-tc-group='awards'] label:not(.tc-award-search) { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-content: center; min-height: 62px; border-radius: 4px !important; padding: 10px !important; white-space: normal; overflow-wrap: anywhere; }
[data-tc-group='awards'] label small { grid-column: 2; display: block; color: var(--tf-muted); font-size: 11px; line-height: 1.6; }
[data-tc-group='awards'] label[hidden] { display: none !important; }
body.tc-management [data-tc-tab='stats'] > .tc-preview,
body.tc-management [data-tc-tab='stats'] > .tc-edit-heading,
body.tc-management [data-tc-tab='stats'] > .tc-footer { display: none !important; }
.tc-mobile-switch { display: none; }
@media (max-width: 767px) {
  body.tc-management .workspace-shell { display: flex !important; flex-direction: column; gap: 0; }
  body.tc-management .workspace-shell > * { width: 100%; }
  .tc-banner { align-items: start; padding: 17px 0; gap: 10px; }
  .tc-banner-actions { display: none; }
  .tc-banner h1 { font-size: 20px; }
  body.tc-management .workspace-shell > .tc-outline { min-height: 0; padding: 6px 0 10px; border-right: 0; display: flex; flex-wrap: wrap; order: 2; }
  .tc-outline > .tc-kicker { display: none; }
  .tc-outline-entry { width: 25%; min-height: 48px; padding: 8px 3px; text-align: center; border-left: 0; border-bottom: 2px solid transparent; }
  .tc-outline-entry strong { font-size: 13px; }
  .tc-outline-entry span { display: none; }
  .tc-outline-note { width: 100%; margin: 10px 0 0; padding: 10px; background: var(--tf-panel); border: 1px solid var(--tf-line); }
  .tc-outline-note strong, .tc-outline-note p { display: inline; margin-right: 6px; }
  .tc-outline-note p:last-child { display: none; }
  .tc-mobile-switch { display: flex; gap: 8px; order: 3; padding-bottom: 12px; }
  .tc-mobile-switch button { flex: 1; }
  body.tc-management .workspace-shell > .tc-preview { order: 5; padding-top: 0; }
  .tc-preview-tabs { gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
  .tc-preview-status { width: 100%; margin: -6px 0 8px; }
  .tc-primary, .tc-secondary { font-size: 14px; }
  .tc-paper { padding: 22px 18px 18px; min-height: 0; }
  .tc-paper-heading h2 { font-size: 25px; }
  .tc-paper-event { font-size: 12px; }
  .tc-paper-section { padding: 12px 0; }
  body.tc-management .workspace-shell > .tc-edit-heading { order: 4; padding-top: 0; }
  body.tc-management .workspace-shell > [data-tc-native] { order: 5; padding: 18px 14px; min-height: 0; }
  body.tc-management .workspace-shell > .tc-footer { order: 7; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
  .tc-footer-actions { grid-row: 1; }
  .tc-footer-actions button { flex: 1; padding: 10px 12px; }
  .tc-footer-note { margin: 0; }
  .tc-footer > .tc-link { padding: 0; }
  body.tc-management [data-tc-tab='stats'] > section:not(.tc-ui) { order: 6; }
  [data-tc-group='awards'] > .mt-3 { grid-template-columns: minmax(0, 1fr); max-height: 310px; }
}
