:root{color-scheme:light}*{box-sizing:border-box}body{margin:0;background:#f4f5fa;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button{cursor:pointer}#chess-design{--bg:#f4f5fa;--surface:#fff;--ink:#25243b;--muted:#68697e;--line:#e2e3ed;--green:#413e70;--green-text:#fff;--soft:#efeff8;--gold:#a42f3c;--gold-bg:#fcf0f2;--hero:#35325d;--hero-text:#fff;color:var(--ink);font-size:16px;line-height:1.55;min-height:100vh;max-width:1440px;margin:auto}#chess-design button,#chess-design input,#chess-design select,#chess-design textarea{font:inherit;color:inherit}#chess-design button{min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:12px;background:white;font-weight:600;transition:background .18s,box-shadow .18s,transform .18s}#chess-design button:hover{background:var(--soft);border-color:#b8b6d0}#chess-design button:active{transform:translateY(1px)}#chess-design button:disabled{opacity:.45;cursor:not-allowed}#chess-design .primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 4px 10px #413e7018}#chess-design .primary:hover{background:#302d59}#chess-design .textbutton{background:transparent;border:0;color:var(--green);padding:4px 0;text-align:left}#chess-design :is(button,input,select,textarea):focus-visible{outline:3px solid #a42f3c;outline-offset:3px}#chess-design header{display:flex;align-items:center;gap:28px;padding:20px 44px;background:white;border-bottom:1px solid var(--line);flex-wrap:wrap}#chess-design .brand{display:flex;gap:12px;align-items:center;background:none;border:0;padding:0;text-align:left;line-height:1.1;color:#413e70;letter-spacing:1.2px;font-size:19px;font-weight:850}#chess-design .brand img{width:60px;height:60px;object-fit:contain;border-radius:50%}#chess-design .brand small{display:block;font-size:13px;letter-spacing:3.2px;margin-top:6px;color:#a42f3c}#chess-design nav{display:flex;gap:6px;flex:1;justify-content:center;flex-wrap:wrap}#chess-design nav button{border:0;background:transparent;font-size:14px;padding:10px 12px;color:var(--muted)}#chess-design nav button.sel{background:var(--soft);color:var(--green)}#chess-design .demo{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 44px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}#chess-design main{padding:32px 44px 64px}#chess-design h1{font-size:clamp(32px,4vw,46px);font-weight:750;line-height:1.13;letter-spacing:-1.5px;margin:9px 0 16px}#chess-design h2{font-size:26px;line-height:1.25;letter-spacing:-.7px;margin:0 0 18px;font-weight:720}#chess-design h3{font-size:18px;line-height:1.4;margin:0 0 9px;font-weight:650}#chess-design p{margin:8px 0 18px}#chess-design .muted{color:var(--muted)}#chess-design .eyebrow{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:650;color:var(--muted)}#chess-design .row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}#chess-design .spread{justify-content:space-between}#chess-design .hero{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;padding:36px 40px;border-radius:24px;background:linear-gradient(120deg,#302d57,#484476);color:white;position:relative;overflow:hidden;border-bottom:5px solid #a42f3c}#chess-design .hero h1{font-size:clamp(34px,4vw,48px);margin:12px 0 18px;letter-spacing:-1.5px}#chess-design .hero p{color:#e0dfef;max-width:440px}#chess-design .hero .eyebrow{color:#d7d5ec}#chess-design .hero button{background:#b43645;color:#fff;border-color:#b43645;margin-top:5px}#chess-design .hero button:hover{background:#972a37}#chess-design .hero-summary{align-self:center;padding:26px;border:1px solid #ffffff30;border-radius:18px;background:#ffffff09}#chess-design .hero-summary h2{font-size:26px;color:white;margin-top:16px}#chess-design .hero-summary button{background:transparent;border-color:#ffffff65;color:white}#chess-design .hero-summary button:hover{background:#ffffff15}#chess-design .hero-totals{display:flex;gap:32px;margin:20px 0}#chess-design .hero-totals strong{display:block;font-size:34px;font-weight:730;line-height:1.2}#chess-design .hero-totals span{font-size:14px;color:#dddced}#chess-design .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:34px 0 18px}#chess-design .section-head h2{margin:0}#chess-design .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}#chess-design .two{display:grid;grid-template-columns:1fr 1fr;gap:22px}#chess-design .split{display:grid;grid-template-columns:2fr 1fr;gap:24px}#chess-design .panel{border:1px solid var(--line);border-radius:18px;padding:26px;background:white;min-width:0;box-shadow:0 5px 22px #29244205}#chess-design .event{display:flex;flex-direction:column;min-height:265px;border-top:3px solid #413e70;transition:box-shadow .2s,transform .2s}#chess-design .event:hover{box-shadow:0 10px 28px #413e7012;transform:translateY(-2px)}#chess-design .event h3{font-size:23px;line-height:1.25;letter-spacing:-.5px;margin:20px 0 14px}#chess-design .event .bottom{margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}#chess-design .tag{display:inline-block;padding:5px 10px;border-radius:7px;background:var(--soft);color:var(--green);font-size:13px;font-weight:600}#chess-design .tag.gold{background:var(--gold-bg);color:var(--gold)}#chess-design .small{font-size:14px}#chess-design .tabs{display:flex;gap:8px;margin:24px 0;padding:6px;background:#eaeaf3;border-radius:14px;flex-wrap:wrap}#chess-design .tabs button{background:transparent;color:var(--muted);border:0;font-size:14px}#chess-design .tabs button.sel{background:white;color:var(--green);box-shadow:0 2px 6px #302d5710}#chess-design .scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;margin:14px 0}#chess-design table{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}#chess-design th{background:#f6f6fb;color:var(--muted);font-size:13px;font-weight:600;padding:14px 16px;white-space:nowrap}#chess-design td{padding:16px;border-bottom:1px solid #ededf4;font-size:15px}#chess-design tbody tr:last-child td{border-bottom:0}#chess-design tbody tr:hover{background:#f8f8fc}#chess-design .highlight{background:var(--soft)}#chess-design .place{font-size:22px;font-weight:750;color:var(--gold)}#chess-design input,#chess-design select,#chess-design textarea{background:#fbfbfe;border:1px solid #d8d9e5;border-radius:10px;padding:12px 14px;max-width:100%;min-height:46px}#chess-design label{display:block;font-size:14px;font-weight:550;color:var(--muted)}#chess-design label input,#chess-design label select,#chess-design label textarea{display:block;width:100%;margin:7px 0 20px;color:var(--ink);font-size:16px;font-weight:400}#chess-design textarea{resize:vertical;min-height:110px}#chess-design .form{max-width:790px;margin:0 auto}#chess-design .info{padding:16px 20px;border-left:3px solid #413e70;border-radius:0 10px 10px 0;background:var(--soft);margin:18px 0}#chess-design .list{padding:18px 0;border-bottom:1px solid var(--line)}#chess-design .metric{display:block;font-size:40px;font-weight:750;letter-spacing:-1px;color:var(--green);margin:5px 0 8px}#chess-design .num{font-variant-numeric:tabular-nums}#chess-design .profile-mark{width:64px;height:64px;border-radius:18px;background:var(--green);color:white;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700}#chess-design .award{border-top:4px solid var(--gold)}#chess-design .award strong{font-size:30px;font-weight:750;color:var(--gold)}#chess-design .flash:empty{display:none}#chess-design .flash{background:var(--soft);color:var(--green);padding:16px 20px;margin-bottom:22px;border-radius:12px}#chess-design .error{color:#a42f3c;margin-bottom:18px}#chess-design footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:25px 44px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}#chess-design .pair-select{min-width:105px}#chess-design .page-head{margin-bottom:26px}#chess-design .clickable{cursor:pointer}@media(max-width:1050px){#chess-design header{gap:18px;padding:20px 24px}#chess-design nav{order:3;flex-basis:100%;justify-content:flex-start}#chess-design header>.primary{margin-left:auto}#chess-design main{padding:24px}#chess-design .grid{gap:14px}#chess-design .panel{padding:20px}}@media(max-width:720px){#chess-design header{padding:16px;gap:14px}#chess-design .brand{font-size:15px;gap:9px}#chess-design .brand small{font-size:11px}#chess-design .brand img{width:46px;height:46px}#chess-design header>.primary{font-size:13px;padding:9px 12px}#chess-design nav{gap:3px;justify-content:space-between}#chess-design nav button{padding:8px;font-size:14px}#chess-design main{padding:20px 16px 36px}#chess-design .demo{padding:10px 16px}#chess-design .hero{grid-template-columns:1fr;gap:24px;padding:26px 22px;border-radius:18px}#chess-design .hero-summary{padding:20px}#chess-design .hero-summary h2{font-size:23px}#chess-design .grid,#chess-design .two,#chess-design .split{grid-template-columns:1fr}#chess-design .event{min-height:240px}#chess-design .tabs{gap:3px}#chess-design .tabs button{padding:9px 11px}#chess-design table{min-width:520px}#chess-design td{font-size:14px}#chess-design footer{padding:22px 16px}#chess-design h1{overflow-wrap:anywhere}}@media(prefers-reduced-motion:reduce){#chess-design *{transition:none!important}}
#chess-design .pair-round{border:1px solid var(--line);border-radius:12px;margin:14px 0;background:white;overflow:hidden}#chess-design .pair-round summary{padding:16px 20px;cursor:pointer;font-weight:650;background:var(--soft)}#chess-design .pair-round .scroll{margin:12px;border-radius:8px}@media(max-width:720px){#chess-design .language-control{margin-left:0}#chess-design header>.primary{margin-left:0}#chess-design .brand small{letter-spacing:2px}#chess-design header{gap:10px}}


/* Shared control alignment. Language picker is intentionally not a form label. */
#chess-design button{line-height:1.35;vertical-align:middle}
#chess-design button:not(.brand):not(.textbutton){display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
#chess-design :is(input,select,textarea){line-height:1.4}
#chess-design :is(input,select){min-height:46px}
#chess-design .row>label{min-width:0}
#chess-design .row>label :is(input,select){margin-bottom:0}
#chess-design form.row{align-items:flex-end}
#chess-design form.row>button{min-height:46px}
#chess-design :is(.section-head,.row.spread)>:is(h2,h3){margin-bottom:0}
#chess-design :is(.tabs,nav) button{min-height:44px}
#chess-design td{vertical-align:middle}
#chess-design td .pair-select{margin:0}
#chess-design .tag{line-height:1.4;vertical-align:middle}
#chess-design .brand{flex:none;white-space:nowrap}
#chess-design header{column-gap:20px;row-gap:16px}
#chess-design .language-control{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:100px;height:44px;margin:0;padding:0;background:#f7f7fc;border:1px solid var(--line);border-radius:10px;color:var(--green);transition:border-color .18s,background .18s}
#chess-design .language-control:hover{background:var(--soft);border-color:#b8b6d0}
#chess-design .language-control:focus-within{outline:2px solid var(--green);outline-offset:3px}
#chess-design .language-control .language-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;pointer-events:none}
#chess-design .language-control .language-chevron{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;pointer-events:none}
#chess-design .language-control #language-select{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;height:42px;min-height:0;margin:0;padding:0 27px 0 38px;line-height:normal;border:0;border-radius:10px;background:transparent;color:var(--green);font-size:14px;font-weight:650;letter-spacing:.02em;cursor:pointer;outline:none}
#chess-design .language-control option{background:white;color:var(--ink)}
#chess-design .event .bottom{align-items:center;gap:12px}
#chess-design .event .bottom button{flex-shrink:0}
#chess-design .page-head>h1{margin-bottom:12px}
@media(max-width:1150px){#chess-design nav{order:3;flex-basis:100%;justify-content:flex-start}#chess-design header>.primary{margin-left:auto}}
@media(max-width:720px){#chess-design header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 12px}#chess-design .brand{justify-self:start;min-width:0}#chess-design .language-control{justify-self:end;width:96px;margin:0}#chess-design nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;order:0;width:100%}#chess-design nav button{padding:10px 8px;margin:0}#chess-design header>.primary{grid-column:1/-1;justify-self:stretch;margin:0;font-size:14px}#chess-design .tabs{gap:5px}#chess-design .tabs button{flex:1 1 auto}#chess-design .form .row>button{flex:1 1 auto}#chess-design .row>label[style]{min-width:0!important;max-width:100%;flex:1 1 240px}#chess-design .hero-totals{gap:24px;flex-wrap:wrap}#chess-design .event .bottom{align-items:center}#chess-design footer{align-items:center}#chess-design .form{width:100%}}
#chess-design .contact-cell{white-space:nowrap}#chess-design input[type=email]{direction:ltr;text-align:left}#chess-design input[type=tel]{direction:ltr;text-align:left}

#chess-design .section-pager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:4px 0 12px}
#chess-design .pager-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
#chess-design .result-card{display:flex;flex-direction:column;padding:20px;min-width:0}
#chess-design .result-card h3{font-size:20px;line-height:1.3;margin:18px 0 4px;min-height:52px}
#chess-design .result-card .scroll{margin:14px 0 18px}
#chess-design .result-card table{table-layout:fixed;min-width:0;width:100%}
#chess-design .result-card th,#chess-design .result-card td{padding:10px 8px;font-size:14px;overflow-wrap:anywhere}
#chess-design .result-card th:nth-child(2),#chess-design .result-card td:nth-child(2){width:58px;text-align:center;white-space:nowrap}
#chess-design .result-card .result-bottom{margin-top:auto;gap:8px}
@media(max-width:900px) and (min-width:721px){#chess-design .results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#chess-design .section-pager{flex-wrap:wrap}#chess-design .pager-controls{gap:8px}#chess-design .pager-controls button{padding:10px 12px}#chess-design .result-card h3{min-height:0}}
#chess-design .hero-totals strong small{font-size:18px;font-weight:500;color:#dddced;white-space:nowrap}#chess-design .hero-totals .date-metric{font-size:24px;margin-top:6px}#chess-design .prototype-note{flex-basis:100%;font-size:12px;color:var(--muted)}

/* v11: compact aligned controls */
#chess-design .section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
#chess-design .view-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#chess-design .view-controls label{display:flex;gap:8px;align-items:center;font-size:14px;color:#66657c;font-weight:600}
#chess-design .view-controls select{width:auto;min-width:145px;margin:0;padding:10px 30px 10px 12px;border-radius:12px;background-color:white;font-size:14px}
#chess-design .page-count{display:grid;grid-template-columns:auto auto;gap:2px 12px;align-items:center;padding:10px 16px;background:white;border:1px solid #e1e1ee;border-radius:14px;font-size:14px;color:#68677e}
#chess-design .page-count strong{font-size:19px;color:#413e70;grid-column:2;grid-row:1 / 3}
#chess-design .page-count small{font-size:14px;font-weight:400}
#chess-design .page-range{font-size:12px}
#chess-design .nav-icon{width:20px;height:20px;flex:none}
#chess-design nav button{display:inline-flex;align-items:center;justify-content:center;gap:9px}
#chess-design .test-title{color:#a42f3c}
#chess-design .test-controls{padding:18px;border:1px solid #efd6d8;background:#fff7f7;border-radius:16px;margin:18px 0}
#chess-design .test-controls>.row{margin-top:14px}
#chess-design .pager-controls{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:640px){#chess-design .view-controls{width:100%}#chess-design .view-controls label{flex:1;min-width:140px;display:grid}#chess-design .view-controls select{width:100%;min-width:0}#chess-design .section-pager{align-items:flex-start;gap:16px;flex-direction:column}#chess-design .pager-controls{justify-content:flex-start;gap:8px}#chess-design nav button{gap:6px;padding:10px;font-size:14px}}

/* v12: consistent color markers and role-specific interface */
#chess-design .match-table th,#chess-design .match-table td{text-align:center;vertical-align:middle}
#chess-design .match-table .pair-select{display:block;margin:auto;min-width:105px}
#chess-design .color-label{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;vertical-align:middle}
#chess-design .chess-pawn{font-family:"DejaVu Sans","Segoe UI Symbol","Apple Symbols",serif;font-size:26px;line-height:1;display:inline-block;font-weight:400;color:#262538}
#chess-design .white-pawn{background:transparent;border-radius:0;padding:2px}
#chess-design .black-pawn{padding:2px}
#chess-design #role-control{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:218px}
#chess-design .role-caption{font-size:12px;color:#68677e;text-align:center;font-weight:600}
#chess-design .role-switch{display:flex;padding:4px;gap:4px;background:#f2f1f8;border:1px solid #e1e0ed;border-radius:14px}
#chess-design .role-switch button{flex:1;display:flex;align-items:center;justify-content:center;padding:9px 12px;border:0;background:transparent;color:#66647d;font-size:14px;border-radius:10px;box-shadow:none}
#chess-design .role-switch button.active{background:#413e70;color:white;box-shadow:0 2px 6px #413e701f}
#chess-design #role-control>button{font-size:13px;padding:7px 10px;border:0;background:transparent;color:#413e70}
#chess-design [hidden]{display:none!important}
@media(max-width:1000px){#chess-design header{flex-wrap:wrap}#chess-design #role-control{min-width:200px}}
@media(max-width:720px){#chess-design #role-control{grid-column:1/-1;width:100%;min-width:0}#chess-design .role-caption{text-align:left}#chess-design .role-switch button{padding:11px}}

/* v13 — shared sizing and spacing across participant and organizer screens */
#chess-design{--control-height:48px;--control-radius:12px;--control-font:16px;--field-gap:8px;--layout-gap:20px}
#chess-design :is(button,input,select,textarea){font-family:inherit;font-size:var(--control-font);line-height:1.4;letter-spacing:normal}
#chess-design button:not(.brand){min-height:var(--control-height);padding:11px 16px;border-radius:var(--control-radius);overflow-wrap:break-word}
#chess-design :is(input,select){height:var(--control-height);min-height:var(--control-height);padding:11px 14px;border-radius:var(--control-radius)}
#chess-design select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368697e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px 16px}
#chess-design select:disabled{opacity:.6;cursor:not-allowed}
#chess-design label{font-size:14px;line-height:1.4;font-weight:600;min-width:0}
#chess-design label :is(input,select,textarea){font-size:var(--control-font);font-weight:400;margin:var(--field-gap) 0 0;width:100%}
#chess-design textarea{padding:12px 14px;min-height:120px;border-radius:var(--control-radius)}
#chess-design .form{display:grid;gap:var(--layout-gap);width:100%}
#chess-design .form .two{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--layout-gap)}
#chess-design .form :is(p,.error){margin:0}
#chess-design .form .error:empty{display:none}
#chess-design form.row{align-items:flex-end;gap:16px;margin:20px 0}
#chess-design form.row>label{flex:1 1 240px;max-width:520px}
#chess-design .row:has(>label){align-items:flex-end}
#chess-design .row>label{max-width:100%}
#chess-design .view-controls{display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:16px;align-items:end;max-width:100%}
#chess-design .view-controls label{display:grid;gap:var(--field-gap);align-items:start;min-width:0;color:var(--muted);font-size:14px}
#chess-design .view-controls select{width:100%;min-width:0;margin:0;background-color:white;font-size:16px;border-radius:var(--control-radius)}
#chess-design .section-head{align-items:center;gap:20px;margin:32px 0 20px}
#chess-design .section-head :is(h1,h2,h3){margin:0}
#chess-design .panel{padding:24px;border-radius:18px}
#chess-design .grid,#chess-design .split{gap:var(--layout-gap)}
#chess-design .event h3,#chess-design .result-card h3{font-size:22px;line-height:1.35;letter-spacing:-.3px;margin:20px 0 14px;min-height:0}
#chess-design .event .bottom,#chess-design .result-card .result-bottom{padding-top:16px;gap:12px;align-items:center}
#chess-design .result-card .result-bottom{border-top:1px solid var(--line)}
#chess-design .section-pager{align-items:center;gap:16px;margin-top:20px;padding:0}
#chess-design .pager-controls{align-items:center;gap:12px}
#chess-design .page-count{display:flex;align-items:center;justify-content:center;gap:10px;min-height:var(--control-height);padding:11px 16px;border-radius:var(--control-radius);font-size:14px;line-height:1.4;flex-wrap:wrap}
#chess-design .page-count strong{font-size:16px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
#chess-design .page-count small{font-size:14px}
#chess-design .pager-controls button{min-width:112px;font-size:16px}
#chess-design .tabs{padding:6px;gap:6px}
#chess-design :is(.tabs,nav) button{font-size:14px;padding:12px 14px;min-height:48px;line-height:1.4}
#chess-design th{font-size:14px;line-height:1.4;padding:14px 16px}
#chess-design td{font-size:16px;line-height:1.5;padding:14px 16px}
#chess-design .result-card th,#chess-design .result-card td{font-size:14px;line-height:1.45;padding:12px 8px}
#chess-design .match-table .pair-select{min-width:128px;font-size:16px}
#chess-design .chess-pawn{font-size:24px;line-height:1;width:28px;text-align:center}
#chess-design .color-label{gap:6px;line-height:1.4}
#chess-design .tag{font-size:14px;line-height:1.4;padding:6px 10px}
#chess-design .language-control{height:48px;border-radius:12px;width:104px}
#chess-design .language-control #language-select{height:46px;min-height:46px;padding:0 30px 0 38px;font-size:14px;border-radius:12px;background-image:none}
#chess-design .language-control .language-chevron{right:12px}
#chess-design #role-control{margin-left:auto;min-width:230px}
#chess-design .role-switch button{font-size:14px;padding:10px 12px;min-height:44px;border-radius:10px}
#chess-design #role-control>button{font-size:14px;min-height:44px;padding:10px 12px}
#chess-design .textbutton:not(.brand){padding:10px 0}
#chess-design .pair-round summary{padding:16px 20px;font-size:16px;line-height:1.5}
@media(min-width:721px) and (max-width:1100px){#chess-design .grid{grid-template-columns:repeat(2,minmax(0,1fr))}#chess-design .split{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}}
@media(max-width:900px){#chess-design .section-head{align-items:flex-start}#chess-design .section-head .view-controls{width:100%}#chess-design .section-pager{align-items:flex-start;flex-direction:column}#chess-design .pager-controls{justify-content:flex-start}}
@media(max-width:720px){#chess-design .panel{padding:20px}#chess-design .grid,#chess-design .split,#chess-design .form .two{grid-template-columns:minmax(0,1fr)}#chess-design .view-controls{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#chess-design .view-controls label{min-width:0}#chess-design .event h3,#chess-design .result-card h3{font-size:22px}#chess-design #role-control{margin:0;min-width:0;width:100%}#chess-design .pager-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:12px}#chess-design .page-count{grid-column:1/-1;justify-content:space-between}#chess-design .pager-controls button{width:100%;min-width:0}#chess-design .language-control{width:104px}#chess-design .tabs button{flex:1 1 140px}#chess-design form.row>button{width:100%}}
@media(max-width:420px){#chess-design .view-controls{grid-template-columns:minmax(0,1fr)}#chess-design .panel{padding:18px}#chess-design .result-card th,#chess-design .result-card td{padding:10px 6px}#chess-design .result-card .color-label{gap:3px}#chess-design .chess-pawn{width:22px;font-size:22px}}
@media(forced-colors:active){#chess-design select:not([multiple]):not([size]){appearance:auto;background-image:none;padding-right:14px}}

/* v15: separate sections and place their filters below the heading */
#chess-design .section-head:has(>.view-controls){flex-direction:column;align-items:flex-start;gap:16px}
#chess-design .section-head>.view-controls{align-self:flex-start;width:min(100%,440px);margin:0}
#chess-design section[aria-labelledby="recent-title"]{border-top:1px solid var(--line);margin-top:40px;padding-top:32px}
#chess-design section[aria-labelledby="recent-title"]>.section-head{margin-top:0}
@media(max-width:720px){#chess-design section[aria-labelledby="recent-title"]{margin-top:32px;padding-top:24px}}

/* v16: contextual tournament navigation icons */
#chess-design .tabs button{gap:8px}
#chess-design .tab-icon{width:20px;height:20px;flex:none}
#chess-design .duel-icon{display:inline-flex;align-items:center;justify-content:center;gap:1px;width:42px;height:24px;flex:none;font-family:"DejaVu Sans","Segoe UI Symbol","Apple Symbols",serif;line-height:1}
#chess-design .duel-icon span{font-size:23px;line-height:1}
#chess-design .duel-icon svg{width:8px;height:16px;flex:none;color:#a42f3c}
@media(max-width:720px){#chess-design .tabs button{flex:1 1 170px}}

/* v17: pagination shares the exact card column tracks */
#chess-design .section-pager{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--layout-gap);align-items:start;width:100%;margin-top:20px}
#chess-design .section-pager>.textbutton{grid-column:1;justify-self:start;max-width:100%}
#chess-design .section-pager>.pager-controls{grid-column:-2/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;align-items:stretch}
#chess-design .section-pager .page-count{grid-column:1/-1;min-width:0;width:100%;justify-content:space-between}
#chess-design .section-pager .pager-controls button{width:100%;min-width:0;margin:0}
@media(min-width:721px) and (max-width:1100px){#chess-design .section-pager{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#chess-design .section-pager{grid-template-columns:minmax(0,1fr);gap:12px}#chess-design .section-pager>.pager-controls{grid-column:1}}

/* v18: filter width follows the same tracks as cards and pagination */
#chess-design .section-head:has(>.view-controls){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--layout-gap);row-gap:16px;width:100%}
#chess-design .section-head:has(>.view-controls)>:is(h1,h2,h3){grid-column:1/-1}
#chess-design .section-head>.view-controls{grid-column:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;max-width:100%}
#chess-design .section-head>.view-controls select{min-width:0;width:100%}
@media(min-width:721px) and (max-width:1100px){#chess-design .section-head:has(>.view-controls){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:721px) and (max-width:1350px){#chess-design .section-head>.view-controls{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){#chess-design .section-head:has(>.view-controls){grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){#chess-design .section-head>.view-controls{grid-template-columns:minmax(0,1fr)}}

/* v19: single-line count and arrow navigation within one card track */
#chess-design .section-pager>.pager-controls{grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px;align-items:center}
#chess-design .section-pager .page-count{grid-column:auto;flex-wrap:nowrap;justify-content:center;gap:8px;padding:11px 10px;white-space:nowrap;font-size:14px}
#chess-design .section-pager .pager-controls button{padding:0;width:44px;height:48px;min-width:44px;font-size:22px;line-height:1}
@media(max-width:360px){#chess-design .section-pager>.pager-controls{gap:6px}#chess-design .section-pager .page-count{gap:5px;padding-left:6px;padding-right:6px}}

/* v20: readable compact filter text with room for dropdown arrow */
#chess-design .view-controls label select{font-size:14px;padding-left:12px;padding-right:36px;background-position:right 12px center}
