:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24372d;background:#f5f6f3;font-size:14px;--green:#234131;--muted:#758176;--orange:#df7c3c;--line:#e0e5de}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e9a46e;outline-offset:2px}button{border:1px solid var(--line);border-radius:7px;background:white;padding:10px 15px;color:var(--green);font-weight:600}button:hover:enabled{background:#edf2e9}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover:enabled{background:#365c45}.accent{background:var(--orange);color:white;border-color:var(--orange)}.small{padding:5px 9px;font-size:12px}.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--green);color:#fff;padding:29px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:17px;font-weight:750;line-height:1.3}.brand small{display:block;color:#b2c1b6;font-size:11px;font-weight:400;margin-top:4px}.brand-mark{font-size:17px;border:1px solid #73917c;width:39px;height:41px;display:grid;place-items:center;border-radius:11px;color:#f2a36d}.season{font-size:9px;letter-spacing:1.6px;color:#acbbae;margin:39px 9px 16px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav a{display:flex;gap:12px;align-items:center;text-decoration:none;padding:13px 12px;border-radius:7px;font-size:13px;color:#cfdbd0}.sidebar nav a[aria-current="page"],.sidebar nav a:hover{background:#3b5744;color:white}.sidebar-foot{margin-top:auto;font-size:11px;color:#ccd6cc;padding:18px 5px 0;line-height:1.8}.sidebar-foot small{display:block;font-size:10px;color:#92a795;margin-top:12px}.dot{display:inline-block;width:6px;height:6px;background:#e7a06e;border-radius:50%;margin-right:5px}.workspace{min-width:0}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;font-size:12px;color:var(--muted);background:#fff}.tag{display:inline-flex;align-items:center;background:#eef2e9;color:#537049;border-radius:5px;padding:5px 8px;font-size:11px;font-weight:600}main{padding:30px 34px 60px;max-width:1800px;margin:auto}h1{font-size:29px;letter-spacing:-.8px;font-weight:700;margin:0 0 9px}h2{font-size:18px;margin:0 0 17px}h3{font-size:14px;margin:0 0 8px}p{line-height:1.6;margin:0 0 14px}.muted{color:var(--muted)}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--muted);margin-bottom:13px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:23px 0 25px}.card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:24px}.stat-label{font-size:12px;color:var(--muted)}.stat-number{font-size:30px;font-weight:650;margin:9px 0}.stat-note{font-size:11px;color:var(--muted)}.hero{background:var(--green);color:white;position:relative;overflow:hidden;padding:28px 30px;border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero h2{font-size:24px;margin-bottom:8px}.hero p{color:#c0cfbf;font-size:13px;margin:0}.hero .eyebrow{color:#d4a67e}.hero-symbol{font-size:90px;line-height:1;color:#70866b;opacity:.5;letter-spacing:-8px;padding-right:12px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}input,select,textarea{border:1px solid #d7ded4;border-radius:6px;background:#fff;color:#2f4134;padding:10px 11px;width:100%;min-width:0}textarea{min-height:95px;resize:vertical}input::placeholder{color:#9ba597}select{max-width:100%}.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:21px}.actions .spacer{flex:1}.divider{border-top:1px solid var(--line);margin:22px 0}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);font-weight:600;background:#f6f7f3;padding:12px}td{padding:13px 12px;border-bottom:1px solid #edf0e8}tr:last-child td{border-bottom:0}.table-wrap{overflow-x:auto}.table-wrap .card{padding:0}.player-name{font-weight:600;color:var(--green)}.secondary{font-size:10px;color:var(--muted);margin-top:4px}.status{padding:4px 7px;border-radius:5px;font-size:10px;white-space:nowrap;background:#f3eadf;color:#976b39}.status.done{background:#e9f1e4;color:#496c3a}.empty{padding:22px;background:#f6f7f3;border:1px dashed #d9dfd3;border-radius:7px;font-size:13px;color:var(--muted)}.toolbar{display:flex;gap:10px;margin-bottom:18px;align-items:center;flex-wrap:wrap}.toolbar input{flex:1;min-width:170px}.toolbar select{width:170px}.banner{font-size:12px;padding:12px 16px;border:1px solid #e3d7bc;background:#fbf5e9;color:#7d6739;border-radius:7px;line-height:1.6;margin-bottom:18px}.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:22px}.steps button{font-size:11px;padding:12px 5px;background:#eef1e9;border-color:transparent;text-align:left}.steps button.active{background:var(--green);color:white}.step-index{display:inline-grid;place-items:center;width:21px;height:21px;border:1px solid #b8c4b0;border-radius:50%;margin-right:5px;font-size:10px}.split-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:15px}.decision-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px);gap:20px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.decision-row:last-child{border-bottom:0}.decision-row p{margin:0}.comparison{display:flex;flex-direction:column;gap:17px}.comparison-head,.league-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;min-width:0}.comparison-head{position:sticky;top:0;background:#f5f6f3;padding:10px 0;z-index:2}.comparison-head h3{margin:0;font-size:12px}.comparison-head small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.league-column{background:white;border:1px solid var(--line);border-radius:8px;min-width:0;overflow:hidden}.league-title{background:#eaf0e4;color:#38553d;padding:11px 10px;display:flex;justify-content:space-between;font-size:11px;font-weight:700;min-height:36px;gap:4px}.place-row{height:66px;display:flex;gap:7px;border-top:1px solid #edf0e8;padding:8px 7px;align-items:flex-start;cursor:pointer;min-width:0}.place-row.selected{background:#fff0d7;box-shadow:inset 3px 0 #d88844;outline:1px solid #d88844;outline-offset:-1px}.place-row.vacant{color:#aab2a4;background:repeating-linear-gradient(-45deg,#fff,#fff 5px,#fafbf8 5px,#fafbf8 10px);cursor:default}.place{font-size:10px;flex:0 0 19px;color:#7a8872;padding-top:2px}.row-info{min-width:0;flex:1}.row-name{font-size:11px;font-weight:650;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.row-reason{font-size:9px;color:#7c8875;line-height:1.3;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.row-moves{display:flex;flex-direction:column;gap:3px}.row-moves button{font-size:10px;line-height:1;padding:3px 5px;border-color:#dfe5d9;border-radius:3px}.result-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}.result-tools p{font-size:11px;color:var(--muted);margin:0}.error{background:#fff0eb;color:#a33c29;padding:12px;border-radius:6px;font-size:12px;margin-top:10px}.success{color:#466f3d}#notice{position:fixed;bottom:24px;right:28px;max-width:430px;padding:14px 20px;background:#234131;color:white;box-shadow:0 6px 20px #12200a22;border-radius:8px;z-index:10;display:none;font-size:13px}#notice.show{display:block}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;width:min(620px,calc(100% - 30px));max-height:90vh;color:var(--green);box-shadow:0 20px 70px #152b2233}dialog::backdrop{background:#12201766}dialog h2{margin-bottom:7px}dialog .actions{justify-content:flex-end}.modal-close{float:right;border:0;padding:2px 5px;font-size:22px}.check-row{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:400;padding:7px 0}.check-row{min-height:44px;cursor:pointer}.check-row input[type="checkbox"]{width:20px;height:20px;min-width:20px;flex:0 0 20px;padding:0;margin:0;accent-color:var(--green);cursor:pointer}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:12px;color:var(--muted)}.count{font-size:12px;color:var(--muted);font-weight:400}.loading{padding:40px;color:var(--muted)}.protocol-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.protocol-grid a{text-decoration:none;display:block;border:1px solid var(--line);border-radius:7px;padding:12px}.protocol-grid a:hover{background:#f2f5ec}.inline-error{color:#9a432a;font-size:12px;padding-top:12px}.mobile-only{display:none}@media(min-width:1600px){.place-row{height:70px}.row-name{font-size:12px}.row-reason{font-size:10px}}@media(max-width:1050px){.layout{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:23px 12px}.brand{font-size:14px}.brand-mark{width:32px;flex-shrink:0}.sidebar nav a{font-size:11px;padding:12px 8px}.topbar{padding:0 20px}main{padding:25px 20px}.grid-2{grid-template-columns:1fr}.protocol-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.row-name{font-size:10px}.row-reason{font-size:8px}.place-row{padding:7px 4px;gap:3px}.place{flex-basis:14px}.row-moves button{padding:3px}.steps button{font-size:10px}.step-index{margin-right:2px}}@media(max-width:700px){.layout{display:block}.topbar{height:47px;padding:0 15px;font-size:10px}main{padding:22px 12px}.page-head{gap:10px}h1{font-size:25px}.cards{gap:7px}.card{padding:17px}.stat-number{font-size:25px}.stat-label,.stat-note{font-size:10px}.hero{padding:22px}.hero-symbol{display:none}.hero h2{font-size:22px}.steps{gap:3px}.steps button{text-align:center;font-size:9px}.step-index{display:block;margin:0 auto 5px}.form-grid{grid-template-columns:1fr}.protocol-grid{grid-template-columns:1fr 1fr}.decision-row{grid-template-columns:1fr;gap:10px}.comparison-head,.league-comparison{gap:4px}.comparison-head h3{font-size:10px}.comparison-head small{font-size:8px}.league-title{font-size:9px;padding:8px 4px}.place-row{height:78px;gap:2px}.row-name{font-size:9px;white-space:normal;line-height:1.15;max-height:33px}.row-reason{font-size:8px;margin-top:4px;-webkit-line-clamp:2}.row-moves{gap:3px}.place{font-size:8px;flex-basis:10px}.row-moves button{font-size:9px;padding:3px 2px}.result-tools{align-items:flex-start;flex-direction:column}.tag{font-size:9px}.comparison .league-column{border-radius:4px}#notice{right:12px;bottom:12px;left:12px}.page-head p{font-size:12px}}

[hidden]{display:none!important}
.sidebar nav .nav-divider{border:0;border-top:1px solid #73917c70;width:100%;margin:10px 0;flex-shrink:0}
.menu-toggle{display:none}

.tournament-start-selection{
  display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 24px;margin-bottom:16px
}
.tournament-league-filter{flex:1 1 440px}
.tournament-filter-label{margin-bottom:8px;font-size:12px;font-weight:600}
.tournament-filter-link{text-decoration:none}
.tournament-filter-link[data-numbered-league] span{min-width:34px;padding-inline:8px}
.tournament-filter-link[aria-current="true"] span{background:#355c40;border-color:#355c40;color:white}
.tournament-start-selection h2{margin:0 0 4px}
.tournament-start-selection p,.tournament-export-note{margin:0;font-size:13px}
.tournament-export{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);align-items:end;gap:8px 16px;margin-bottom:16px}
.tournament-export-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 14px}
.tournament-export-actions span{font-size:12px;color:#537049;font-weight:650;white-space:nowrap}
.tournament-arrival-toggle{display:inline-flex;align-items:center;gap:7px;min-height:38px}
.tournament-arrival-toggle::after{content:"";width:6px;height:6px;border:solid var(--green);border-width:0 1px 1px 0;transform:rotate(45deg);margin-top:-3px}
.tournament-arrival-toggle[aria-expanded="true"]::after{transform:rotate(225deg);margin-top:3px}
.tournament-arrival-summary{grid-column:1/-1;border:1px solid var(--line);border-radius:7px;padding:8px 12px}
.tournament-arrival-list{list-style:none;margin:0;padding:0}
.tournament-arrival-list li{display:flex;justify-content:space-between;align-items:center;gap:8px 12px;padding:6px 0}
.tournament-arrival-list li+li{border-top:1px solid var(--line)}
.tournament-arrival-player{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.tournament-arrival-list button{flex-shrink:0;min-height:38px}
.tournament-arrival-ready,.tournament-arrival-pending{font-size:12px}
.tournament-arrival-ready{color:#537049}
.tournament-arrival-pending{color:#8a4b18}
.tournament-export-note,.tournament-export .inline-error{grid-column:1/-1}
.tournament-export .inline-error:empty,.tournament-check-form .inline-error:empty{display:none}
.tournament-start-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.tournament-extra-players{display:grid;gap:16px;min-width:0}
.tournament-lower-leagues .tournament-roster{margin-top:12px}
.tournament-admission{background:#f1f5ee;border-radius:7px;margin-bottom:12px;padding:10px 12px;font-size:12px}
.tournament-admission h3{color:var(--green);margin:0 0 4px;font-size:13px}
.tournament-admission p{margin:0}
.tournament-admission p+p{margin-top:4px}
.tournament-lower-league-matches{list-style:none;margin:8px 0 0;padding:0;max-height:220px;overflow:auto}
.tournament-lower-league-matches>li,.tournament-entry-actions{display:flex;align-items:center;gap:8px}
.tournament-lower-league-matches>li{justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line)}
.tournament-lower-league-rating{display:block;margin-top:3px;color:var(--green);font-size:12px}
.tournament-entry-actions{justify-content:flex-end;flex-wrap:wrap;flex-shrink:0}
.tournament-start-lists h2{margin:0 0 12px}
.tournament-start-lists h2 .count{margin-left:4px}
.tournament-roster-group+.tournament-roster-group{margin-top:22px}
.tournament-roster{list-style:none;margin:0;padding:0}
.tournament-roster-row{min-width:0;padding:4px 0 8px;border-top:1px solid var(--line)}
.tournament-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:4px 0}
.tournament-entry-player{min-width:0;overflow-wrap:anywhere}
.tournament-entry strong{font-size:14px}
.tournament-attendance{flex-shrink:0;min-width:82px;min-height:38px}
.tournament-attendance[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff}
.tournament-attendance[aria-pressed="true"]:hover{background:#365744}
.tournament-attendance-error{margin:0}
.tournament-attendance-error:empty{display:none}
.tournament-row-meta{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.tournament-entry-question{margin:4px 0 8px;padding:10px 12px;background:#f6f7f3;border-radius:7px;font-size:12px}
.tournament-entry-question h3{margin:0;color:#8a4b18;font-size:13px}
.tournament-question-context{margin:5px 0 0}
.tournament-question-note{border-inline-start:2px solid #c4aa7e;margin:11px 0 0;padding-inline-start:8px;color:#675337}
.tournament-check-form{margin-top:8px}
.tournament-check-form>button{margin-top:6px}
.tournament-account-options{display:grid;gap:6px}
.tournament-account-option{
  display:flex;align-items:center;gap:8px 12px;padding:9px 10px;
  background:#fff;border:1px solid #dce3d8;border-radius:6px;overflow-wrap:anywhere
}
.tournament-account-option:has(input:checked){border-color:#6f8c73;background:#f0f5ec}
.tournament-account-choice{display:flex;flex:1;flex-direction:row;align-items:center;gap:8px;min-width:0;font-weight:400}
.tournament-account-choice:has(input[type="radio"]:enabled){cursor:pointer}
.tournament-account-info{display:grid;min-width:0;gap:4px}
.tournament-account-info>strong{font-size:13px;color:var(--green)}
.tournament-account-meta{display:flex;flex-wrap:wrap;gap:2px 12px;color:#536357;font-size:11px}
.tournament-account-location{flex-basis:100%;overflow-wrap:anywhere}
.tournament-account-meta code,.tournament-account-meta b{color:var(--green);font-weight:600}
.tournament-account-status{font-size:11px;color:#536357}
.tournament-account-option input{width:auto;accent-color:var(--green);flex-shrink:0}
.tournament-account-option a{white-space:nowrap}
.tournament-account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;margin-top:8px}
.tournament-account-actions p{margin:0;color:#536357}
.tournament-check-form+.tournament-account-alternatives{border-top:1px solid var(--line);margin-top:10px}
.tournament-account-alternatives .form-grid{gap:8px 12px}
.tournament-account-preview{border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px}
.tournament-account-preview h3{color:var(--green);margin-bottom:8px}
.tournament-account-preview .tournament-account-meta{margin-bottom:8px}
.tournament-unassigned{border-top:1px solid var(--line);margin-top:12px;padding-top:8px}
.tournament-unassigned .tournament-roster{margin-top:8px}
.tournament-empty{margin:0}
@media(max-width:900px){.tournament-start-lists{grid-template-columns:1fr}}
@media(max-width:700px){
  .tournament-start-selection>div,.tournament-league-filter{flex-basis:100%}
  .tournament-export{grid-template-columns:minmax(0,1fr)}
  .tournament-export-actions{justify-content:space-between}
  .tournament-attendance,.tournament-arrival-list button{min-height:44px}
}
@media(max-width:460px){
  .tournament-account-alternatives .form-grid{grid-template-columns:minmax(0,1fr)}
  .tournament-account-option{flex-wrap:wrap}
  .tournament-account-choice{flex-basis:100%}
  .tournament-account-option a{margin-left:auto}
}

@media(max-width:700px){
  .sidebar{
    position:relative;
    z-index:9;
    height:auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px 12px;
    padding:10px 14px;
  }
  .brand{min-height:44px;justify-self:start;font-size:16px}
  .brand small,.season,.sidebar-foot{display:none}
  .menu-toggle:not([hidden]){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:0 11px;
    border-color:#73917c;
    background:transparent;
    color:white;
  }
  .menu-toggle:hover:enabled,.menu-toggle[aria-expanded="true"]{background:#3b5744}
  .menu-toggle-icon{position:relative;width:18px;height:2px;background:currentColor;border-radius:1px}
  .menu-toggle-icon::before,.menu-toggle-icon::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:currentColor;
    transform:translateY(-6px);
  }
  .menu-toggle-icon::after{transform:translateY(6px)}
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon{background:transparent}
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before{transform:rotate(45deg)}
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after{transform:rotate(-45deg)}
  .sidebar nav{grid-column:1/-1;gap:2px}
  .sidebar nav a{flex-shrink:0;min-height:44px;padding:10px 12px;font-size:14px}
  .sidebar nav .nav-divider{margin:6px 0}
  .menu-toggle:not([hidden]) + nav{display:none}
  .menu-toggle[aria-expanded="true"] + nav{
    display:flex;
    position:absolute;
    inset-block-start:100%;
    inset-inline:0;
    max-height:calc(100vh - 64px);
    max-height:calc(100dvh - 64px);
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:6px 14px 12px;
    border-top:1px solid #73917c70;
    border-radius:0 0 10px 10px;
    background:var(--green);
    box-shadow:0 10px 22px #152b2233;
  }
}
.schedule-season{margin-bottom:20px}
.tours-season{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.tours-season label{width:140px;flex-shrink:0;font-size:14px}
.tours-season p{flex:1;min-width:230px;margin:0;font-size:16px}
.tours-season>a,.tours-start>div>a{font-size:14px}
.tours-stats .stat-label,.tours-stats .stat-note{font-size:13px}
.tours-stats .stat-number{font-variant-numeric:tabular-nums}
.tours-overview{margin-bottom:24px;padding-bottom:8px}
.tours-overview .split-head{align-items:baseline}
.tours-overview h2{margin:0}
.tours-table{table-layout:fixed;min-width:650px;font-size:14px}
.tours-table th:first-child{width:32%}
.tours-table thead th{font-size:12px}
.tours-table tbody th{background:transparent;text-transform:none;letter-spacing:0;vertical-align:top;padding:22px 12px;border-bottom:1px solid var(--line);font-size:16px;color:var(--green)}
.tours-table tbody tr:last-child th{border-bottom:0}
.tours-table td{vertical-align:top;padding:22px 12px;border-bottom-color:var(--line)}
.tour-meta{display:block;color:#627066;font-size:13px;line-height:1.6;font-weight:400}
.tours-table th .tour-meta{margin-top:7px}
.tour-group{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.tour-group .status{font-size:12px;white-space:normal}
.tour-group .status.working{background:#f8e7d7;color:#865022}
.tour-main-link{font-weight:600;text-underline-offset:3px}
.tour-group button{font-size:14px;padding:7px 11px}
.tour-links{display:flex;flex-wrap:wrap;gap:7px 16px;font-size:13px;line-height:1.6}
.tour-links:empty{display:none}
.tour-mobile-label{display:none}
.tours-start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px}
.tours-start p{font-size:14px}
.tours-start label{font-size:14px}
.tour-selection-dates{margin:20px 0 6px;font-weight:600}
@media(max-width:1050px){.tours-season{gap:16px}.tours-season>a{flex-basis:100%}.tours-start{grid-template-columns:1fr;gap:22px}}
@media(max-width:700px){.tours-season p{min-width:0;flex-basis:100%}.tours-stats{grid-template-columns:1fr;gap:8px}.tours-stats .card{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}.tours-stats .stat-number{grid-column:2;grid-row:1/3;margin:0}.tours-stats .stat-label{font-size:14px}.tours-overview .split-head{flex-wrap:wrap;gap:8px}.tours-overview{padding:17px 12px 5px}.tours-start .form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.tours-table{min-width:0}.tours-table thead{display:none}.tours-table tbody{display:block}.tours-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px;border-top:1px solid var(--line);padding:18px 0}.tours-table tbody th:first-child{grid-column:1/-1;width:auto;padding:0 0 18px;border:0}.tours-table tbody th .tour-meta{margin-top:4px}.tours-table td{padding:0;border:0;min-width:0}.tour-mobile-label{display:block;font-size:14px;font-weight:600;margin-bottom:12px}.tour-group{gap:10px}.tour-links{flex-direction:column;gap:8px}.tours-table .tour-meta{overflow-wrap:anywhere}}
.schedule-season-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px}
.schedule-season-form label{width:140px;flex:0 0 140px}
.schedule-season p{margin-bottom:0}
.schedule-new-season{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}
.schedule-new-season .schedule-season-form label{width:180px;flex-basis:180px}
#schedule-form .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.schedule-row{display:grid;grid-template-columns:70px repeat(2,minmax(140px,1fr)) minmax(150px,1fr) auto;align-items:center;gap:14px;padding:20px 0;border-bottom:1px solid var(--line)}
.schedule-row h3{margin:0;font-size:17px}
.schedule-row h3 .schedule-past{display:block;font-weight:400;line-height:1.4}
.schedule-row input:disabled,.schedule-row select:disabled{background:#f6f7f3;color:var(--muted);opacity:1}
.schedule-status{font-size:12px;color:var(--muted)}
.schedule-leagues{grid-column:1/-1;min-width:0}
.schedule-leagues>summary{cursor:pointer;color:var(--green);font-weight:600;width:fit-content}
.schedule-leagues>summary:focus-visible{outline:3px solid #e9a46e;outline-offset:2px}
.schedule-league-group{border:0;margin:16px 0 0;padding:0;min-width:0}
.schedule-league-group>legend{padding:0 0 6px;font-weight:700}
.schedule-league-row{display:grid;grid-template-columns:minmax(85px,1fr) minmax(128px,1fr) minmax(96px,.7fr) minmax(150px,2.5fr) 77px;grid-template-areas:"league date time venue clear";gap:6px 8px;align-items:end;padding:8px 0;border-top:1px solid var(--line)}
.schedule-league-row>strong{grid-area:league;align-self:center;font-size:12px}
.schedule-league-row>strong>small{display:block;font-weight:400}
.schedule-league-date{grid-area:date}.schedule-league-time{grid-area:time}
.schedule-venue-field{grid-area:venue}
.schedule-league-row>button{grid-area:clear;justify-self:end;min-height:38px}
.venue-logo{width:36px;height:36px;flex:none;object-fit:contain;border-radius:5px;background:white}
.venue-directory{margin-bottom:20px}
.venue-directory>summary{cursor:pointer;font-size:17px;font-weight:700;width:fit-content}
.venue-directory>summary:focus-visible{outline:3px solid #e9a46e;outline-offset:2px}
.venue-directory-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.venue-directory-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:7px;overflow-wrap:anywhere}
.venue-directory-row>div{flex:1;min-width:0}
.venue-directory-row>div>span{display:block;font-size:12px;margin-top:3px;color:var(--green)}
.venue-editor{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.venue-editor p:empty{display:none}
.venue-current-logo{display:flex;align-items:center;gap:10px}
@media(max-width:860px){.venue-directory-list{grid-template-columns:minmax(0,1fr)}.schedule-league-row{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"league clear" "date time" "venue venue"}}
@media(max-width:550px){.venue-editor .form-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.schedule-row{grid-template-columns:1fr 1fr;gap:12px}.schedule-row h3{grid-column:1/-1}.schedule-row button{grid-column:2;justify-self:end}.schedule-row input{min-width:0}}
.rules-workspace{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:20px;align-items:start}
.rules-workspace .section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rules-workspace h2{font-size:18px;margin:0}
.rules-catalogue{position:sticky;top:20px}
.rules-set-list{display:flex;flex-direction:column;gap:8px;margin:20px 0}
.rules-set{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%}
.rules-set span{font-size:11px;font-weight:400}
.rules-set.active{background:var(--green);color:white;border-color:var(--green)}
.rules-editor{min-width:0}
.rules-editor fieldset{border:0;margin:20px 0;padding:0;min-width:0}
.rules-name{max-width:400px}
.rules-set-actions{display:flex;flex-wrap:wrap;gap:8px}
.rules-sex{margin-top:28px}
.rules-sex h3{font-size:18px;margin:0}
.rules-count{width:180px}
.rules-table-wrap{overflow-x:auto;margin-top:15px}
.rules-table{min-width:730px}
.rules-table th,.rules-table td{padding:10px 5px}
.rules-table th[scope=row]{font-size:12px;text-transform:none;letter-spacing:0;white-space:nowrap;background:transparent;color:var(--green)}
.rules-table input{padding:8px 6px;min-width:66px}
.rules-table select{padding:8px 5px;min-width:95px}
.rules-table input[readonly]{background:#eef1e9;color:var(--muted)}
.rules-table input:disabled,.rules-table select:disabled{opacity:1;color:var(--green);background:#f6f7f3}
.rules-editor .banner{margin-top:20px}
.rules-admission-note,.rules-bindings{font-size:12px;line-height:1.6}
[data-rules-status]{font-size:12px}
@media(max-width:1200px){.rules-workspace{grid-template-columns:minmax(0,1fr)}.rules-catalogue{position:static}.rules-set-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.schedule-row{grid-template-columns:70px repeat(2,minmax(140px,1fr))}.schedule-row>label:last-of-type{grid-column:2}.schedule-row>button{grid-column:3;justify-self:end}}
@media(max-width:700px){.rules-workspace{gap:14px}.rules-count{width:145px}.schedule-row{grid-template-columns:1fr 1fr}.schedule-row>label:last-of-type{grid-column:1}.schedule-row>button{grid-column:2}}
details summary{cursor:pointer;padding:10px 0;font-weight:600}details>div{width:100%}

/* Keep the PDF status hues with a soft translucent fill. */
.lineup-excused{background-color:rgb(0 253 0 / 16%)}
.lineup-unexcused{background-color:rgb(255 255 0 / 16%)}
.lineup-new{background-color:rgb(255 153 0 / 16%)}
.lineup-promotedByVacancy{background-color:rgb(70 129 222 / 16%)}
.lineup-skip{background-color:rgb(255 0 255 / 16%)}
.lineup-table{color:#111}
.lineup-table td{border-bottom-color:#24372d30}
.lineup-table .player-name{color:inherit}
.lineup-table .lineup-overall{font-variant-numeric:tabular-nums;font-weight:600}
.lineup-vacancy{font-weight:400;color:#758176}
.lineup-legend{display:flex;flex-wrap:wrap;gap:12px 20px;list-style:none;padding:0;margin:16px 0 24px;font-size:11px}
.lineup-legend li{display:flex;align-items:center;gap:7px}
.lineup-swatch{display:inline-block;flex-shrink:0;width:16px;height:16px;border:1px solid #24372d55;border-radius:3px}
.lineup-rank-date{font-size:12px}
@media(max-width:700px){.lineup-table{font-size:10px}.lineup-table td,.lineup-table th{padding:9px 6px}.lineup-table th{font-size:8px}.lineup-legend{font-size:10px;gap:9px 12px}}

/* One sticky table header keeps a wrapped legend and all column titles together. */
.lineup-table-wrap{overflow:visible}
.lineup-table{table-layout:fixed;border-collapse:separate;border-spacing:0}
.lineup-table thead{position:sticky;top:0;z-index:3;background:#fff;box-shadow:0 2px 3px #24372d12}
.lineup-table th,.lineup-table td{overflow-wrap:anywhere}
.lineup-table .lineup-legend-row td{padding:14px 0;border-bottom:0;background:#fff}
.lineup-table .lineup-legend{margin:0;text-align:left}
.lineup-col-overall{width:16%}
.lineup-col-player{width:41%}
.lineup-col-rank{width:12%}

/* Selected-player paths follow viewport coordinates; edge labels navigate off-screen rows. */
#comparison-connections{position:fixed;inset:0;z-index:4;pointer-events:none;overflow:hidden}
#comparison-connections svg{display:block;width:100%;height:100%;overflow:hidden}
.comparison-link-halo,.comparison-link-line{fill:none;stroke-linecap:round;stroke-linejoin:round}
.comparison-link-halo{stroke:#fff;stroke-width:5.5;stroke-opacity:.92}
.comparison-link-line{stroke:#d08032;stroke-width:2.5}
.comparison-link-dot{fill:#d08032;stroke:#fff;stroke-width:1}
.comparison-edge-target{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 9px;border:1px solid #d08032;background:#fff0d7;color:#734916;border-radius:15px;font-size:10px;box-shadow:0 2px 6px #34200b22}
.comparison-edge-target:hover:enabled{background:#ffe3b3}
@media(max-width:700px){.comparison-edge-target{font-size:8px;padding:4px 5px}.comparison-link-line{stroke-width:2}.comparison-link-halo{stroke-width:4}}

/* Clip rounded columns without creating a scroll container for the league title. */
.comparison .league-column{overflow:clip}
.comparison .league-title{position:sticky;top:var(--comparison-head-height,0px);z-index:1}

.comparison-status-legend{grid-column:1/-1;margin:0 0 5px;gap:8px 14px;font-size:10px}
.comparison-status-legend .lineup-swatch{width:12px;height:12px}

.row-name-line{display:flex;align-items:center;gap:5px;min-width:0}
.row-name-line .row-name{flex:0 1 auto;min-width:0}
.result-status-badge{display:inline-block;flex:0 0 9px;width:9px;height:9px;border-radius:50%;border:1px solid #24372d44}
.result-status-badge.lineup-excused,.comparison-status-legend .lineup-excused{background-color:rgb(0 253 0 / 70%)}
.result-status-badge.lineup-unexcused,.comparison-status-legend .lineup-unexcused{background-color:rgb(255 255 0 / 70%)}
.result-status-badge.lineup-new,.comparison-status-legend .lineup-new{background-color:rgb(255 153 0 / 70%)}
.result-status-badge.lineup-promotedByVacancy,.comparison-status-legend .lineup-promotedByVacancy{background-color:rgb(70 129 222 / 70%)}
.result-status-badge.lineup-skip,.comparison-status-legend .lineup-skip{background-color:rgb(255 0 255 / 70%)}

/* Guidance for first-time organizers and explicit admission choices. */
.step-explanation{max-width:80ch}
.result-explanation{margin-bottom:18px}
.result-explanation p{margin-bottom:0}
.admission-auto{font-size:12px;line-height:1.6;margin-bottom:12px}
.admission-row{grid-template-columns:minmax(0,1fr) minmax(0,310px)}
.admission-choices{display:flex;gap:8px;min-width:0;border:0;margin:0;padding:0}
.admission-option{display:flex;flex:1;flex-direction:row;align-items:center;gap:7px;padding:11px 9px;border:1px solid var(--line);border-radius:7px;cursor:pointer;font-size:12px;font-weight:500;line-height:1.4}
.admission-option input{width:16px;height:16px;flex-shrink:0;margin:0;padding:0;accent-color:var(--green)}
.admission-option:has(input:checked){border-color:var(--green);background:#eef3eb}
.admission-option:has(input:disabled){cursor:default}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.admission-row{grid-template-columns:1fr;gap:12px}.admission-choices{max-width:340px}}

/* Visible status labels in result rows. Keep equal row heights across columns. */
.comparison .place-row{height:90px}
.row-name-line{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.row-name-line .row-name{width:100%;min-width:0}
.result-status-badge{display:inline-block;flex:0 0 auto;width:auto;height:auto;max-width:100%;padding:2px 6px;border:1px solid #24372d30;border-radius:4px;color:#24372d;font-size:9px;font-weight:600;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.result-status-badge.lineup-excused{background-color:rgb(0 253 0 / 22%)}
.result-status-badge.lineup-unexcused{background-color:rgb(255 255 0 / 22%)}
.result-status-badge.lineup-new{background-color:rgb(255 153 0 / 22%)}
.result-status-badge.lineup-promotedByVacancy{background-color:rgb(70 129 222 / 22%)}
.result-status-badge.lineup-skip{background-color:rgb(255 0 255 / 22%)}
@media(max-width:700px){.comparison .place-row{height:116px}.result-status-badge{font-size:8px;padding:2px 4px}}

/* Full reasons are available by touch and keyboard, as well as by pointer. */
.comparison .place-row{height:112px}
.reason-heading{margin-top:22px}
.full-reason{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}

/* The entire workbench stays inside the viewport. Only the lists and explanation scroll. */
.trace-workbench{position:fixed;inset:16px 20px 16px 244px;z-index:6;background:#f5f6f3;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 40px #1d322329;display:grid;grid-template-rows:auto minmax(0,1fr);padding:18px;gap:16px}
.trace-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.trace-top h2{margin:3px 0 0;font-size:20px}
.trace-top .eyebrow{margin:0;font-size:9px}
.trace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(270px,.95fr);gap:12px;min-height:0}
.trace-column{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.trace-column>header{padding:14px 12px;border-bottom:1px solid var(--line);min-height:72px}
.trace-column h3{font-size:12px;margin:0 0 7px}
.trace-column header p{font-size:11px;color:var(--muted);margin:0;line-height:1.4}
.trace-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;scroll-padding:42px 0 12px}
.trace-league h4{position:sticky;top:0;z-index:1;margin:0;background:#eaf0e4;padding:10px;font-size:11px;display:flex;justify-content:space-between;gap:8px}
.trace-player{display:flex;gap:7px;border-bottom:1px solid #e8ece5;padding:10px 8px;min-height:92px;transition:background .12s;scroll-margin:42px 0 12px}
.trace-place{flex:0 0 17px;color:var(--muted);font-size:11px;padding-top:4px}
.trace-player-info{min-width:0;flex:1}
.trace-player-name{display:block;padding:0;border:0;background:transparent;text-align:left;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;font-weight:650}
.trace-player-name:hover:enabled{background:transparent;text-decoration:underline}
.trace-player .result-status-badge{margin:4px 0}
.trace-reason-preview{font-size:10px;color:#657260;line-height:1.5;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.trace-accounted{display:inline-block;font-size:9px;margin:3px 0;padding:2px 5px;background:#d4dcd0;border-radius:3px;color:#4f5d49}
.trace-processed,.trace-excluded{background:#e5e9e2}
.trace-processed .trace-player-name,.trace-excluded .trace-player-name{color:#6e7868}
.trace-active{background:#fff0d7;box-shadow:inset 3px 0 #c67c33;outline:2px solid #c67c33;outline-offset:-2px}
.trace-active.trace-processed{background:#e9e2d3}
.trace-empty{display:flex;gap:8px;padding:14px 8px;color:#84907b;font-size:10px;min-height:52px;border-bottom:1px solid #edf0e8;background:repeating-linear-gradient(-45deg,#fff,#fff 5px,#fafbf8 5px,#fafbf8 10px);margin:0}
.trace-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;min-width:0;border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden}
.trace-controls{padding:16px;border-bottom:1px solid var(--line)}
.trace-counter{font-size:17px;font-weight:700;margin-bottom:12px}
.trace-navigation{display:flex;gap:8px}
.trace-navigation button{flex:1;white-space:nowrap}
.trace-range{margin:13px 0 8px;padding:0;border:0;accent-color:var(--green)}
.trace-jump{display:flex;gap:8px;align-items:flex-end}
.trace-jump label{flex:1}
.trace-jump input{padding:8px}
.trace-jump button{padding:8px 12px}
.trace-phase-jump{margin-top:12px}
.trace-phase-jump select{font-size:11px;padding:8px}
.trace-event{overflow:auto;overscroll-behavior:contain;padding:16px}
.trace-event .tag{margin-bottom:12px}
.trace-event h3{font-size:16px;line-height:1.4;margin-bottom:12px}
.trace-event p{font-size:13px;line-height:1.7}
.trace-event p.secondary{font-size:11px}
.trace-placements{list-style:none;margin:16px 0 0;padding:0}
.trace-placements li{border-top:1px solid var(--line);padding:9px 0}
.trace-placements button{padding:0;border:0;font-size:12px;text-align:left;background:transparent;text-decoration:underline;text-underline-offset:3px}
.trace-placements span{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:var(--muted)}
.trace-complete{margin-top:18px;padding:10px;background:#eef3e9;border-radius:5px}
@media(max-width:1100px){.trace-workbench{inset:10px 10px 10px 190px;padding:12px;gap:12px}.trace-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(230px,.9fr);gap:8px}.trace-controls,.trace-event{padding:12px}.trace-player-name{font-size:11px}}
@media(max-width:850px){.trace-workbench{inset:0;border-radius:0;padding:10px;gap:10px}.trace-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(235px,38%)}.trace-panel{grid-column:1/-1;grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr);grid-template-rows:minmax(0,1fr)}.trace-controls{border-bottom:0;border-right:1px solid var(--line);overflow:auto}.trace-top h2{font-size:17px}.trace-top button{padding:8px 11px;font-size:12px}.trace-column>header{min-height:65px;padding:10px}.trace-column h3{font-size:11px}.trace-column header p{font-size:10px}.trace-event h3{font-size:14px}.trace-counter{font-size:15px;margin-bottom:8px}.trace-navigation button{padding:8px;font-size:12px}.trace-phase-jump{margin-top:8px}.trace-phase-jump select{padding:6px}.trace-range{margin:10px 0 6px}}
@media(max-width:500px){.comparison .place-row{height:142px}.trace-workbench{padding:6px;gap:6px}.trace-grid{gap:6px;grid-template-rows:minmax(0,1fr) minmax(245px,40%)}.trace-panel{grid-template-columns:minmax(155px,.85fr) minmax(0,1.15fr)}.trace-controls,.trace-event{padding:9px}.trace-event p{font-size:12px}.trace-navigation{gap:4px}.trace-navigation button{padding:7px 5px;font-size:11px}.trace-jump{gap:5px}.trace-jump label{font-size:10px}.trace-jump button{font-size:10px;padding:9px 6px}.trace-phase-jump{font-size:10px}.trace-phase-jump select{font-size:10px}.trace-player{padding:8px 5px;gap:4px}.trace-place{flex-basis:12px;font-size:10px}.trace-player-name{font-size:11px}.trace-column h3{font-size:10px}.trace-column header p{font-size:9px}.trace-player .result-status-badge{font-size:8px}.trace-placements span{font-size:10px}.trace-top .eyebrow{font-size:8px}}
@media(prefers-reduced-motion:reduce){.trace-player{transition:none}}

.trace-rules{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}
.trace-rules>h4{font-size:12px;margin:0 0 10px}
.trace-rule-card{border:1px solid var(--line);border-radius:6px;padding:10px;margin:0 0 8px;background:#f7f9f4}
.trace-rule-card h4{font-size:12px;margin:0 0 8px}
.trace-rule-card dl{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 9px}
.trace-rule-card dt{font-size:10px;color:var(--muted)}
.trace-rule-card dd{font-size:12px;margin:3px 0 0;font-weight:650}
.trace-rule-card p,.trace-event .trace-rule-note{font-size:11px;line-height:1.6;margin:0 0 8px}
.trace-rules summary{font-size:12px}
.trace-rules table{font-size:11px}
.trace-rules th,.trace-rules td{padding:8px 5px;font-size:10px;letter-spacing:0}
.trace-rules table+p{margin-top:8px}

/* Compact badges share the name line in overview and detail mode. */
.row-name-line,.trace-name-line{display:flex;flex-direction:row;align-items:center;gap:5px;min-width:0}
.row-name-line .row-name{width:auto;flex:0 1 auto;min-width:0;white-space:nowrap}
.trace-name-line .trace-player-name{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-name-line .result-status-badge,.trace-name-line .result-status-badge{flex:0 0 auto;white-space:nowrap;margin:0}

.result-passage-badges{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}

/* Four lines remain selectable with the card; only truncated reasons need a button. */
.row-reason.reason-body,.trace-reason-preview.reason-body{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;width:100%;margin:5px 0 0;padding:0;border:0;border-radius:2px;background:transparent;text-align:left;font-size:10px;font-weight:400;line-height:1.45;color:#657260}
.trace-reason-preview.reason-body{font-size:11px;line-height:1.5}

.reason-details{display:block;margin:3px 0 0;padding:0;border:0;background:transparent;color:#45643e;font-size:10px;line-height:1.3;text-decoration:underline;text-underline-offset:2px}
.reason-details[hidden]{display:none}
.reason-details:hover:enabled{background:transparent;color:#243c2d}

.trace-copy{width:100%;margin-top:10px;font-size:12px;padding:8px}
.trace-copy-status{font-size:11px;line-height:1.4;margin:7px 0 0;overflow-wrap:anywhere}
.trace-copy-status:empty{display:none}
.trace-copy-link{margin-top:7px;font-size:10px;padding:6px}

@media(max-width:500px){.trace-copy{font-size:10px;padding:6px;margin-top:6px}.trace-jump label{white-space:nowrap}}

/* Compact absence segments and the pinned action bar for organizer decisions. */
.organizer-decisions{padding-bottom:25px;margin-bottom:90px}
.absence-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}
.absence-choices{display:flex;min-width:0;margin:0;padding:0;border:1px solid #a5b69d;border-radius:6px;overflow:hidden}
.absence-option{display:block;position:relative;width:100px;cursor:pointer;flex:1 1 100px;min-width:0}
.absence-option+ .absence-option{border-left:1px solid #a5b69d}
.absence-option input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}
.absence-option span{display:flex;align-items:center;justify-content:center;min-height:37px;padding:5px 7px;font-size:11px;font-weight:500;line-height:1.25;text-align:center}
.absence-option:has(input:checked){background:#355c40;color:white}
.absence-option:has(input:focus-visible){outline:3px solid #c28640;outline-offset:-3px}
.absence-option:has(input:disabled){opacity:.45;cursor:default}
.admission-intro{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;margin-bottom:20px}
.admission-intro h2{margin:0 0 7px}
.admission-intro p{margin:0;max-width:62ch}
.admission-total{display:inline-flex;align-items:center;gap:8px;border-radius:6px;background:#eef3e9;padding:7px 10px;color:#4a6252;font-size:11px}
.admission-total strong{color:var(--green);font-size:12px;font-variant-numeric:tabular-nums}
.admission-leagues{display:grid;gap:12px}
.admission-league{min-width:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.admission-league-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:11px 14px;background:#f4f7f1}
.admission-league-head h3{display:flex;align-items:center;gap:8px;margin:0}
.admission-count{min-width:22px;padding:2px 5px;border:1px solid #dbe5d7;border-radius:6px;background:#fff;color:#526451;text-align:center;font-size:10px;font-variant-numeric:tabular-nums}
.admission-league.admission-overflow{border-color:#e5b9a9}
.admission-overflow .admission-league-head{background:#fff2eb}
.admission-excess{padding:3px 7px;border-radius:5px;background:#f7dfd5;color:#7b2e21;font-size:11px;font-weight:600}
.admission-warning{margin:0;border-bottom:1px solid #efdbd1;background:#fff8f4;color:#713c2b;padding:8px 14px;font-size:12px;line-height:1.5}
.admission-step .admission-row{grid-template-columns:34px minmax(0,1fr) auto;gap:12px;padding:9px 14px;min-height:58px}
.admission-place{display:grid;justify-items:center;align-content:center;gap:2px;color:#4a6252;font-variant-numeric:tabular-nums}
.admission-place small,.admission-player small{font-size:10px;color:#5b6f60}
.admission-player{min-width:0;overflow-wrap:anywhere}
.admission-player small{display:block;margin-top:3px}
.out-option{display:flex;flex-direction:row;align-items:center;gap:7px;min-height:34px;padding:5px 8px;border:1px solid #d3dbcf;border-radius:6px;font-size:11px;cursor:pointer;white-space:nowrap}
.out-option input{width:15px;height:15px;margin:0;padding:0;accent-color:#38583c}
.out-option:has(input:focus-visible){outline:3px solid #e9a46e;outline-offset:2px}
.out-option:has(input:checked){background:#f7e3bf;border-color:#d1a45b}
.participation-out{background:#f0eee6;color:#766f62}
.admission-step .participation-out{background:#faf7ee}
.decision-footer.admission-footer{background:#fff}
.admission-footer [data-admission-summary]{color:#4a6252;font-size:12px;font-weight:600}
.admission-footer-blocked [data-admission-summary]{color:#7b2e21}
@media(max-width:700px){
  #app:has(.admission-step) .page-head{margin-bottom:14px}
  #app:has(.admission-step) .page-head .muted{margin-bottom:0}
  #app:has(.admission-step) .steps{margin-bottom:12px}
  .admission-intro{margin-bottom:14px;gap:8px}
  .admission-league-head,.admission-warning{padding-left:10px;padding-right:10px}
  .admission-step .admission-row{grid-template-columns:26px minmax(0,1fr) auto;gap:8px;padding:7px 10px}
  .out-option{min-height:44px;padding:5px 6px}
}
.absence-bulk{margin:16px 0 12px;border:1px solid var(--line);border-radius:7px;padding:0 12px}
.bulk-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 8px}
.bulk-inputs textarea{min-height:90px;font-size:12px}
.bulk-preview{font-size:12px;line-height:1.6;margin-top:10px}
.bulk-matches,.bulk-issues{max-height:220px;overflow:auto;padding-left:20px}
.bulk-issues{color:#8c4b29}
.decision-footer{position:fixed;bottom:0;left:224px;right:0;z-index:8;background:#fffffff5;border-top:1px solid var(--line);box-shadow:0 -3px 18px #263c2410;padding:12px 28px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.decision-footer button{white-space:normal;line-height:1.4}
body:has(.decision-footer) #notice{top:24px;bottom:auto}
#notice{pointer-events:none}
@media(max-width:1050px){.decision-footer{left:180px;padding:10px 20px}}
@media(max-width:700px){.decision-footer{left:0;padding:10px 12px;gap:8px}.decision-footer .secondary{font-size:10px}.decision-footer button{font-size:11px;padding:10px 12px}.absence-row{grid-template-columns:minmax(0,1fr);gap:9px}.absence-choices{justify-self:start;max-width:100%}.bulk-inputs{grid-template-columns:1fr}.organizer-decisions{margin-bottom:100px}}

.lineup-filters{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px 28px;margin-bottom:18px}
.lineup-filters select,.lineup-filters input:is([type="text"],[type="search"],[type="date"]){height:38px}
.filter-actions{display:flex;align-items:center;align-self:flex-end;gap:8px}.filter-actions button{min-height:38px}
.lineup-year{width:110px;flex:0 0 110px}
.lineup-filter-group{min-width:0;border:0;margin:0;padding:0}
.lineup-filter-group legend{padding:0;margin-bottom:8px;font-size:12px;font-weight:600}
.lineup-view-toggle{flex-basis:100%}
.status.promoted{background:#e7edf6;color:#3d5e83}
.lineup-content-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-height:28px;margin-bottom:18px}
.lineup-content-head h2{margin:0;line-height:28px}
.superfinal-table{width:100%;min-width:640px}
.superfinal-table th,.superfinal-table td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.superfinal-table th:nth-child(-n+2),.superfinal-table td:nth-child(-n+2){text-align:left}
.superfinal-total{font-weight:750;color:var(--green)}
.lineup-choice:has(input:disabled){cursor:default;opacity:.55}
.lineup-switches{display:flex;flex-wrap:wrap;gap:5px}
.lineup-choice{position:relative;cursor:pointer}
.lineup-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}
.lineup-choice span{display:block;min-width:36px;padding:9px 12px;border:1px solid #c7d0c0;border-radius:6px;text-align:center;font-size:12px;font-weight:500;line-height:1.4}
.lineup-choice:has(input:checked) span{background:#355c40;border-color:#355c40;color:white}
.lineup-choice:has(input:focus-visible) span{outline:3px solid #c28640;outline-offset:2px}
.lineup-col-number{width:9%}
.lineup-col-overall{width:18%}
.lineup-col-player{width:45%}
.lineup-col-rank{width:11%}
.lineup-col-change{width:17%}
.lineup-table .lineup-league-heading th{position:sticky;top:var(--lineup-head-height,0px);z-index:2;background:#eaf0e4;color:#30472d;text-align:left;padding:11px 12px;font-size:12px;letter-spacing:0;text-transform:none;border-top:1px solid #bccbb5;border-bottom:1px solid #cbd5c6}
.lineup-change,.lineup-number{font-variant-numeric:tabular-nums}
.lineup-change{font-weight:650;white-space:nowrap}
.lineup-change.place-up{color:#237234}
.lineup-change.place-down{color:#b0342d}
.lineup-change-note{margin:0 0 14px;line-height:1.5}
@media(max-width:700px){.lineup-filters{gap:16px}.lineup-choice span{padding:8px 10px;font-size:11px}.lineup-col-number{width:10%}.lineup-col-overall{width:17%}.lineup-col-player{width:43%}.lineup-col-rank{width:12%}.lineup-col-change{width:18%}.lineup-table .lineup-league-heading th{font-size:11px;padding:10px 6px}}

.lineup-number-short{display:none}
@media(max-width:700px){.lineup-number-label{display:none}.lineup-number-short{display:inline}.lineup-table th{letter-spacing:0;line-height:1.35;text-transform:none}.lineup-col-number{width:8%}.lineup-col-overall{width:18%}.lineup-col-player{width:42%}.lineup-col-rank{width:14%}}

.identity-field{border:1px solid var(--line);border-radius:7px;margin:14px 0;padding:10px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.identity-field legend{font-size:12px;font-weight:600;padding:0 5px}
.identity-field label{flex-direction:row;align-items:flex-start;font-weight:400;line-height:1.5;overflow-wrap:anywhere;cursor:pointer}
.identity-field input{width:15px;height:15px;flex:0 0 15px;margin:3px 0;accent-color:var(--green)}
.identity-field small{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}
@media(max-width:480px){.identity-field{grid-template-columns:1fr}}

.identity-candidates{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.identity-player{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;overflow-wrap:anywhere;min-width:0;line-height:1.4}
.identity-player small{font-size:10px;font-weight:400;color:var(--muted)}
.identity-player[aria-pressed=true]{background:#edf3e9;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.identity-selection{font-size:12px;margin:12px 0;line-height:1.5}
.identity-search{margin-top:16px}
.identity-directory-list{display:grid;gap:6px;max-height:220px;overflow-y:auto;overscroll-behavior:contain;margin-top:10px;padding:3px}
.identity-directory-list .identity-player{width:100%}
@media(max-width:480px){.identity-candidates{display:grid}.identity-player{width:100%}}

.competition-summary{margin:0 0 16px;line-height:1.6}
.competition-col-place{width:7%}.competition-col-player{width:38%}.competition-col-count{width:10%}.competition-col-rating{width:13%}.competition-col-delta{width:12%}
.competition-table td{font-variant-numeric:tabular-nums}
.competition-table th{letter-spacing:0}
.competition-table td:not(.player-name){white-space:nowrap}
.competition-table .player-name a{text-decoration:none}.competition-table .player-name a:hover{text-decoration:underline}
.competition-league-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px}
.competition-protocol{font-size:10px;font-weight:400}.competition-protocol a{text-underline-offset:3px}
.competition-label-short{display:none}
@media(max-width:700px){.competition-table{font-size:10px}.competition-table td,.competition-table th{padding:9px 3px}.competition-col-place{width:8%}.competition-col-player{width:35%}.competition-col-count{width:8%}.competition-col-rating{width:17%}.competition-col-delta{width:16%}.competition-label-full{display:none}.competition-label-short{display:inline}.competition-table .player-name{font-size:11px}.competition-protocol{font-size:9px}}
@media(min-width:701px){.competition-table thead th{font-size:9px}}

.lineup-table tbody[id]{scroll-margin-top:var(--lineup-head-height,0px)}
.league-heading-content{display:flex;align-items:center;gap:7px}
.lineup-league-summary{justify-content:space-between;flex-wrap:wrap;gap:6px 18px}
.lineup-league-name{display:inline-flex;align-items:center;gap:7px}
.lineup-league-session{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:500;color:var(--green);text-transform:none;letter-spacing:normal;overflow-wrap:anywhere}
.lineup-league-session .venue-logo{width:26px;height:26px}
.lineup-league-session time{white-space:nowrap;font-weight:650}
.lineup-session-list{list-style:none;margin:0;padding:0}
.lineup-session-list>li{display:flex;flex-wrap:wrap;gap:4px 16px;padding:10px 0;border-top:1px solid var(--line)}
.lineup-session-list>li>strong{min-width:115px;font-size:12px}
.lineup-league-average{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.lineup-league-average>span{white-space:nowrap}
.lineup-league-average strong{color:#30472d}
.lineup-league-rating-change.positive{color:#237234}
.lineup-league-rating-change.negative{color:#b0342d}
.league-copy{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:4px;border:0;border-radius:5px;background:transparent;color:inherit;flex:0 0 auto}
.league-copy:hover:enabled{background:#d6e2cf}

.game-filters{display:block;margin-bottom:18px}

.game-filter-context{margin-bottom:0}.game-filter-context [data-games-tours]{min-width:0}.game-league-filter{flex:1;min-width:210px}.game-winner-filter{flex:2;min-width:240px}.game-date-filter{flex:0 1 180px}.game-filter-actions{justify-content:flex-end;margin-top:18px}
.game-filter-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.game-filter-player{display:grid;gap:16px;align-content:start;min-width:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#f8faf6}
.game-filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}.game-filter-options .check-row{margin:0;line-height:1.5}.game-filters .inline-error:empty{display:none}

.game-explanation{line-height:1.6;margin-bottom:16px}.game-list{padding-top:12px}.game-pagination{margin:10px 0 16px;gap:10px;flex-wrap:wrap}.game-pagination>div{display:flex;align-items:center;gap:10px}.game-pagination button{padding:7px 10px;font-size:11px}
.games-table{table-layout:fixed;border-collapse:separate;border-spacing:0}.games-table th{letter-spacing:0}.games-table td{vertical-align:top;overflow-wrap:anywhere;line-height:1.5;padding:13px 6px}.games-table th{padding:12px 6px}.games-table thead{position:sticky;top:0;z-index:2}.games-table a{text-decoration:none}.games-table a:hover{text-decoration:underline}
.game-col-date{width:11%}.game-col-tour{width:16%}.game-col-player{width:32%}.game-col-score{width:9%}
.game-player>a{font-weight:600}.game-player-details{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font-size:10px;color:var(--muted);margin-top:6px}.game-age-group{padding:2px 5px;border-radius:4px;white-space:nowrap}.game-age-group.adult{color:#285e36;background:#e6f0e3}.game-age-group.minor{color:#5f5683;background:#efeaf7}.game-age-group.unknown{background:#f2f2ed;color:#74776f}.game-score{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.game-technical-score{font-size:10px;color:#84602b}
@media(max-width:700px){.game-filter-context .game-league-filter,.game-filter-context .game-winner-filter{flex-basis:100%;min-width:0}.game-date-filter{flex:1 1 130px}.game-filter-players,.game-filter-options{grid-template-columns:minmax(0,1fr);gap:12px}.game-filter-player{padding:12px}.game-filter-options{gap:0}.game-list{padding:10px 7px}.games-table{font-size:9px}.games-table th{font-size:8px;padding:9px 3px;text-transform:none}.games-table td{padding:10px 3px}.game-col-date{width:15%}.game-col-tour{width:16%}.game-col-player{width:30%}.game-col-score{width:9%}.game-player-details{font-size:9px;gap:4px}.game-pagination{font-size:10px}.game-pagination>div{gap:7px}.game-pagination button{font-size:10px;padding:6px 8px}}
@media(max-width:700px){
  .games-table,.games-table tbody{display:block}.games-table colgroup{display:none}
  .games-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .games-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px 8px;padding:14px 3px;border-bottom:1px solid var(--line)}
  .games-table tbody tr:last-child{border-bottom:0}.games-table td{display:block;border:0;padding:0;font-size:12px}
  .games-table td:first-child{grid-column:1;grid-row:1;font-size:10px;color:var(--muted)}
  .games-table td:nth-child(2){grid-column:2/4;grid-row:1;text-align:right;font-size:10px}.games-table .secondary{font-size:10px}
  .games-table td:nth-child(3){grid-column:1;grid-row:2}.games-table td:nth-child(4){grid-column:2;grid-row:2;align-self:center;font-size:14px}.games-table td:nth-child(5){grid-column:3;grid-row:2}
  .games-table .game-player:before{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-bottom:5px}.games-table td:nth-child(3):before{content:'Победитель'}.games-table td:nth-child(5):before{content:'Проигравший'}
  .game-player-details{font-size:10px;line-height:1.5}.game-list{padding:10px}
}

[data-games-results][aria-busy=true]{opacity:.55}

.game-multiselect{border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px 12px;min-width:0;align-self:start}
.game-multiselect summary{font-size:12px;font-weight:600;cursor:pointer;line-height:1.5}.game-multiselect summary span{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:4px;overflow-wrap:anywhere}
.game-rank-choices{margin:12px 0}

.games-table .game-rank-link{text-decoration:underline;text-underline-offset:2px;font-weight:600;color:var(--green)}
.rank-filters label:first-child{flex:2;min-width:200px}.rank-filters label:nth-child(2){width:180px}.rank-filters label:nth-child(3){flex:1;min-width:170px}
@media(max-width:700px){.rank-filters label{width:100%!important;flex:auto!important}.game-multiselect{padding:10px}}

.game-download-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;margin-bottom:20px;border:1px solid var(--border,#dce2dd);border-radius:10px;background:var(--surface,#f6f8f6)}
.game-download-panel>div{flex:1;min-width:220px}.game-download-panel p{margin:6px 0}.game-download-panel>.inline-error{flex-basis:100%;margin:0}.game-download-panel>.inline-error:empty{display:none}
.game-download-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;line-height:1.4;padding:3px 8px;border-radius:6px;background:#edf0ee;color:#59645e;white-space:normal}
.game-download-status.loaded{color:#246443;background:#e3f1e8}.game-download-status.loading{color:#245b92;background:#e5effb}.game-download-status.queued{color:#7a591e;background:#fbf1db}.game-download-status.error{color:#a03a32;background:#fbe8e5}
.game-download-error{display:block;color:#a03a32;font-size:12px;font-weight:400;max-width:420px;overflow-wrap:anywhere;white-space:normal;margin-top:5px}
.game-download-spinner{width:12px;height:12px;flex-shrink:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:game-download-spin 1s linear infinite}
.protocol-grid [data-game-download-id]{margin-top:10px}.competition-league-title .league-heading-content{flex-wrap:wrap}
@keyframes game-download-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.game-download-spinner{animation:none}}
@media(max-width:600px){.game-download-panel{padding:12px;gap:12px}.game-download-panel>button{width:100%}}

.candidate-rules h2{margin-bottom:16px}.candidate-rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.candidate-rule-grid p{margin:6px 0;color:var(--muted);font-size:13px;line-height:1.6}.candidate-rules>.secondary{line-height:1.6}
.candidate-filters>label{flex:1;min-width:180px}.candidate-filters>.candidate-status-filter{flex-basis:100%;min-width:0}.candidate-filters>.inline-error{flex-basis:100%}
.candidate-list{padding:0;overflow-x:auto}.candidate-table{width:100%;border-collapse:collapse;font-size:13px}.candidate-table th,.candidate-table td{padding:16px;text-align:left;border-bottom:1px solid var(--line,#e2e5dd)}.candidate-table th{color:var(--muted);font-size:11px;text-transform:uppercase}.candidate-target{display:inline-block;padding:5px 8px;border-radius:5px;background:#f1f2ed}.candidate-target.ready{color:#245d39;background:#e3f1e5}.candidate-period{font-size:12px;font-variant-numeric:tabular-nums}.candidate-table td:last-child a{white-space:nowrap}
@media(max-width:700px){.candidate-rule-grid{grid-template-columns:1fr;gap:12px}.candidate-rule-grid>div+div{border-top:1px solid var(--line,#e2e5dd);padding-top:12px}.candidate-table{min-width:750px}.candidate-table td,.candidate-table th{padding:12px}}

@media(max-width:700px){.candidate-table{min-width:0}.candidate-table thead{display:none}.candidate-table tbody{display:block}.candidate-table tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding:16px;border-bottom:1px solid var(--line,#e2e5dd)}.candidate-table td{display:block;padding:4px 0;border:0;overflow-wrap:anywhere}.candidate-table td:first-child,.candidate-table td:last-child,.candidate-table .candidate-period{grid-column:1/-1}.candidate-table td[data-label]::before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.candidate-table td:first-child{font-size:15px}.candidate-table td:last-child{margin-top:5px}}

.candidate-rules{margin-bottom:20px}.candidate-rules>summary{font-weight:600;cursor:pointer;line-height:1.6}.candidate-rules-body{margin-top:18px}.candidate-filters .inline-error:empty{display:none}

.game-download-status[href]{text-decoration:underline;text-underline-offset:2px}.game-download-status[href]:hover{background:#d4e9dc}.game-download-status[href]:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.candidate-actions{display:flex;justify-content:flex-end;margin-bottom:16px}
.candidate-print-page{background:#fff}
.candidate-print-page .sidebar,.candidate-print-page .topbar{display:none}
.candidate-print-page .layout{display:block;min-height:0}
.candidate-print-page main{max-width:210mm;margin:auto;padding:15mm;font-family:Arial,Helvetica,sans-serif;color:#111}
.candidate-print-page .candidate-print-toolbar{padding:16px 0;margin-bottom:20px;border-bottom:1px solid var(--line)}
.candidate-report-head{text-align:center;margin-bottom:24px;break-inside:avoid;break-after:avoid}
.candidate-report-organization{font-size:12px;letter-spacing:.4px;margin:0 0 18px}
.candidate-report-head h1{font-size:23px;line-height:1.3;letter-spacing:0;margin:0 0 10px;font-weight:600}
.candidate-report-subtitle{font-size:14px;line-height:1.5;margin:0 0 8px}
.candidate-report-selection{font-size:12px;line-height:1.6;margin:0;color:#444}
.candidate-print-page .candidate-list{overflow:visible;border:0;border-radius:0;box-shadow:none}
.candidate-print-page .candidate-table{display:table;min-width:0;font-size:13px}
.candidate-print-page .candidate-table thead{display:table-header-group}
.candidate-print-page .candidate-table tbody{display:table-row-group}
.candidate-print-page .candidate-table tr{display:table-row;break-inside:avoid}
.candidate-print-page .candidate-table th,.candidate-print-page .candidate-table td{display:table-cell;padding:12px 8px;border-bottom:1px solid var(--line);font-size:inherit;vertical-align:top;overflow-wrap:normal}
.candidate-print-page .candidate-table td[data-label]::before{display:none}
.candidate-print-page .candidate-table .player-name{width:40%;color:inherit}
.candidate-print-page .candidate-table th{font-weight:600;text-transform:none;background:none;color:#111}
.candidate-print-page .candidate-target{padding:0;background:none;color:inherit}
@media print{
  /* No page margins means Chromium omits its automatic date and URL. */
  @page candidate-report{size:A4 portrait;margin:0}
  body.candidate-print-page{color:#000;background:#fff;font-size:11pt}
  /* Clone the document padding on each sheet, including long tables. */
  .candidate-print-page main{page:candidate-report;max-width:none;padding:15mm;box-decoration-break:clone;-webkit-box-decoration-break:clone}
  .candidate-print-page .candidate-print-toolbar,.candidate-print-page #notice,.candidate-print-page dialog{display:none!important}
  .candidate-print-page h1{font-size:17pt}
  .candidate-print-page .eyebrow,.candidate-print-page .muted,.candidate-print-page .secondary,.candidate-print-page .candidate-table th{color:#333}
  .candidate-print-page .candidate-table{font-size:10pt}
  .candidate-print-page .candidate-table th,.candidate-print-page .candidate-table td{padding:9px 6px;border-color:#aaa}
}

.tour-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}

.lineup-with-ratings .lineup-col-number{width:6%}
.lineup-with-ratings .lineup-col-overall{width:12%}
.lineup-with-ratings .lineup-col-player{width:33%}
.lineup-with-ratings .lineup-col-rank{width:9%}
.lineup-with-ratings .lineup-col-change{width:11%}
.lineup-col-rating{width:11%}
.lineup-col-rating-place{width:18%}
.lineup-rating{font-variant-numeric:tabular-nums}
.lineup-table .participant-row.lineup-target{outline:2px solid var(--orange);outline-offset:-2px}
.lineup-player-link{border:0;padding:0;background:transparent;color:inherit;text-align:left;font-weight:inherit;text-decoration:underline;text-underline-offset:.18em}
.lineup-player-link:hover:enabled{background:transparent;color:var(--green)}
.lineup-confirmation{display:block;margin-top:.2em;color:#14633b;font-size:.85em;font-weight:600}
.reserve-table col:nth-child(1){width:6%}
.reserve-table col:nth-child(2){width:58%}
.reserve-table col:nth-child(3){width:14%}
.reserve-table col:nth-child(4){width:22%}
.reserve-table .reserve-note{display:block;margin-top:.35em;font-weight:400;white-space:normal}
.reserve-rejected{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--line)}
.reserve-rejected-list{list-style:none;margin:0;padding:0;overflow-wrap:anywhere}
.reserve-rejected-list li{padding:12px 0}
.reserve-rejected-list li+li{border-top:1px solid var(--line)}
.reserve-rejected-list p{margin:.35rem 0 0}
.reserve-group-rule{margin-top:6px;font-weight:400;line-height:1.5}
.reserve-group-summary{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11px;font-weight:400}
.reserve-group-summary>span{white-space:nowrap}
.reserve-table .reserve-empty .lineup-league-heading th{padding:6px 12px}
.reserve-empty .reserve-group-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.reserve-empty .league-heading-content{display:contents}
.reserve-empty .lineup-league-name{order:0}
.reserve-empty .reserve-group-rule{order:1;flex:1;margin:0;font-size:11px}
.reserve-empty .reserve-group-summary{order:2}

@media screen and (min-width:701px){
  .reserve-table .lineup-league-heading th{padding:6px 12px}
  .reserve-group-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
  .reserve-group-heading .league-heading-content{display:contents}
  .reserve-group-heading .lineup-league-name{order:0}
  .reserve-group-heading .reserve-group-rule{order:1;flex:1;margin:0;font-size:11px}
  .reserve-group-heading .reserve-group-summary{order:2}
}

@media screen and (max-width:700px){
  .lineup-responsive{display:block;font-size:14px;overflow-wrap:normal}
  .lineup-responsive colgroup{display:none}
  .lineup-responsive thead{display:block;position:static;box-shadow:none}
  .lineup-responsive thead tr:not(.lineup-legend-row){display:none}
  .lineup-responsive .lineup-legend-row,.lineup-responsive .lineup-legend-row td{display:block;width:100%}
  .lineup-responsive .lineup-legend{font-size:11px;line-height:1.45;gap:8px 12px}
  .lineup-responsive tbody{display:block;width:100%;min-width:0}
  .lineup-responsive .lineup-league-heading{display:block;position:sticky;top:0;z-index:2}
  .lineup-responsive .lineup-league-heading th{display:block;position:static;width:100%;padding:11px 10px;font-size:14px;line-height:1.4;overflow-wrap:break-word}
  .lineup-responsive .lineup-league-summary{gap:6px;align-items:flex-start}
  .lineup-responsive .lineup-league-average{width:100%;font-size:11px;line-height:1.5;gap:2px 10px}
  .lineup-responsive .participant-row{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 12px;padding:13px 10px 13px 32px;border-bottom:1px solid var(--line)}
  .lineup-responsive .participant-row:last-child{border-bottom:0}
  .lineup-responsive .participant-row>td{display:block;min-width:0;max-width:100%;padding:0;border:0;font-size:12px;line-height:1.45;overflow-wrap:break-word;white-space:normal}
  .lineup-responsive .participant-row>td:empty{display:none}
  .lineup-responsive .participant-row>.lineup-number{position:absolute;top:14px;left:6px;width:20px;font-size:12px;color:var(--muted);white-space:nowrap}
  .lineup-responsive .participant-row>.player-name{order:-1;flex:1 1 100%;font-size:14px;line-height:1.45}
  .lineup-responsive .participant-row>.player-name::before{content:none}
  .lineup-responsive .participant-row>td[data-label]::before{content:attr(data-label) ' ';margin-right:3px;font-size:11px;font-weight:400;color:var(--muted)}
  .lineup-responsive .lineup-player-link{font-size:14px;line-height:1.45;overflow-wrap:break-word}
  .lineup-responsive .lineup-confirmation,.lineup-responsive .reserve-note{font-size:11px;line-height:1.45}
  .lineup-responsive tbody>tr:not(.participant-row):not(.lineup-league-heading){display:block}
  .lineup-responsive tbody>tr:not(.participant-row):not(.lineup-league-heading)>td{display:block;width:100%;font-size:12px}
  .lineup-responsive .reserve-group-heading,.lineup-responsive .reserve-empty .reserve-group-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 10px;align-items:baseline}
  .lineup-responsive .reserve-group-heading .league-heading-content{display:contents}
  .lineup-responsive .reserve-group-heading .lineup-league-name{grid-column:1;grid-row:1;font-size:14px;white-space:nowrap}
  .lineup-responsive .reserve-group-rule,.lineup-responsive .reserve-empty .reserve-group-rule{grid-column:2;grid-row:1;margin:0;font-size:12px;line-height:1.45}
  .lineup-responsive .reserve-group-summary{grid-column:1/-1;grid-row:2;font-size:11px;line-height:1.45}
  .lineup-responsive .reserve-empty .lineup-league-heading th{padding:8px 10px}
  .lineup-responsive .competition-league-title{gap:5px}
  .lineup-responsive .competition-protocol{width:100%;font-size:11px;line-height:1.45}
  .lineup-filters:has([name="lineup-tour"]){display:grid;grid-template-columns:106px minmax(0,1fr);gap:14px}
  .lineup-filters:has([name="lineup-tour"]) .lineup-year{order:0;grid-column:1;width:auto}
  .lineup-filters:has([name="lineup-sex"]){min-width:0}
  .lineup-filters .lineup-filter-group:has([name="lineup-sex"]){order:1;grid-column:2}
  .lineup-filters .lineup-filter-group:has([name="lineup-tour"]){order:2;grid-column:1/-1}
  .lineup-filters:has([name="lineup-tour"]) .lineup-view-toggle{order:3;grid-column:1/-1}
  .lineup-filters .lineup-filter-group:has([name="lineup-participation"]){order:4;grid-column:1/-1}
  .lineup-filters [name="lineup-tour"]+span{min-width:32px;padding:8px 6px}
  .lineup-filters [name="lineup-sex"]+span{padding:8px}
}

.public-pages .sidebar-foot{display:none}

.ttw-sync-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px;margin:20px 0}.ttw-sync-facts div{min-width:0}.ttw-sync-facts dt{font-size:12px;color:var(--muted);margin-bottom:7px}.ttw-sync-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}.ttw-sync-errors{max-height:280px;overflow:auto;overflow-wrap:anywhere}#ttw-status-page>section,#ttw-status-page>div>section{margin-bottom:20px}.ttw-differences td{vertical-align:top}.ttw-differences td:first-child{min-width:190px}

.ttw-sync-diagnostic{white-space:pre-wrap;overflow-wrap:anywhere;max-height:20rem;overflow:auto;font-size:.85rem}

.topbar-actions{display:flex;align-items:center;gap:16px}.auth-dialog{text-align:center;width:min(440px,calc(100% - 30px))}.auth-dialog .modal-close{float:right}.auth-dialog h2{padding-top:8px}.auth-dialog p{font-size:14px;line-height:1.6}.auth-dialog [data-auth-code]{display:flex;flex-direction:column;align-items:center;gap:14px}.auth-dialog img{max-width:100%;height:auto}.auth-dialog .button{display:inline-block;padding:12px 20px;border-radius:6px;background:var(--green);color:white;text-decoration:none}.admin-editor{margin-top:32px;max-width:760px}.admin-editor h2{margin-bottom:18px}.public-pages .topbar-actions{display:flex}.public-pages #auth-logout{display:none}
.auth-help{margin-top:20px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;text-align:left;font-size:13px;line-height:1.6}.auth-help ol{margin:8px 0 0;padding-left:20px}.auth-help li+li{margin-top:7px}
