:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-matrix-self:#111827;--color-background:#f5f6f8;--color-surface:#fff;--color-text:#1f2937;--color-text-muted:#6b7280;--color-border:#e5e7eb;--color-primary:#111827;--color-primary-hover:#374151;--color-success:#15803d;--color-success-background:#dcfce7;--color-warning:#a16207;--color-warning-background:#fef9c3;--color-info:#0369a1;--color-info-background:#e0f2fe;--color-neutral:#52525b;--color-neutral-background:#f4f4f5;--color-danger:#b91c1c;--color-winner-background:#dcfce7;--color-winner-text:#166534}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-matrix-self:#141820;--color-background:#141820;--color-surface:#202631;--color-text:#e5eaf2;--color-text-muted:#aab6c6;--color-border:#414c5e;--color-primary:#bccdf1;--color-primary-hover:#d6e2ff;--color-success:#86dba7;--color-success-background:#183b2b;--color-warning:#f1cc73;--color-warning-background:#40341c;--color-info:#8acef5;--color-info-background:#19374a;--color-neutral:#c4c8d0;--color-neutral-background:#303642;--color-danger:#ff9a9a;--color-winner-background:#183b2b;--color-winner-text:#9be5b6}:root{--color-on-primary:#fff}:root[data-theme=dark]{--color-on-primary:#172033}:root{--color-success-strong:#166534}:root[data-theme=dark]{--color-success-strong:#9be5b6}:root{--color-connector:#94a3b8}:root[data-theme=dark]{--color-connector:#718198}:root{--color-loss:#dc2626}:root[data-theme=dark]{--color-loss:#ff9a9a}:root{--color-danger-background:#fef2f2}:root[data-theme=dark]{--color-danger-background:#40262c}:root{--color-danger-border:#fecaca}:root[data-theme=dark]{--color-danger-border:#87505b}:root{--color-success-soft:#f0fdf4}:root[data-theme=dark]{--color-success-soft:#183b2b}:root{--color-success-border:#bbf7d0}:root[data-theme=dark]{--color-success-border:#37694e}:root{--color-subtle-border:#cbd5e1}:root[data-theme=dark]{--color-subtle-border:#526176}input,select,textarea{color:var(--color-text);background-color:var(--color-surface)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}.theme-toggle{min-width:42px;min-height:42px;font-size:1.35rem}.theme-error{color:var(--color-danger);max-width:220px;font-size:.8rem}@media (width<=760px){.app-header__inner{flex-wrap:wrap;gap:8px;padding-block:8px}.app-header__session{flex-wrap:wrap;gap:8px}}*{box-sizing:border-box}html{color:var(--color-text);background:var(--color-background);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}a{color:inherit}h1,h2,h3,h4,h5,p{margin-top:0}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.25rem}h4{font-size:1.1rem}main{width:min(100% - 32px,1440px);margin:0 auto;padding:32px 0 48px}.button,button{background:var(--color-primary);min-height:40px;color:var(--color-on-primary);cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;padding:8px 16px;font-weight:600;transition:background-color .15s,opacity .15s;display:inline-flex}.button:hover:not(:disabled),button:hover:not(:disabled){background:var(--color-primary-hover)}.button:disabled,button:disabled{opacity:.5;cursor:not-allowed}.button--share{background:var(--color-success);gap:8px}.button--share:hover:not(:disabled){background:var(--color-success-strong)}.button--share svg{flex-shrink:0}.button__icon{flex-shrink:0;margin-right:8px}.status{white-space:nowrap;border-radius:999px;align-items:center;padding:4px 8px;font-size:.875rem;font-weight:600;display:inline-flex}.status--completed{color:var(--color-success);background:var(--color-success-background)}.status--in-progress{color:var(--color-info);background:var(--color-info-background)}.status--ready{color:var(--color-warning);background:var(--color-warning-background)}.status--pending,.status--draft{color:var(--color-neutral);background:var(--color-neutral-background)}table{border-collapse:collapse;width:100%}table th,table td{text-align:left;border-bottom:1px solid var(--color-border);padding:8px 16px}table th{color:var(--color-text-muted);font-size:.875rem;font-weight:600}table tbody tr:last-child td{border-bottom:0}.stage-page{flex-direction:column;gap:32px;display:flex}.stage-page__header-actions{flex-wrap:wrap;gap:8px;display:flex}.stage-page__page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.stage-page__page-header h1{flex-wrap:wrap;align-items:baseline;gap:8px;margin-top:16px;margin-bottom:0;display:flex}.page-title__separator{color:var(--color-text-muted);font-weight:400}.stage-summary{flex-direction:column;gap:32px;min-width:0;display:flex}.stage-header{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:24px}.stage-header__top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.stage-header__title{overflow-wrap:anywhere;min-width:0;margin:0}.stage-header__back{color:var(--color-text-muted);text-decoration:none}.stage-header__back:hover{color:var(--color-text)}.stage-header__main{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.stage-header__meta{color:var(--color-text-muted);flex-wrap:wrap;gap:16px;display:flex}.stage-header__actions{flex-wrap:wrap;gap:8px;display:flex}.archived-notice{color:var(--color-text-muted);background:var(--color-neutral-background);border:1px solid var(--color-border);border-radius:8px;padding:16px}.stage-final-standing,.stage-participants,.stage-phases{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:24px}.stage-final-standing{overflow-x:auto}.stage-final-standing__header,.stage-final-standing__item{grid-template-columns:minmax(200px,1fr) minmax(100px,auto) minmax(220px,auto) repeat(4,minmax(100px,auto));align-items:center;gap:16px;min-width:1150px;font-size:2rem;display:grid}.stage-final-standing__header{color:var(--color-text-muted);grid-template-areas:"player matches matches sets sets placement total""player matches-played matches-won sets-played sets-won placement total";row-gap:4px;margin-bottom:4px;padding:0 8px 0 56px;font-size:.8rem;font-weight:700}.stage-final-standing__heading-player{grid-area:player}.stage-final-standing__heading-matches{grid-area:matches}.stage-final-standing__heading-sets{grid-area:sets}.stage-final-standing__heading-matches-played{grid-area:matches-played}.stage-final-standing__heading-matches-won{grid-area:matches-won}.stage-final-standing__heading-sets-played{grid-area:sets-played}.stage-final-standing__heading-sets-won{grid-area:sets-won}.stage-final-standing__heading-placement{grid-area:placement}.stage-final-standing__heading-total{grid-area:total}.stage-final-standing__heading-matches,.stage-final-standing__heading-sets{text-align:center;border-bottom:1px solid var(--color-border);padding-bottom:4px}.stage-final-standing__heading-player,.stage-final-standing__heading-matches,.stage-final-standing__heading-sets,.stage-final-standing__heading-matches-played,.stage-final-standing__heading-matches-won,.stage-final-standing__heading-sets-played,.stage-final-standing__heading-sets-won,.stage-final-standing__heading-placement,.stage-final-standing__heading-total{font-size:1rem}.stage-final-standing__heading-matches-played,.stage-final-standing__heading-matches-won,.stage-final-standing__heading-sets-played,.stage-final-standing__heading-sets-won,.stage-final-standing__statistic{text-align:center}.stage-final-standing__heading-matches-played--won,.stage-final-standing__heading-matches-won--won,.stage-final-standing__heading-sets-played--won,.stage-final-standing__heading-sets-won--won,.stage-final-standing__statistic--won{color:var(--color-success)}.stage-final-standing__heading-placement,.stage-final-standing__heading-total,.stage-final-standing__placement,.stage-final-standing__total{color:var(--color-success);text-align:center}.stage-final-standing__list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.stage-final-standing__item{border-bottom:1px solid var(--color-border);padding:8px;font-weight:700}.stage-final-standing__item:last-child{border-bottom:0}.stage-final-standing__position{background:var(--color-neutral-background);border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-weight:800;display:inline-flex}.stage-final-standing__name{grid-column:1}.stage-final-standing__position{position:absolute}.stage-final-standing__item{padding-left:56px;position:relative}.stage-participants__list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.stage-participants__item{background:var(--color-background);border-radius:8px;justify-content:space-between;gap:16px;padding:16px;display:flex}.stage-participants__name{font-weight:600}.stage-participants__meta{color:var(--color-text-muted)}.stage-phases__list{flex-direction:column;gap:32px;display:flex}.stage-phase__header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.stage-phase__header h3{margin-bottom:0}.stage-phase__controls{align-items:center;gap:8px;display:flex}.stage-phase__controls label{color:var(--color-text-muted);align-items:center;gap:4px;display:flex}.stage-phase__units{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));display:grid}.stage-phase__units.one-column{grid-template-columns:repeat(auto-fit,minmax(100%,1fr))}.stage-phase__units{gap:24px}.stage-unit{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;padding:24px}.stage-unit__header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;display:flex}.stage-unit__header h4{margin-bottom:4px}.stage-unit__type{color:var(--color-text-muted);font-size:.875rem}.stage-unit__section{margin-top:24px}.stage-unit__participants{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.stage-unit__participants li{background:var(--color-background);border-radius:8px;padding:4px 8px}@media (width<=700px){.stage-header__main{flex-direction:column;align-items:stretch}.stage-header__actions button{width:100%}.stage-phase__units{grid-template-columns:1fr}}.match-list__items{flex-direction:column;gap:8px;display:flex}.match-card{border:1px solid var(--color-border);background:var(--color-background);border-radius:8px;padding:16px}.match-card__main{justify-content:space-between;align-items:center;gap:16px;display:flex}.match-card__players{align-items:center;gap:8px;min-width:0;display:flex}.match-card__player{font-weight:600}.match-card__versus{color:var(--color-text-muted);font-size:.875rem}.match-card__result{flex-shrink:0;align-items:center;gap:8px;display:flex}.match-card__score{text-align:center;min-width:42px;font-size:1.1rem}.match-card__waiting{color:var(--color-text-muted);font-style:italic}.match-result-form{border-top:1px solid var(--color-border);flex-wrap:wrap;align-items:flex-end;gap:16px;margin-top:16px;padding-top:16px;display:flex}.match-result-form__score{align-items:flex-end;gap:8px;display:flex}.match-result-form__score label{color:var(--color-text-muted);flex-direction:column;gap:4px;font-size:.8rem;display:flex}.match-result-form__score select{border:1px solid var(--color-border);background:var(--color-surface);min-width:64px;color:var(--color-text);border-radius:8px;padding:8px}.match-result-form__separator{padding-bottom:8px;font-weight:700}.match-result-form__error{width:100%;color:var(--color-danger);margin:0}@media (width<=700px){.match-card__main{flex-direction:column;align-items:flex-start}.match-card__players{justify-content:space-between;width:100%}.match-result-form{flex-direction:column;align-items:stretch}.match-result-form button{width:100%}}.group-view{align-items:start;gap:24px;margin-top:20px;display:grid}.group-view__matrix{min-width:0}.group-matrix-wrapper{width:100%;overflow-x:auto}.group-matrix{border-collapse:collapse;width:100%;min-width:650px}.group-matrix th,.group-matrix td{border:1px solid var(--color-border);text-align:center;height:42px;padding:4px 8px}.group-matrix tbody tr:last-child td{border-bottom:1px solid var(--color-border)}.group-matrix th{background:var(--color-surface);font-weight:700}.group-matrix__name{min-width:160px;text-align:left!important}.group-matrix__index{width:42px;font-weight:700}.group-matrix__player-number{width:60px}.group-matrix__self{background:var(--color-matrix-self)!important}.group-matrix__win{color:var(--color-success);font-weight:700}.group-matrix__loss{color:var(--color-loss);font-weight:700}.group-matrix__pending{color:var(--color-text-muted)}.group-matrix__wins,.group-matrix__position{font-weight:700}.group-matrix__score-button{width:100%;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:0;padding:4px 8px;position:absolute;inset:0}.group-matrix__score-button:hover:not(:disabled){background:0 0}.group-matrix__score-button:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.group-matrix td{position:relative}.group-matrix__pending--editable{cursor:pointer}.group-matrix__pending--editable:hover{background:var(--color-info-background)}.group-matrix-editor{z-index:20;background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;width:190px;padding:8px;position:fixed;box-shadow:0 8px 24px #00000024}.group-matrix-editor__scores{grid-template-columns:repeat(3,1fr);gap:4px;display:grid}.group-matrix-editor__scores button{background:var(--color-surface);min-height:32px;color:var(--color-text);border:1px solid var(--color-border);padding:4px}.group-matrix-editor__scores button:hover:not(:disabled){background:var(--color-primary);color:var(--color-on-primary)}.group-matrix-editor__cancel{width:100%;color:var(--color-text-muted);border:1px solid var(--color-border);background:0 0;margin-top:4px}.group-matrix-editor__cancel:hover:not(:disabled){background:var(--color-background);color:var(--color-text)}.group-matrix-editor__points{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0;display:grid}.group-matrix-editor__points label{overflow-wrap:anywhere;flex-direction:column;gap:4px;font-size:.8rem;font-weight:600;display:flex}.group-matrix-editor__points input{box-sizing:border-box;border:1px solid var(--color-border);background:var(--color-surface);width:100%;min-height:32px;color:var(--color-text);font:inherit;text-align:center;border-radius:8px;margin-top:auto;padding:4px}.group-matrix-editor__points input:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}.group-matrix-editor__submit{background:var(--color-surface);width:100%;min-height:32px;color:var(--color-text);border:1px solid var(--color-border);padding:4px}.group-matrix-editor__submit:hover:not(:disabled){background:var(--color-primary);color:var(--color-on-primary)}.group-matrix-editor__delete{background:var(--color-surface);width:100%;color:var(--color-danger);border:1px solid var(--color-danger);margin-top:8px}.group-matrix-editor__delete:hover:not(:disabled){background:var(--color-danger);color:var(--color-on-primary)}.group-matrix-editor__error{color:var(--color-danger);margin-top:4px;font-size:.75rem}.match-score-click-layer{z-index:900;background:0 0;position:fixed;inset:0}.match-score-spotlight{z-index:901;pointer-events:none;outline:3px solid var(--color-primary);outline-offset:3px;border-radius:8px;position:fixed;box-shadow:0 0 0 9999px #0f172a8c}.group-matrix-editor{z-index:902}.bracket-player--editable,.group-matrix__pending--editable{cursor:pointer}.match-score-special{border-top:1px solid var(--color-border);margin-top:8px;padding-top:8px}.match-score-special__toggle{width:100%;color:var(--color-text-muted);border:1px solid var(--color-border);cursor:pointer;background:0 0;border-radius:8px;justify-content:space-between;align-items:center;padding:8px;font-size:.8rem;font-weight:600;display:flex}.match-score-special__toggle:hover:not(:disabled){color:var(--color-text);background:var(--color-background)}.match-score-special__chevron{transition:transform .15s}.match-score-special__chevron--open{transform:rotate(180deg)}.match-score-special__menu{flex-direction:column;gap:4px;margin-top:4px;display:flex}.match-score-special__menu button{text-align:left;background:var(--color-surface);width:100%;color:var(--color-text);border:1px solid var(--color-border);cursor:pointer;border-radius:8px;padding:8px;font-size:.8rem}.match-score-special__menu button:hover:not(:disabled){background:var(--color-background)}@media (width<=1000px){.group-view{grid-template-columns:1fr}}.group-match-order .form-field{flex-direction:column;gap:8px;min-width:0;display:flex}.group-match-order select{width:100%;min-height:44px;font:inherit;color:var(--color-text);background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;padding:8px}.group-match-order__selectors{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;display:grid}.group-match-order__matches{gap:8px;padding:0;list-style:none;display:grid}.group-match-order__matches li{border:1px solid var(--color-border);background:var(--color-surface);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 16px;display:flex}.group-match-order__matches li[draggable=true]{cursor:grab}.group-match-order__matches li:last-child{border-color:var(--color-info)}.group-match-order__matches small{color:var(--color-text-muted)}.group-match-order__moves,.group-match-order__actions{gap:8px;display:flex}.group-match-order__moves button{min-width:44px;min-height:44px}.group-match-order__actions{flex-wrap:wrap}.group-match-order__schedule{align-items:flex-start;gap:24px;max-width:100%;margin-top:16px;padding-bottom:8px;display:flex;overflow-x:auto}.group-match-order__column{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;flex-direction:column;flex:none;gap:8px;margin:0;padding:0;list-style:none;display:flex}.group-match-order__completed{opacity:.5}.group-match-order__match{min-height:auto;color:inherit;font:inherit;background:0 0;border:1px solid #0000;border-radius:50%;padding:0 2px}.group-match-order__match:hover:not(:disabled){background:0 0}.group-match-order__match[aria-pressed=true]{border-color:currentColor}.group-match-order__match:focus-visible{outline:2px solid var(--color-info);outline-offset:2px}.group-match-order__played{display:inline-block;position:relative}.group-match-order__played:after{content:"";pointer-events:none;background:currentColor;width:110%;height:1px;position:absolute;top:50%;left:-5%;transform:rotate(-30deg)}.tiebreak{min-width:0;margin-top:24px}.tiebreak h5{margin:0 0 8px}.tiebreak p,.tiebreak ol,.tiebreak details{margin:.75rem 0}.tiebreak summary{cursor:pointer}.tiebreak caption{text-align:left;padding:8px 0;font-weight:700}.tiebreak-score-editor{box-sizing:border-box;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto}.tiebreak-score-editor>strong{margin-bottom:.5rem;font-size:.875rem;display:block}.tiebreak-score-editor fieldset{border:0;min-width:0;margin:0;padding:0}.knockout-bracket-scroll{width:100%;padding-bottom:16px;overflow-x:auto}.knockout-bracket{min-width:100%;position:relative}.knockout-bracket__round{height:100%;position:absolute;top:0}.knockout-bracket__round-title{height:44px;color:var(--color-text-muted);justify-content:center;align-items:center;margin:0;font-size:.875rem;font-weight:600;display:flex}.knockout-bracket__match{z-index:2;position:absolute;left:0}.knockout-bracket__connectors{z-index:1;pointer-events:none;position:absolute;inset:0;overflow:visible}.knockout-bracket__connector{fill:none;stroke:var(--color-connector);stroke-width:2px;vector-effect:non-scaling-stroke}.knockout-bracket__champion{justify-content:center;align-items:center;width:100%;height:112px;display:flex;position:absolute;left:0;transform:translateY(-50%)}.knockout-champion__icon{font-size:1.75rem;line-height:1}.knockout-champion__name{color:var(--color-winner-text);margin-top:4px;font-size:1rem;font-weight:800}.knockout-champion__pending{color:var(--color-text-muted);font-size:.875rem}.knockout-bracket__champion{background:var(--color-winner-background);border:1px solid var(--color-success);border-radius:12px;flex-direction:column;gap:4px;padding:16px;display:flex;box-shadow:0 4px 12px #00000014}.knockout-bracket__connector--champion{stroke:var(--color-success);stroke-width:3px}.bracket-match{background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;grid-template-rows:1fr 1fr;width:100%;height:100%;display:grid;position:relative;overflow:hidden;box-shadow:0 1px 2px #0000000a}.bracket-player{justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:5px 8px;display:flex}.bracket-player:first-child{border-bottom:1px solid var(--color-border)}.bracket-player--winner{background:var(--color-winner-background)}.bracket-player--winner .bracket-player__name,.bracket-player--winner .bracket-player__score{color:var(--color-winner-text);font-weight:700}.knockout-view{flex-direction:column;gap:40px;display:flex}.knockout-view__bracket{padding-top:16px}.knockout-view__bracket:not(:first-child){border-top:1px solid var(--color-border)}.knockout-view__title{margin-bottom:16px;font-size:1rem;font-weight:700}.stage-list-page{flex-direction:column;gap:32px;display:flex}.stage-list-page__header{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.stage-list-page__header h1{flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:4px;display:flex}.stage-list-page__subtitle{color:var(--color-text-muted);margin-bottom:0}.stage-list-page__actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.competition-ranking-page{flex-direction:column;gap:32px;display:flex}.competition-ranking-page__header h1{margin-top:16px;margin-bottom:4px}.competition-ranking-page__subtitle{color:var(--color-text-muted);margin-bottom:0}.competition-ranking-empty{text-align:center;background:var(--color-surface);border:1px dashed var(--color-border);border-radius:12px;padding:48px}.competition-ranking-empty h2{margin-bottom:8px}.competition-ranking-empty p{color:var(--color-text-muted);margin-bottom:0}.competition-ranking-settings{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;align-items:flex-end;gap:8px;max-width:680px;padding:24px;display:flex}.competition-ranking-settings .form-field{flex:1}.historical-import-success{color:var(--color-success-strong);background:var(--color-success-soft);border:1px solid var(--color-success-border);border-radius:8px;padding:16px}.competition-ranking-tabs{flex-wrap:wrap;gap:8px;display:flex}.competition-ranking-table{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;overflow-x:auto}.competition-ranking-error{color:var(--color-danger)}.stage-list{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;display:grid}.stage-list-card{background:var(--color-surface);border:1px solid var(--color-border);min-width:0;color:var(--color-text);border-radius:12px;flex-direction:column;gap:24px;padding:24px;text-decoration:none;transition:transform .15s,box-shadow .15s,border-color .15s;display:flex}.stage-list-card:hover{border-color:var(--color-subtle-border);transform:translateY(-2px);box-shadow:0 8px 24px #0f172a14}.stage-list-card__header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.stage-list-card__title{margin-bottom:4px;font-size:1.25rem}.stage-list-card__format{color:var(--color-text-muted);font-size:.9rem}.stage-list-card__meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.stage-list-card__meta-item{flex-direction:column;gap:4px;min-width:0;display:flex}.stage-list-card__meta-item strong{text-overflow:ellipsis;overflow:hidden}.stage-list-card__meta-label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.8rem}.stage-list-card__open{border-top:1px solid var(--color-border);justify-content:space-between;align-items:center;margin-top:auto;padding-top:16px;font-weight:600;display:flex}.stage-list-empty{text-align:center;background:var(--color-surface);border:1px dashed var(--color-border);border-radius:12px;padding:48px}.stage-list-empty h2{margin-bottom:8px}.stage-list-empty p{color:var(--color-text-muted)}@media (width<=700px){.stage-list-page__header{flex-direction:column;align-items:stretch}.stage-list-page__header .button{width:100%}.stage-list-page__actions{flex-direction:column;align-items:stretch}.stage-list,.stage-list-card__meta{grid-template-columns:1fr}.competition-ranking-settings{flex-direction:column;align-items:stretch;max-width:none}}.competition-list-card__main{color:inherit;flex:1;text-decoration:none}.archived-competitions{border-top:1px solid var(--color-border);margin-top:32px;padding-top:24px}.archived-competitions>p{color:var(--color-text-muted)}.archived-competitions__list{grid-template-columns:repeat(auto-fit,minmax(240px,360px));gap:16px;display:grid}.archived-competitions__list .stage-list-card{background:var(--color-neutral-background);gap:8px;padding:16px}.organization-member-roles{border:0;min-width:0;margin:0;padding:0}.organization-member-roles legend{color:var(--color-text-muted);margin-bottom:8px;padding:0;font-size:.875rem;font-weight:600}.organization-member-roles__options{flex-wrap:wrap;gap:8px;display:flex}.organization-member-roles__option{border:1px solid var(--color-border);background:var(--color-surface);cursor:pointer;border-radius:8px;align-items:center;gap:8px;min-height:44px;padding:8px 12px;font-size:.8125rem;font-weight:600;display:inline-flex}.organization-member-roles__option input{width:18px;height:18px;accent-color:var(--color-info);cursor:pointer;flex-shrink:0;margin:0}.organization-member-roles__option:hover{border-color:var(--color-info)}.organization-member-roles__option:has(input:focus-visible){outline:2px solid var(--color-info);outline-offset:2px}.organization-member-roles__option--selected{border-color:var(--color-info);background:var(--color-info-background)}.stage-create-page{flex-direction:column;gap:32px;display:flex}.stage-create-page__header h1{margin-bottom:4px}.stage-create-page__back{color:var(--color-text-muted);margin-bottom:16px;text-decoration:none;display:inline-block}.stage-create-page__back:hover{color:var(--color-text)}.stage-create-page__subtitle{color:var(--color-text-muted);margin-bottom:0}.stage-create-form{flex-direction:column;gap:24px;display:flex}.stage-create-form__actions{justify-content:flex-end;gap:8px;display:flex}.stage-create-form__error{color:var(--color-danger);background:var(--color-danger-background);border:1px solid var(--color-danger-border);border-radius:8px;padding:16px}.stage-create-summary{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;justify-content:space-between;align-items:center;gap:24px;padding:24px;display:flex}.stage-create-summary__label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px;font-size:.8rem;display:block}.stage-create-summary__value{font-size:2rem}.stage-create-summary__hint{color:var(--color-text-muted)}.stage-create-participants{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:24px}.stage-create-participants__header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px;display:flex}.stage-create-participants__header h2{margin-bottom:4px}.stage-create-participants__header p{color:var(--color-text-muted);margin-bottom:0}.stage-create-participants__list{flex-direction:column;gap:8px;display:flex}.participant-form-card{background:var(--color-background);border:1px solid var(--color-border);border-radius:8px;padding:16px}.participant-form-card__header{align-items:center;gap:8px;margin-bottom:16px;display:flex}.participant-form-card__header h3{margin:0;font-size:1rem}.participant-form-card__number{background:var(--color-surface);border:1px solid var(--color-border);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-weight:700;display:inline-flex}.participant-form-card__remove{min-height:auto;color:var(--color-danger);background:0 0;border:1px solid #0000;margin-left:auto;padding:4px 8px;font-size:.8rem}.participant-form-card__remove:hover:not(:disabled){background:var(--color-danger-background);border-color:var(--color-danger-border)}.participant-form-card__fields{grid-template-columns:minmax(100px,.5fr) minmax(220px,2fr) minmax(120px,.7fr);gap:16px;display:grid}.form-field{flex-direction:column;gap:4px;min-width:0;display:flex}.form-field__label{color:var(--color-text-muted);font-size:.8rem;font-weight:600}.form-field input{background:var(--color-surface);width:100%;min-height:42px;color:var(--color-text);border:1px solid var(--color-border);border-radius:8px;outline:none;padding:8px 16px;transition:border-color .15s,box-shadow .15s}.form-field input:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #11182714}@media (width<=800px){.stage-create-summary{flex-direction:column;align-items:flex-start}.stage-create-participants__header{flex-direction:column;align-items:stretch}.stage-create-participants__header button{width:100%}.participant-form-card__fields{grid-template-columns:1fr}.stage-create-form__actions{flex-direction:column-reverse}.stage-create-form__actions .button,.stage-create-form__actions button{width:100%}}.stage-create-input-mode{background:var(--color-background);border:1px solid var(--color-border);border-radius:8px;padding:4px;display:inline-flex}.stage-create-input-mode__button{color:var(--color-text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:8px 16px}.stage-create-input-mode__button--active{background:var(--color-surface);color:var(--color-text);font-weight:700;box-shadow:0 1px 3px #0f172a14}.stage-create-json{flex-direction:column;gap:16px;display:flex}.stage-create-json textarea{resize:vertical;background:var(--color-surface);width:100%;min-height:280px;color:var(--color-text);border:1px solid var(--color-border);border-radius:8px;outline:none;padding:16px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.stage-create-json textarea:focus{border-color:var(--color-primary)}.stage-create-json__error{color:var(--color-danger);font-size:.875rem}.stage-create-details{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:16px;max-width:800px;padding:24px;display:grid}.app-layout{min-height:100vh}.app-layout__content{min-width:0}.app-header{z-index:100;background:var(--color-surface);border-bottom:1px solid var(--color-border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:sticky;top:0}.app-header__inner{justify-content:space-between;align-items:center;gap:24px;width:min(100% - 32px,1440px);min-height:64px;margin:0 auto;display:flex}.app-header__brand{color:var(--color-text);align-items:baseline;gap:4px;text-decoration:none;display:flex}.app-header__brand-main{letter-spacing:.04em;font-size:1.1rem;font-weight:800}.app-header__brand-sub{color:var(--color-text-muted);font-size:.8rem}.app-header__nav{align-items:center;gap:4px;display:flex}.app-header__nav-link{color:var(--color-text-muted);border-radius:8px;padding:8px 16px;font-size:.9rem;font-weight:600;text-decoration:none;transition:color .15s,background-color .15s}.app-header__nav-link:hover,.app-header__nav-link--active{color:var(--color-text);background:var(--color-background)}@media (width<=600px){.app-header__brand-sub{display:none}}.app-header__session{align-items:center;gap:12px;margin-left:auto;display:flex}.login-page{background:var(--color-background);place-items:center;min-height:100vh;padding:24px;display:grid}.login-page__form{background:var(--color-surface);border-radius:12px;width:min(440px,100%);box-shadow:0 18px 50px #0000001f}.player-dialog{background:var(--color-surface);width:min(520px,100vw - 32px);color:var(--color-text);border:0;border-radius:12px;padding:0;box-shadow:0 24px 60px #00000047}.player-dialog::backdrop{background:#1118279e}.player-dialog__content{flex-direction:column;gap:24px;padding:24px;display:flex}.player-dialog__header,.player-dialog__actions{justify-content:space-between;align-items:center;gap:16px;display:flex}.player-dialog__header h2{margin:0}.player-dialog__close{min-width:40px;color:var(--color-text-muted);background:0 0;padding:4px;font-size:1.5rem}.player-dialog__close:hover:not(:disabled){background:var(--color-neutral-background);color:var(--color-text)}.player-dialog__actions{justify-content:flex-end}.toast{bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:10000;border:1px solid var(--color-border);background:var(--color-surface);width:max-content;max-width:min(560px,100% - 32px);color:var(--color-text);overflow-wrap:anywhere;border-radius:12px;align-items:center;gap:16px;padding:16px;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 8px 32px #0000002e}.toast__close{color:var(--color-text);background:0 0;border:0;flex-shrink:0;padding:4px 8px;font-size:1.25rem}.toast__close:hover{background:var(--color-neutral-background);color:var(--color-text)}
