.double-ko{max-width:1500px}.double-ko h1,.double-ko h2{overflow-wrap:anywhere}.double-tree-scroll{overflow:auto;max-width:100%;padding:12px 6px 24px;overscroll-behavior-x:contain}.double-tree{display:flex;position:relative;gap:56px;width:max-content;min-width:100%;align-items:stretch}.double-stage{position:relative;width:306px;flex:0 0 306px;z-index:1;display:flex;flex-direction:column}.double-stage h3{font-size:1rem;min-height:40px;margin:0 0 16px}.double-stage-nodes{display:flex;flex-direction:column;justify-content:space-around;gap:20px;flex:1}.double-match{padding:14px;border:1px solid var(--score-ui-border);border-radius:12px;scroll-margin-top:100px}.double-match:where(:not(.status-0,.status-1,.status-2,.status-3)){background:var(--score-ui-surface)}.double-match.is-waiting{border-style:dashed;background:var(--score-ui-surface)}.double-match.is-cancelled{opacity:.55}.double-meta{font-size:.85rem;color:var(--score-ui-text-muted);margin-bottom:10px}.double-player{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;border-top:1px solid #395064;padding:6px 0}.double-player>div{min-width:0;overflow-wrap:anywhere}.double-player small{display:block;color:var(--score-ui-text-muted);font-size:.75rem}.double-player a{color:var(--score-ui-link);text-decoration:none}.double-player a:hover{text-decoration:underline}.double-player strong{font-size:1.2rem}.double-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-items:center}.double-controls .form-select{width:100%;min-width:0}.double-controls input[type=number]{width:100%;min-width:0}.double-controls label{flex:1;min-width:80px}.double-controls input[type=text]{width:100%;min-width:0}.double-controls .btn{flex:1;white-space:normal;min-width:100px}.double-ko .btn,.double-ko .form-control,.double-ko .form-select{min-height:44px}.double-note{margin:10px 0 0;font-size:.8rem;color:var(--score-ui-text-muted)}.double-edges{position:absolute;inset:0;pointer-events:none;overflow:visible}.double-edges path{fill:none;stroke:#6593b7;stroke-width:1.5}.double-edges .loser-edge{stroke:#c49e73;stroke-dasharray:5 4}.double-tree-section{margin-top:2rem}.double-tree-section>h2{font-size:1.5rem}.double-ko-live-note{font-size:.9rem;color:var(--score-ui-text-muted)}
@media(max-width:767px){.double-ko{padding:12px}.double-stage{width:280px;flex-basis:280px}.double-tree{gap:40px}.double-ko .form-control,.double-ko .form-select{font-size:16px}}

.double-match:target{outline:2px solid var(--score-ui-link);outline-offset:3px}

.double-view-toggle{display:flex;gap:8px;flex-wrap:wrap}.double-view-toggle [aria-pressed=true]{background:#1599bc;color:#071724;border-color:#69d6f1;font-weight:700}
.double-linear-stages .double-stage{width:auto;display:block;margin-top:2rem}.double-linear-stages .double-stage h3{min-height:0;margin-bottom:14px;font-size:1.2rem}.double-linear-stages .double-stage-nodes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.double-linear-stages .double-match{min-width:0}.double-linear-stages .double-controls .form-select{width:auto;flex:1;min-width:140px}
@media(max-width:767px){.double-linear-stages .double-stage-nodes{grid-template-columns:1fr}.double-view-toggle .btn{flex:1}}

.double-ko{overflow-anchor:none}.double-form-feedback{flex-basis:100%;margin:4px 0 0}

.double-correction{margin-top:10px}.double-correction summary{cursor:pointer;color:var(--score-ui-text-muted);font-size:.85rem;padding:10px 0;min-height:44px}.double-correction .double-controls{margin-top:4px}
.double-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}
.double-result-lock{position:relative;display:inline-flex;align-items:center;padding:3px;cursor:help}
.double-lock-tooltip{display:none;position:absolute;top:100%;right:0;z-index:1;width:max-content;max-width:220px;padding:8px 10px;border:1px solid var(--score-ui-border);border-radius:6px;background:var(--score-ui-surface);color:var(--score-ui-text);font-size:.8rem}
.double-result-lock:hover .double-lock-tooltip,.double-result-lock:focus .double-lock-tooltip{display:block}
.double-stage-race{margin:0 0 12px;color:var(--score-ui-text-muted);font-size:.85rem}
.double-stage-race summary{cursor:pointer}
.double-stage-race form{margin-top:8px}

/* Follow the source matches instead of distributing rounds independently. */
.double-tree .double-stage-nodes{justify-content:flex-start;flex:none}

.double-ranking{margin-top:32px;padding-top:24px;border-top:1px solid #395064}
.double-ranking h2{margin:0 0 16px;font-size:1.5rem;line-height:1.3}
.double-ranking-table{width:100%;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid var(--score-ui-border);border-radius:12px;overflow:hidden;background:var(--score-ui-surface)}
.double-ko .double-ranking-table th,.double-ko .double-ranking-table td{text-align:left;padding:14px 20px;vertical-align:middle;border:0;line-height:1.5;overflow-wrap:anywhere}
.double-ko .double-ranking-table th{background:var(--score-ui-surface-raised);color:var(--score-ui-text-muted);font-size:.85rem;font-weight:600}
.double-ko .double-ranking-table th:first-child,.double-ko .double-ranking-table td:first-child{width:100px;font-variant-numeric:tabular-nums}
.double-ko .double-ranking-table tbody tr+tr td{border-top:1px solid #2b4053}
.double-ko .double-ranking-table td:first-child{color:var(--score-ui-link);font-weight:600}
@media(max-width:767px){.double-ranking{margin-top:24px;padding-top:20px}.double-ranking h2{font-size:1.25rem}.double-ko .double-ranking-table th,.double-ko .double-ranking-table td{padding:12px 14px}.double-ko .double-ranking-table th:first-child,.double-ko .double-ranking-table td:first-child{width:76px}}
