.tc-page{max-width:1120px;padding-top:32px;padding-bottom:48px}.tc-page .card{padding:24px;margin-bottom:24px;min-width:0}.tc-intro{max-width:850px;margin-bottom:28px}.tc-intro h1{overflow-wrap:anywhere;margin:12px 0}.tc-lede{font-size:1.25rem;font-weight:600}.tc-settings,.tc-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tc-page label{display:flex;flex-direction:column;gap:7px;font-weight:600;min-width:0}.tc-page input:not([type=checkbox]),.tc-page select,.tc-page textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;font:inherit;font-weight:400;font-size:16px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172238}.tc-page textarea{resize:vertical}.tc-page [hidden]{display:none!important}.tc-team-editor{border:1px solid #dbe4f0;border-radius:12px;padding:16px;min-width:0;margin:0;display:grid;gap:12px}.tc-team-editor legend{font-weight:700;padding:0 8px}.tc-team-grid{margin:20px 0}.tc-team-remove{justify-self:start}.tc-save-row,.tc-saved-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.tc-save-row label,.tc-saved-tools label{flex:1;min-width:200px}.tc-save-row .btn{min-height:46px}.tc-saved-tools{padding:16px;background:#f1f6fd;border-radius:12px;margin-top:16px}.tc-check{flex-direction:row!important;align-items:center}.tc-page .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:normal}.tc-actions{display:flex;gap:10px;align-items:center}.tc-page h2{margin-top:0}.tc-page h3{overflow-wrap:anywhere}.tc-copy{line-height:1.7}.tc-copy details{border-top:1px solid #e2e8f0;padding:14px 0}.tc-copy summary{cursor:pointer;font-weight:600}.tc-table-wrap{overflow-x:auto;max-width:100%}.tc-page table{width:100%;border-collapse:collapse;font-size:.9rem}.tc-page td,.tc-page th{text-align:left;padding:10px;border-bottom:1px solid #e2e8f0;overflow-wrap:anywhere}.tc-page caption{text-align:left;margin-bottom:12px;font-weight:600}.tc-fixture{scroll-margin-top:100px}.tc-fixture>h3{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tc-score{font-size:1.3rem;color:#2563eb;font-variant-numeric:tabular-nums;white-space:nowrap}.tc-rubber{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(190px,1fr);align-items:center;gap:12px;border-top:1px solid #e2e8f0;padding:14px 0}.tc-lineup{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}.tc-slot-number{color:#64748b;font-size:.9rem}.tc-result-form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;min-width:0}.tc-result-form select{flex:1;min-width:100px!important}.tc-result-form label{width:100%}.tc-result-status{width:100%;margin:0;color:#b42318}.tc-result-label{justify-self:end}.tc-notice{background:#fff6db;padding:12px;border-radius:8px}.tc-dialog{border:0;border-radius:16px;padding:26px;width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;box-shadow:0 20px 80px #17223855;color:#172238}.tc-dialog::backdrop{background:#0f172a99}.tc-dialog .tc-close{float:right;margin:0 0 10px 10px}.tc-dialog>a{display:flex;margin:12px 0}.tc-dialog label{display:flex;flex-direction:column;gap:7px;margin:12px 0}.tc-dialog input,.tc-dialog textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px;font-size:16px}.tc-dialog h2{clear:both}.tc-dialog #tc-embed-toggle{width:100%}.tc-print-url{display:none}.tc-saved-account-item{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #e2e8f0}.tc-saved-account-item strong{overflow-wrap:anywhere}.tc-page :focus-visible,.tc-dialog :focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
@media(max-width:640px){.tc-page{padding-top:20px}.tc-page .card{padding:16px}.tc-settings,.tc-team-grid{grid-template-columns:1fr;gap:14px}.tc-save-row,.tc-saved-tools{align-items:stretch;flex-direction:column}.tc-save-row label,.tc-saved-tools label{min-width:0}.tc-save-row>.btn{width:100%}.tc-rubber{grid-template-columns:20px minmax(0,1fr)}.tc-result-form,.tc-result-label{grid-column:2;justify-self:stretch}.tc-fixture>h3{font-size:1.05rem}.tc-score{font-size:1.15rem}.tc-page td,.tc-page th{padding:8px}.tc-dialog{padding:20px}}
@media print{body header.site-header,body nav,body footer,.tc-actions,.tc-save,.tc-dialog,.tc-result-form button,.tc-result-form label,.tc-result-status{display:none!important}.tc-page{max-width:none;padding:0}.tc-page .card{break-inside:avoid;box-shadow:none;border:1px solid #ccc;margin-bottom:12px;padding:12px}.tc-print-url{display:block}.tc-rubber{padding:6px 0}.tc-result-form select{border:0;appearance:none;padding:0}.tc-table-wrap{overflow:visible}.tc-page h1{font-size:22pt}}

.tc-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tc-page table{min-width:650px}.tc-page th,.tc-page td{word-break:normal;overflow-wrap:normal}.tc-page tbody th{min-width:120px;max-width:220px;overflow-wrap:anywhere;text-transform:none;letter-spacing:normal}.tc-scroll-hint{display:none}@media(max-width:700px){.tc-scroll-hint{display:block;font-size:.8rem;color:#64748b;margin:0 0 8px}.tc-table-wrap{border-radius:8px;overscroll-behavior-x:contain}}@media print{.tc-page table{min-width:0}.tc-scroll-hint{display:none}}

.tc-round-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:20px 0}.tc-round-filter label{min-width:160px}.tc-round-filter .btn{min-height:46px}@media print{.tc-round-filter{display:none}}
/* Creation wizard */
#tc-create{scroll-margin-top:90px}.tc-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;margin:0 0 28px;padding:0}.tc-steps button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:10px 8px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc;color:#475569;font:inherit;font-weight:600;cursor:pointer}.tc-steps button span{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border-radius:50%;background:#e2e8f0;font-size:.8rem}.tc-steps button[aria-current=step]{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.tc-steps button[aria-current=step] span{background:#2563eb;color:#fff}.tc-step-actions{display:flex;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid #e2e8f0;margin-top:24px}.tc-step-actions>.btn:last-child{margin-left:auto}.tc-extra-settings,.tc-save-option{margin:20px 0}.tc-extra-settings>summary,.tc-save-option>summary{cursor:pointer;font-weight:600;padding:12px 0}.tc-extra-settings>.tc-settings{margin-top:12px}.tc-save-option .tc-save{margin:8px 0 0;padding:16px;background:#f8fafc}.tc-save-option .tc-save h2{font-size:1.15rem}.tc-review-list{display:grid;grid-template-columns:minmax(160px,1fr) minmax(0,1fr);gap:10px 20px;margin:0 0 18px}.tc-review-list dt{color:#64748b}.tc-review-list dd{margin:0;font-weight:600;overflow-wrap:anywhere}.tc-review-team{padding:16px;border:1px solid #dbe4f0;border-radius:12px;overflow-wrap:anywhere}.tc-review-team h4{margin:0 0 8px}.tc-review-team ol{margin:0;padding-left:20px}.tc-page [data-tc-step] h2:focus{outline:none}@media(max-width:640px){.tc-steps{gap:6px;margin-bottom:20px}.tc-steps button{font-size:.85rem;gap:5px;padding:10px 5px}.tc-step-actions .btn{flex:1}.tc-review-list{grid-template-columns:1fr;gap:4px}.tc-review-list dd{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){#tc-create{scroll-behavior:auto}}
/* Item actions and numbered player input */
.tc-team-name-field{position:relative;margin-top:7px}.tc-team-name-field .tc-team-name{padding-right:96px!important;min-height:48px}.tc-team-icons{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:flex}.tc-team-icon{width:44px;height:44px;display:grid;place-items:center;padding:0;background:transparent;border:0;border-radius:6px;color:#2563eb;cursor:pointer}.tc-team-icon:hover{background:#eff6ff}.tc-team-icon:disabled{opacity:.5;cursor:wait}.tc-player-editor{display:grid;grid-template-columns:32px minmax(0,1fr);border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;margin-top:-6px}.tc-player-editor:focus-within{outline:2px solid #38bdf8;outline-offset:2px}.tc-player-gutter{height:calc(var(--tc-player-rows,3)*26px + 24px);overflow:hidden;background:#f8fafc;color:#64748b;border-right:1px solid #e2e8f0}.tc-player-numbers{list-style:none;margin:0;padding:12px 0;text-align:center;font-size:14px;line-height:26px}.tc-player-numbers li{height:26px}.tc-page .tc-player-editor textarea{padding:12px 10px!important;border:0;border-radius:0;height:calc(var(--tc-player-rows,3)*26px + 24px);line-height:26px;resize:none;white-space:pre;overflow:auto;outline:none}.tc-player-help{margin:-4px 0 0;font-size:.8rem;color:#64748b}.tc-team-status:empty{display:none}.tc-team-status{margin:0;font-size:.85rem}.tc-page details.tc-saved-tools{display:block;padding:0;background:none;margin:12px 0}.tc-saved-tools>summary{cursor:pointer;padding:8px 0;font-weight:600;font-size:.9rem}.tc-saved-list-row{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:12px;background:#f1f6fd;border-radius:8px}.tc-team-option{display:flex;flex-direction:column;gap:5px;width:100%;min-height:56px;text-align:left;padding:12px;margin-top:8px;border:1px solid #dbe4f0;border-radius:8px;background:#fff;color:#172238;cursor:pointer;font:inherit;overflow-wrap:anywhere}.tc-team-option:hover{border-color:#2563eb;background:#eff6ff}.tc-team-option span{font-size:.8rem;color:#64748b}.tc-dialog #tc-team-options{max-height:45dvh;overflow:auto;overscroll-behavior:contain}
@media(max-width:640px){.tc-page:has(#tc-form){padding-top:12px}.tc-create-intro{margin-bottom:12px}.tc-create-intro>:not(h1){display:none}.tc-create-intro h1{font-size:1.15rem;line-height:1.3;margin:0}.tc-page #tc-create{padding:14px}#tc-step-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.tc-steps{margin-bottom:16px}.tc-page [data-tc-step]>h2{font-size:1.2rem;line-height:1.3;margin:0 0 14px}.tc-page [data-tc-step]>p.text-muted{display:none}.tc-page #tc-roster-help{font-size:.8rem;margin:0 0 12px}.tc-team-grid{margin-top:12px}.tc-team-editor{padding:12px;gap:10px}.tc-team-name-field .tc-team-name{padding-left:10px}.tc-saved-list-row{align-items:stretch;flex-direction:column}.tc-saved-list-row label{min-width:0}.tc-page [data-tc-step="1"] #tc-format-info{font-size:.8rem;margin-bottom:0}.tc-extra-settings{margin:12px 0}.tc-extra-settings>summary{padding:8px 0}.tc-step-actions{margin-top:16px;padding-top:16px}}

@media(max-width:640px){.tc-save-option .tc-save>h2,.tc-save-option .tc-save>p:not(#tc-save-status){display:none}.tc-save-option .tc-save{padding:12px}}

.tc-player-team{font-size:.8em;font-weight:400;color:#64748b;line-height:1.35;overflow-wrap:anywhere}

/* Universal schedules and numeric match scores */
.tc-end-settings{margin-top:18px}.tc-point-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tc-extra-settings>label{margin-top:16px}.tc-schedule-row{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px;margin:12px 0}.tc-schedule-row>span{color:#64748b}.tc-schedule-row label{font-size:.8rem}.tc-score-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:8px;width:100%}.tc-result-form .tc-score-inputs label{width:auto;font-size:.8rem;overflow-wrap:anywhere}.tc-score-inputs>span{padding-bottom:12px}.tc-result-form>select{flex-basis:100%}#tc-custom-schedule{margin-top:16px}#tc-match-count{max-width:180px}#tc-schedule-rows{max-height:420px;overflow-y:auto;padding:2px}.tc-extra-settings h3{font-size:1rem;margin:20px 0 8px}@media(max-width:640px){.tc-point-fields{gap:8px}.tc-point-fields input{padding:11px 8px!important}.tc-schedule-row{gap:8px}.tc-end-settings{gap:12px}.tc-score-inputs{gap:6px}}@media print{.tc-score-inputs label{display:flex!important}.tc-score-inputs input{border:0!important;padding:0!important}.tc-result-form>select{display:none}.tc-score-inputs[hidden]{display:none!important}}

.tc-scoring-explanation{margin:12px 0 20px}.tc-scoring-explanation summary{cursor:pointer;font-weight:600}.tc-print-result{display:none}@media(max-width:640px){.tc-page [data-tc-step="1"] #tc-finish-help{display:block;font-size:.8rem}}@media print{.tc-result-form{display:none!important}.tc-print-result{display:block}.tc-scoring-explanation{display:none}}

/* A two-team match uses the same name / score arrangement as bracket slots. */
.tc-duel-rubber{border:1px solid #dbe4f0;border-radius:10px;margin:14px 0;padding:12px;max-width:620px}.tc-duel-rubber>.tc-slot-number{display:block;font-size:.8rem;margin-bottom:8px}.tc-inline-result{display:block}.tc-page .tc-player-score-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:6px 0;border-bottom:1px solid #edf1f7;box-sizing:border-box}.tc-player-score-row>strong{font-size:.95rem;overflow-wrap:anywhere;min-width:0}.tc-page .tc-player-score-row input{width:76px;flex:0 0 76px;min-height:44px;text-align:center;padding:8px;font-variant-numeric:tabular-nums}.tc-player-score-row .tc-player-team{font-weight:400}.tc-inline-actions{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}.tc-inline-actions .btn{min-height:36px}.tc-individual-score{font-weight:700;min-width:44px;text-align:center}.tc-inline-result .tc-result-status{margin-top:6px}.tc-duel-rubber .tc-result-label{display:block;font-size:.8rem;color:#64748b;margin-top:8px}@media print{.tc-duel-rubber{break-inside:avoid}.tc-duel-rubber .tc-print-result{width:100%}}

@media(max-width:640px){.tc-duel-page{padding-top:12px}.tc-duel-page .tc-intro{margin-bottom:18px}.tc-duel-page .tc-intro>p:nth-of-type(2),.tc-duel-page .tc-intro>a{display:none}.tc-duel-page .tc-intro h1{font-size:1.35rem;line-height:1.3;margin:0 0 8px}.tc-duel-page .tc-intro>p{font-size:.8rem;margin:8px 0 12px}.tc-duel-page section>h2{font-size:1.2rem}.tc-duel-page .tc-scoring-explanation{font-size:.85rem;margin:8px 0 14px}.tc-duel-page .tc-fixture{padding:12px}.tc-duel-rubber{padding:10px}}

/* Matchups are chosen after entering rosters, using names rather than roster numbers. */
.tc-matchup-headings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:12px 14px;background:#f1f6fd;border-radius:8px;overflow-wrap:anywhere}.tc-named-matchup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:14px 10px;border-bottom:1px solid #e2e8f0}.tc-matchup-number{grid-column:1/-1;font-size:.8rem;color:#64748b}.tc-matchup-side{display:flex;flex-direction:column;gap:8px;min-width:0}.tc-small-action{display:inline-flex;align-items:center;min-height:44px;background:none;border:0;color:#2563eb;padding:6px 0;font:inherit;font-size:.8rem;text-align:left;cursor:pointer}.tc-small-action:disabled{opacity:.4;cursor:default}.tc-remove-match{grid-column:1/-1;justify-self:start}.tc-mobile-team-label{display:none}.tc-review-summary{margin-top:20px}.tc-review-summary summary{font-weight:600;cursor:pointer;padding:12px 0}.tc-review-summary[open] summary{margin-bottom:12px}#tc-add-match{margin-top:12px}#tc-schedule-rows{max-height:520px;overflow-y:auto;padding:2px}.tc-named-player select{min-height:46px}@media(max-width:640px){.tc-matchup-headings{display:none}.tc-mobile-team-label{display:block;font-size:.75rem;color:#64748b;overflow-wrap:anywhere}.tc-named-matchup{gap:10px;padding:12px 0}.tc-named-player select{padding:10px 7px!important}.tc-matchup-side{gap:5px}.tc-page [data-tc-step="3"] #tc-finish-help{display:block;font-size:.8rem}}

/* Final result stays above the match details on every screen. */
.tc-outcome{display:flex;align-items:center;gap:16px;padding:20px;margin:16px 0;border:2px solid #15803d;border-radius:12px;background:#f0fdf4;color:#14532d;break-inside:avoid}.tc-outcome-icon{flex-shrink:0}.tc-outcome-caption{font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.tc-page .tc-outcome h2{font-size:1.6rem;line-height:1.25;margin:4px 0 8px;overflow-wrap:anywhere}.tc-outcome p{margin:0;overflow-wrap:anywhere;line-height:1.5}.tc-outcome strong{display:inline-block;margin:0 5px;font-size:1.15em;font-variant-numeric:tabular-nums}.tc-outcome-draw{background:#eff6ff;border-color:#2563eb;color:#1e3a8a}@media(max-width:640px){.tc-outcome{gap:12px;padding:14px;margin:12px 0}.tc-page .tc-outcome h2{font-size:1.25rem}.tc-outcome p{font-size:.9rem}}@media print{.tc-outcome{border-color:#333;background:#fff;color:#111}}

.tc-outcome>div{min-width:0}
