*{box-sizing:border-box}html{scrollbar-width:none}html::-webkit-scrollbar{display:none}body{color:#e6e8ee;-webkit-font-smoothing:antialiased;background:#14161b;margin:0;font-family:Segoe UI,system-ui,-apple-system,sans-serif}.app{min-height:100vh;padding:1.5rem 2rem}.topbar{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.tournament-name{min-width:200px;font:inherit;color:inherit;background:0 0;border:none;border-bottom:2px solid #0000;flex:260px;padding:.2rem .1rem;font-size:1.6rem;font-weight:700}.tournament-name:hover{border-bottom-color:#3a3f4b}.tournament-name:focus{border-bottom-color:#6c8cff;outline:none}.options-toggle{border-radius:10px;place-items:center;width:2.5rem;height:2.5rem;padding:0;font-size:1.15rem;display:grid}.topbar .format-select{border-radius:10px;height:2.5rem}.toolbar-toggle{background:0 0;border-color:#0000}.options-toggle-active{background:#2c3040;border-color:#6c8cff}.appearance-pane{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:transparent transparent;max-height:calc(100vh - 6rem);overflow-y:auto}.appearance-pane:hover,.appearance-pane:focus-within{scrollbar-color:#8a8f9d59 transparent}.appearance-pane::-webkit-scrollbar{width:6px}.appearance-pane::-webkit-scrollbar-track{background:0 0}.appearance-pane::-webkit-scrollbar-thumb{background:0 0;border-radius:3px}.appearance-pane:hover::-webkit-scrollbar-thumb{background:#8a8f9d59}.appearance-pane:focus-within::-webkit-scrollbar-thumb{background:#8a8f9d59}.appearance-pane::-webkit-scrollbar-thumb:hover{background:#8a8f9d8c}body.theme-light .appearance-pane:hover,body.theme-light .appearance-pane:focus-within{scrollbar-color:#6a718159 transparent}.options-pane{z-index:6;background:#1c1f26;border:1px solid #2e3340;border-radius:12px;flex-direction:column;gap:.5rem;width:15rem;padding:.8rem;display:flex;position:fixed;top:4.6rem;right:1.5rem;box-shadow:0 10px 30px #00000073}.options-pane .btn,.options-pane .format-select{text-align:left;width:100%}.options-pane .btn{justify-content:flex-start}.appearance-subtitle{letter-spacing:.08em;text-transform:uppercase;color:#6c8cff;padding-left:.15rem;font-size:.72rem;font-weight:700}.appearance-section{flex-direction:column;gap:.35rem;padding:.2rem .15rem .4rem;display:flex}.slider-label{color:#8a8f9d;justify-content:space-between;font-size:.8rem;display:flex}.slider-value{align-items:center;gap:.3rem;display:flex}.icon-btn.slider-reset{width:1.2rem;height:1.2rem}.icon-btn.slider-reset:disabled{opacity:.25;cursor:default;background:0 0}.appearance-section input[type=range]{accent-color:#6c8cff;width:100%}.align-group{gap:.35rem;display:flex}.align-btn,.options-pane .align-btn{flex:1;justify-content:center;padding:.4rem 0}.btn.align-btn-active{color:#a9bcff;background:#6c8cff2e;border-color:#6c8cff;font-weight:600}.options-divider{border:none;border-top:1px solid #2e3340;width:100%;margin:.3rem 0}.options-pane-header{letter-spacing:.08em;text-transform:uppercase;color:#8a8f9d;justify-content:space-between;align-items:center;padding-left:.15rem;font-size:.78rem;font-weight:700;display:flex}.format-select,.btn{font:inherit;border:1px solid var(--line-color,#3a3f4b);color:inherit;cursor:pointer;background:#23262f;border-radius:8px;padding:.45rem .8rem;font-size:.9rem}.btn{justify-content:center;align-items:center;gap:.45rem;display:inline-flex}.btn svg{flex-shrink:0}.import-help svg{vertical-align:-.18em}.btn:hover{background:#2c3040;border-color:#6c8cff}.btn-ghost{background:0 0}.btn-add{color:#8fe6a3;background:#6cdc8214;border-color:#2f5d3c}.btn-add:hover{background:#6cdc8229;border-color:#6cdc82}.btn-shuffle{color:#a9bcff;background:#6c8cff14;border-color:#3d4a7a}.btn-shuffle:hover{background:#6c8cff29;border-color:#6c8cff}.switch{background:#3a3f4b;border-radius:999px;flex-shrink:0;width:2rem;height:1.1rem;margin-left:auto;transition:background .15s;position:relative}.switch:after{content:"";background:#e6e8ee;border-radius:50%;width:.82rem;height:.82rem;transition:transform .15s;position:absolute;top:.14rem;left:.14rem}.switch-on{background:#6c8cff}.switch-on:after{transform:translate(.9rem)}body.theme-light .switch{background:#c3c9d4}body.theme-light .switch:after{background:#fff}body.theme-light .switch-on{background:#6c8cff}.btn-danger{color:#ff8f8f;background:0 0;border-color:#5a3038}.btn-danger:hover{background:#ff7a7a1a;border-color:#ff7a7a}.guide-help{border-top:none;margin-top:0;padding-top:0}.bracket{--round-gap:36px;align-items:stretch;gap:var(--round-gap);cursor:grab;scrollbar-width:none;touch-action:none;padding-bottom:1rem;display:flex;overflow-x:auto}.bracket::-webkit-scrollbar{display:none}.bracket-panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.bracket-panning *{cursor:grabbing!important}.round{flex-direction:column;min-width:220px;display:flex}.round:first-child .round-title{margin-left:1.95rem}.round-title{text-align:center;font-size:var(--section-size,12px);letter-spacing:.08em;text-transform:uppercase;color:#8a8f9d;border:1px solid #0000;border-radius:8px;margin-bottom:.9rem;padding:.3rem .5rem;font-weight:700}.round-active-col{position:relative}.round-active-col:before{content:"";background:rgba(108, 140, 255, var(--highlight-alpha,.08));z-index:-1;position:absolute;inset:-14px -22px}.match.match-pending{border-color:#6c8cff8c}.round-active-title .round-title{color:#a9bcff;background:rgba(108, 140, 255, calc(var(--highlight-alpha,.08) + .05))}.round-matches{flex-direction:column;flex:1;display:flex}.cell{min-height:0;padding:calc(var(--match-gap,19px) / 2) 0;flex-direction:column;flex:1;justify-content:center;display:flex;position:relative}.cell-out:after,.cell-straight:after,.cell-in:before{z-index:0}.cell-out:nth-child(odd):after{content:"";right:calc(var(--round-gap) / -2);width:calc(var(--round-gap) / 2);top:calc(50% - var(--line-width,2px) / 2);height:calc(50% + var(--line-width,2px));border-top:var(--line-width,2px) solid var(--line-color,#3a3f4b);border-right:var(--line-width,2px) solid var(--line-color,#3a3f4b);position:absolute}.cell-out:nth-child(2n):after{content:"";right:calc(var(--round-gap) / -2);width:calc(var(--round-gap) / 2);bottom:calc(50% - var(--line-width,2px) / 2);height:calc(50% + var(--line-width,2px));border-bottom:var(--line-width,2px) solid var(--line-color,#3a3f4b);border-right:var(--line-width,2px) solid var(--line-color,#3a3f4b);position:absolute}.cell-straight:after{content:"";right:calc(var(--round-gap) / -2);width:calc(var(--round-gap) / 2);top:calc(50% - var(--line-width,2px) / 2);height:var(--line-width,2px);background:var(--line-color,#3a3f4b);position:absolute}.cell-in:before{content:"";left:calc(var(--round-gap) / -2);width:calc(var(--round-gap) / 2);top:calc(50% - var(--line-width,2px) / 2);height:var(--line-width,2px);background:var(--line-color,#3a3f4b);position:absolute}.match{z-index:1;background:#1c1f26;border:1px solid #2e3340;border-radius:10px;position:relative}.match-row{align-items:center;gap:.25rem;display:flex}.match-row .match{flex:1;min-width:0}.match-menu{flex-shrink:0;position:relative}.dots-btn{color:#565b68;font-size:1rem}.dots-btn:hover{color:#e6e8ee;background:#2c3040}.menu-backdrop{z-index:4;position:fixed;inset:0}.menu-dropdown{z-index:5;border:1px solid var(--line-color,#3a3f4b);background:#23262f;border-radius:8px;min-width:10rem;padding:.25rem;position:absolute;top:100%;left:0;box-shadow:0 6px 18px #0006}.menu-item{text-align:left;width:100%;font:inherit;color:inherit;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:.4rem;padding:.45rem .6rem;font-size:.85rem;display:flex}.menu-item:hover:not(:disabled){background:#2c3040}.menu-item:disabled{opacity:.4;cursor:default}.menu-item-danger:hover:not(:disabled){color:#ff8f8f;background:#ff7a7a1f}.vs{background:#2e3340;height:1px}.match>.slot:first-of-type{border-radius:9px 9px 0 0}.match>.slot:last-of-type{border-radius:0 0 9px 9px}.slot{align-items:center;gap:.3rem;min-height:2.4rem;padding:.35rem .5rem;transition:background .15s;display:flex}.slot-winner{background:#6cdc821f}.slot-loser{opacity:.45}.name-input{min-width:0;font:inherit;font-size:var(--name-size,15px);color:inherit;background:0 0;border:none;border-bottom:1px solid #0000;flex:1;padding:.15rem .1rem}.name-input:hover{border-bottom-color:#3a3f4b}.name-input:focus{border-bottom-color:#6c8cff;outline:none}.slot-bye{background:repeating-linear-gradient(-45deg,#0000,#0000 8px,#ffffff06 8px 16px)}.bye{color:#565b68;font-style:italic;font-size:calc(var(--name-size,15px) * .9);flex:1;padding-left:.15rem}.win-tag{font-size:var(--win-tag-size,10px);letter-spacing:.08em;text-transform:uppercase;color:#6cdc82;background:#6cdc8224;border-radius:5px;flex-shrink:0;padding:.12rem .35rem;font-weight:700}.win-tag-hidden{visibility:hidden}body.theme-light .win-tag{color:#1d7a35;background:#24964a1f}.icon-btn{color:#8a8f9d;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;place-items:center;width:1.7rem;height:1.7rem;font-size:.85rem;display:grid}.remove-btn:hover{color:#ff7a7a;background:#ff7a7a1a}.win-btn:hover{color:#6cdc82;background:#6cdc821f}.win-btn-active{color:#ffd257}.win-btn-active:hover{color:#ffd257;background:#ffd2571f}.ghost-match{z-index:1;color:#565b68;min-height:calc(4.8rem + 3px);font:inherit;letter-spacing:.06em;cursor:pointer;background:repeating-linear-gradient(-45deg,#0000,#0000 8px,#ffffff05 8px 16px);border:2px dashed #2e3340;border-radius:10px;place-items:center;margin-left:1.95rem;font-size:.85rem;font-style:italic;transition:border-color .15s,color .15s,background .15s;display:grid;position:relative}.ghost-match .ghost-action{letter-spacing:normal;font-style:normal;font-weight:600;display:none}.ghost-match:hover{color:#a9bcff;background:#6c8cff0f;border-color:#6c8cff}.ghost-match:hover .ghost-label{display:none}.ghost-match:hover .ghost-action{display:block}.champion-area{z-index:1;flex-direction:column;align-self:center;align-items:center;gap:.7rem;margin:auto 0;display:flex;position:relative}.champion-place{letter-spacing:.09em;text-transform:uppercase;color:#b9962e;font-size:.72rem;font-weight:700}.champion-box{color:#8a8f9d;text-align:center;border:1px dashed #3a3f4b;border-radius:10px;min-width:140px;padding:.9rem 1.4rem;font-weight:700}.champion-decided{color:#ffd257;background:#2c2610;border:1px solid #b9962e;font-size:1.05rem}.modal-overlay{z-index:10;background:#0009;place-items:center;display:grid;position:fixed;inset:0}.modal{text-align:center;background:#1c1f26;border:1px solid #2e3340;border-radius:14px;width:calc(100% - 3rem);max-width:560px;padding:1.8rem 2.2rem;position:relative}.modal h2{margin:0 0 1.4rem;font-size:1.25rem}.modal-close{color:#8a8f9d;cursor:pointer;background:0 0;border:none;border-radius:8px;width:2rem;height:2rem;font-size:1rem;position:absolute;top:.7rem;right:.7rem}.modal-close:hover{color:inherit;background:#2c3040}.confirm-modal{max-width:420px}.confirm-text{color:#8a8f9d;margin:0 0 1.4rem}.confirm-actions{justify-content:center;gap:.6rem;display:flex}.download-options{flex-direction:column;gap:.6rem;display:flex}.download-option{text-align:left;justify-content:flex-start;padding:.7rem .9rem}.download-option span{flex-direction:column;gap:.1rem;display:flex}.download-option small{color:#8a8f9d;font-size:.78rem}.import-modal{max-width:640px;max-height:85vh;overflow-y:auto}.dropzone{color:#8a8f9d;border:2px dashed #3a3f4b;border-radius:10px;margin-bottom:1rem;padding:2rem 1rem;transition:border-color .15s,background .15s}.dropzone p{margin:0}.dropzone-active{color:#e6e8ee;background:#6c8cff14;border-color:#6c8cff}.dropzone-icon{margin-bottom:.4rem;font-size:2rem}.import-actions{justify-content:center;gap:.6rem;display:flex}.import-help{text-align:left;border-top:1px solid #2e3340;margin-top:1.4rem;padding-top:1.2rem;font-size:.88rem;line-height:1.55}.import-help h3{margin:0 0 .6rem;font-size:1.05rem}.import-help h4{margin:1.1rem 0 .4rem;font-size:.92rem}.import-help p{margin:.4rem 0}.import-help ul{margin:.4rem 0;padding-left:1.3rem}.import-help li{margin:.25rem 0}.import-help pre{background:#14161b;border:1px solid #2e3340;border-radius:8px;margin:.5rem 0;padding:.6rem .8rem;font-size:.85rem;overflow-x:auto}.import-help code{background:#14161b;border:1px solid #2e3340;border-radius:4px;padding:.05rem .3rem;font-size:.83rem}.podium{justify-content:center;align-items:flex-end;gap:.8rem;margin-bottom:1.5rem;display:flex}.podium-place{flex-direction:column;flex:1;align-items:center;gap:.3rem;min-width:0;display:flex}.medal{font-size:1.8rem}.place-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:.95rem;font-weight:600;overflow:hidden}.podium-bar{color:#14161b;border-radius:6px 6px 0 0;place-items:center;width:100%;font-weight:700;display:grid}.bar-1{background:linear-gradient(#ffd257,#c99f2a);height:5.2rem}.bar-2{background:linear-gradient(#cfd6e4,#98a1b3);height:3.6rem}.bar-3{background:linear-gradient(#e0a370,#b07443);height:2.6rem}body.theme-light{color:#1e232d;background:#f2f4f8}body.theme-light .app{--line-color:#c3c9d4}body.theme-light .tournament-name:hover{border-bottom-color:#c3c9d4}body.theme-light .btn,body.theme-light .format-select{background:#fff;border-color:#d7dce5}body.theme-light .btn:hover{background:#eef1f6;border-color:#6c8cff}body.theme-light .btn-ghost,body.theme-light .toolbar-toggle,body.theme-light .btn-danger{background:0 0}body.theme-light .toolbar-toggle{border-color:#0000}body.theme-light .options-toggle-active{background:#e3e9fb;border-color:#6c8cff}body.theme-light .btn-add{color:#1d7a35;background:#24964a14;border-color:#9ed4ae}body.theme-light .btn-shuffle{color:#3352cc;background:#6c8cff14;border-color:#b4c3f5}body.theme-light .btn.align-btn-active{color:#3352cc;background:#6c8cff29;border-color:#6c8cff}body.theme-light .btn-danger{color:#c0392b;border-color:#e5b6bc}body.theme-light .btn-danger:hover{background:#c0392b14;border-color:#c0392b}body.theme-light .options-pane,body.theme-light .menu-dropdown,body.theme-light .modal{background:#fff;border-color:#d7dce5;box-shadow:0 10px 30px #1e232d26}body.theme-light .options-divider{border-top-color:#e4e8ef}body.theme-light .options-pane-header,body.theme-light .slider-label,body.theme-light .round-title,body.theme-light .icon-btn,body.theme-light .download-option small{color:#6a7181}body.theme-light .menu-item:hover:not(:disabled),body.theme-light .modal-close:hover,body.theme-light .icon-btn:hover{color:#1e232d;background:#eef1f6}body.theme-light .menu-item-danger:hover:not(:disabled){color:#c0392b;background:#c0392b14}body.theme-light .match{background:#fff;border-color:#d7dce5}body.theme-light .vs{background:#e4e8ef}body.theme-light .match.match-pending{border-color:#536fdba6}body.theme-light .name-input:hover{border-bottom-color:#c3c9d4}body.theme-light .slot-winner{background:#24964a1a}body.theme-light .win-btn:hover{color:#1d7a35;background:#24964a1a}body.theme-light .win-btn-active{color:#c99612}body.theme-light .bye{color:#9aa1ae}body.theme-light .ghost-match{color:#9aa1ae;background:repeating-linear-gradient(-45deg,#0000,#0000 8px,#1e232d06 8px 16px);border-color:#cfd5df}body.theme-light .ghost-match:hover{color:#3352cc;background:#6c8cff0f;border-color:#6c8cff}body.theme-light .slot-bye{background:repeating-linear-gradient(-45deg,#0000,#0000 8px,#1e232d08 8px 16px)}body.theme-light .champion-box{color:#6a7181;border-color:#c3c9d4}body.theme-light .champion-decided{color:#8a6d1a;background:#fff6db;border-color:#c99612}body.theme-light .round-active-title .round-title{color:#3352cc}body.theme-light .modal-overlay{background:#1e232d59}body.theme-light .dropzone{color:#6a7181;border-color:#c3c9d4}body.theme-light .dropzone-active{color:#1e232d;background:#6c8cff0f;border-color:#6c8cff}body.theme-light .import-help pre,body.theme-light .import-help code{background:#f4f6fa;border-color:#e0e4ec}body.theme-light .confirm-text{color:#6a7181}.tournaments-pane{max-height:calc(100vh - 6rem);left:1.5rem;right:auto;overflow-y:auto}.tournament-row{align-items:center;gap:.3rem;display:flex}.tournament-row .icon-btn{flex-shrink:0}.options-pane .tournament-row .tournament-item{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;justify-content:flex-start;width:auto;min-width:0;display:block;overflow:hidden}.btn.tournament-item-active{color:#a9bcff;cursor:default;background:#6c8cff24;border-color:#6c8cff}body.theme-light .btn.tournament-item-active{color:#3352cc;background:#6c8cff24}.points-input{width:2.4rem;font:inherit;font-size:calc(var(--name-size,15px) * .9);text-align:center;color:inherit;background:#ffffff0a;border:1px solid #2e3340;border-radius:6px;flex-shrink:0;padding:.1rem .15rem}.points-input:focus{border-color:#6c8cff;outline:none}body.theme-light .points-input{background:#1e232d08;border-color:#d7dce5}
