/* Expand disclosures below their headings instead of letting the browser
   scroll the document to keep content farther down the page in place. */
html:has(.wm-page){overflow-anchor:none}
.wm-browse-preview>summary,.wm-public-preview>summary,.wm-browse-preview>summary>.toggle,.wm-public-preview>summary>.toggle{color:var(--yellow)}
.wm-page{width:min(1140px,calc(100% - 40px));padding:32px;--edge:var(--green)}
.wm-page h1{margin:0}.wm-page h2{margin:0 0 16px}.wm-page h3{font-size:1rem;margin:0 0 8px}.wm-page p{margin-bottom:16px}
.wm-heading,.wm-room-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.wm-heading{margin-bottom:20px}
.wm-eyebrow{display:block;color:var(--green);font-size:var(--type-small);font-weight:bold;letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px!important}
.wm-intro{font-size:1.15rem;margin-bottom:12px}.wm-note{font-size:var(--type-small);color:var(--muted);line-height:1.7}.wm-badge{padding:5px 10px;border:1px solid var(--rule);color:var(--yellow);font-size:var(--type-small)}
.wm-transfer-result{white-space:pre-line}
.wm-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.wm-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.wm-card{padding:24px;background:var(--inset);border:1px solid var(--rule);min-width:0;margin-bottom:20px}.wm-grid>.wm-card{margin-bottom:0}
.wm-page label{display:block;margin:16px 0 5px;font-weight:bold}.wm-page input:not([type=checkbox]),.wm-page select{display:block;width:100%;max-width:100%;min-height:46px;padding:9px 12px;border:1px solid var(--rule);border-radius:0;background:var(--panel);color:var(--paper);font:inherit}.wm-page select:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.wm-page input[type=file]{font-size:var(--type-small);padding:8px}.wm-page button{padding:10px 16px;min-height:44px;border:1px solid var(--green);background:var(--green);color:#fff;font-weight:bold;line-height:1.5}.wm-page button:disabled{opacity:.5}.wm-page .wm-secondary{background:transparent;color:var(--paper);border-color:var(--rule)}
.wm-page form>button,.wm-page .wm-import{margin-top:20px}.wm-page details>p{margin-top:12px}.wm-page .wm-check{display:flex;align-items:flex-start;gap:12px;font-size:var(--type-small);font-weight:normal;margin:20px 0}.wm-check input{width:20px;height:20px;flex:none;margin:4px 0;accent-color:var(--green)}
.wm-code{font-family:Consolas,monospace;font-size:2rem;letter-spacing:.12em;color:var(--yellow);display:block}.wm-room-bar{padding:20px 0;border-block:1px solid var(--rule);margin-bottom:24px}.wm-room-bar strong{display:block}.wm-players{padding:0;list-style:none;margin:0 0 16px}.wm-players li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--rule)}.wm-players small{color:var(--muted);text-align:right}
.wm-stage{border-top:3px solid var(--yellow)}.wm-clock{font-size:2.5rem;font-weight:bold;line-height:1.2;color:var(--yellow);font-variant-numeric:tabular-nums}.wm-actions{display:flex;gap:12px;flex-wrap:wrap}
.wm-route{padding-left:32px;padding-right:14px;max-height:390px;overflow:auto;border-block:1px solid var(--rule)}.wm-route:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}.wm-route li{padding:12px 0;border-bottom:1px solid var(--rule)}.wm-route li strong{color:var(--yellow)}.wm-route li p{margin:4px 0 0}.wm-page pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;max-height:320px;overflow:auto;background:var(--panel);padding:16px}.wm-table-wrap{overflow:auto}.wm-page table{width:100%;border-collapse:collapse;font-size:var(--type-small)}.wm-page th,.wm-page td{padding:10px 8px;text-align:left;border-bottom:1px solid var(--rule)}.wm-page th{color:var(--yellow)}
#wm-result-code{font-family:Consolas,monospace;font-size:1.5rem;letter-spacing:.12em}#wm-alert{padding:16px;border:1px solid var(--yellow);color:var(--yellow);margin:16px 0;overflow-wrap:anywhere}#wm-message:empty{display:none}#wm-message{padding:12px;border-left:3px solid var(--green);margin-bottom:16px}.wm-receipt{border-left:3px solid var(--green);padding:12px 16px;margin-top:20px;overflow-wrap:anywhere}.wm-lab{border-style:dashed}.wm-lab output{display:block;font-family:Consolas,monospace;color:var(--yellow);font-size:1.5rem;margin-top:16px;overflow-wrap:anywhere}
#wm-alert{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:40;width:min(800px,calc(100% - 24px));max-height:40dvh;overflow:auto;display:flex;flex-wrap:wrap;align-items:start;gap:8px;background:var(--panel);margin:0}
#wm-alert-message{flex:1 1 240px;min-width:0}#wm-dismiss-alert{width:auto;flex:none;min-height:44px;margin-left:auto}
#wm-result-form>#wm-alert{position:static;transform:none;width:100%;max-height:none}
.wm-route li[aria-current=step]{border-left:3px solid var(--green);padding-left:12px}.wm-route li[aria-current=step] strong:after{content:' · current round';font-size:var(--type-small);color:var(--green)}
.wm-setup-error{padding:20px;border:3px solid #ff7b85;background:#391d29;color:#fff;font-weight:bold;line-height:1.7}.wm-result-panel{border-top:3px solid var(--green)}.wm-result-panel h2{line-height:1.3}#wm-result-code{font-size:clamp(1.65rem,3.5vw,2.25rem);letter-spacing:.08em;font-variant-numeric:tabular-nums}.wm-result-preview{font-size:var(--type-small);line-height:1.7;color:var(--yellow);min-height:3em}.wm-result-valid{color:var(--paper)}.wm-previous-receipt{margin-top:20px;border-top:1px solid var(--rule);padding-top:16px}.wm-previous-receipt p{overflow-wrap:anywhere}.wm-receipt details{font-size:var(--type-small);margin-top:16px}#wm-recover-receipt{margin-top:14px}
.wm-ready-window{padding:16px 20px;margin-bottom:20px;background:#19364b;border-left:4px solid var(--yellow)}.wm-page .wm-ready-window h2{font-size:1.25rem;color:var(--yellow);margin:0 0 8px;font-variant-numeric:tabular-nums}.wm-page .wm-ready-window p{font-size:.85rem;margin:0;line-height:1.6}.wm-ready-window .wm-actions{margin-top:12px}.wm-ready-window .wm-actions:not(:has(button:not([hidden]))){display:none}.wm-ready-window button{font-size:.85rem}
.wm-result-time-bank{padding:10px 14px;margin:0 0 16px;border-left:2px solid var(--rule);background:var(--inset)}.wm-page .wm-result-time-bank h2{font-size:.875rem;line-height:1.5;margin:0 0 4px;color:var(--paper);font-variant-numeric:tabular-nums}.wm-page .wm-result-time-bank p{font-size:.8rem;line-height:1.5;margin:0;color:var(--muted)}.wm-result-time-bank[data-spending=true]{border-color:var(--yellow)}.wm-page .wm-result-time-bank[data-spending=true] h2{color:var(--yellow)}
.wm-edit{border-bottom:1px solid var(--rule);padding-bottom:24px;margin-bottom:24px}.wm-transfer{margin-bottom:24px}.wm-route-details{margin-top:24px;border-top:1px solid var(--rule);padding-top:18px}.wm-route-details>.wm-heading{margin-top:20px}
.wm-page #wm-lock{display:block;width:100%;min-height:64px;margin-top:24px;padding:14px 24px;font-size:1.4rem;font-weight:800}.wm-go-level{color:var(--blue)}.wm-go-exit{display:inline-block;font-size:.85em;white-space:nowrap}.wm-go-exit-normal{color:var(--yellow)}.wm-go-exit-secret{color:var(--red)}
.wm-guide-controls,.wm-guide-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.wm-guide-options label{margin:0;font-size:var(--type-small)}.wm-guide-options input[type=number]{max-width:100px;display:inline-block;margin-left:10px}.wm-guide-options .wm-check{margin:0}.wm-guide-viewport{max-height:540px;overflow:auto;overscroll-behavior:contain;padding:10px;background:var(--panel);border:1px solid var(--rule);scroll-behavior:auto}.wm-guide-viewport:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}.wm-guide-block{margin-bottom:24px}.wm-guide-block:last-child{margin-bottom:0}.wm-guide-block h3{color:var(--yellow);font-size:1.15rem}.wm-guide-group{border:1px solid var(--rule);padding:12px;margin-bottom:16px}.wm-guide-group-title{font-size:var(--type-small);font-weight:bold;margin:0 0 12px!important;color:var(--muted)}.wm-input-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}.wm-controller-input{--control:#00d6ff;position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;border:3px solid var(--control);background:#091c2b;padding:22px 6px 6px;min-width:0}.wm-controller-input svg{display:block;width:100px;max-width:100%;height:76px}.wm-input-number{position:absolute;top:0;left:8px;font:700 .875rem/1.5 Consolas,monospace;color:var(--paper)}.wm-input-label{font-weight:bold;color:var(--control)}.wm-input-0{--control:#ffd459}.wm-input-1{--control:#ff73ef}.wm-input-2{--control:#ff9a42}.wm-input-3{--control:#29f5df}.wm-input-4{--control:#38d46b}.wm-input-5{--control:#4fb8ff}.wm-input-6{--control:#ffd447}.wm-input-7{--control:#ff6268}.wm-pad-shape{fill:#1c3548;stroke:var(--control);stroke-width:2}.wm-pad-arrow{fill:var(--control);font:bold 38px Arial,sans-serif}.wm-face-inactive circle{fill:#1b3040;stroke:#4b6171;stroke-width:1}.wm-face-inactive text{fill:#8195a6;font:700 13px Arial,sans-serif}.wm-face-active circle{fill:var(--control);stroke:#f4faff;stroke-width:2}.wm-face-active text{fill:#081924;font:900 15px Arial,sans-serif}.wm-comparison{padding:20px;border:2px solid var(--yellow);margin-top:20px}.wm-full-confirmation{font:700 clamp(1.8rem,5vw,3.2rem)/1.4 Consolas,monospace;letter-spacing:.12em;color:var(--yellow);white-space:nowrap;margin:8px 0 20px!important}.wm-guide-notice{color:var(--yellow);font-size:var(--type-small);margin-top:16px!important}.wm-guide-notice:empty{display:none}.wm-repair-block{padding:12px;border:1px solid var(--rule);margin:12px 0}.wm-quarter-compare{display:grid;grid-template-columns:1fr 140px;align-items:center;gap:14px;border-bottom:1px solid var(--rule);padding:8px 0}.wm-quarter-compare .wm-check{margin:0}.wm-quarter-compare input[type=text]{font:1.15rem Consolas,monospace;letter-spacing:.1em}.wm-repair-block details>button{margin-top:16px}
@media(max-width:800px){.wm-page{padding:24px}.wm-grid{grid-template-columns:1fr}.wm-card{padding:20px}.wm-heading{align-items:flex-start}.wm-page h1{font-size:1.8rem}}
@media(max-width:480px){.wm-page{width:calc(100% - 20px);padding:18px 12px}.wm-card{padding:16px 12px}.wm-toolbar button{flex:1}.wm-players li{display:block}.wm-players small{display:block;text-align:left}.wm-room-bar{gap:20px}.wm-page button{width:100%}.wm-actions{width:100%}.wm-page th,.wm-page td{padding:8px 4px}.wm-code{font-size:1.8rem}}
@media(max-width:650px){.wm-guide-viewport{padding:6px;max-height:460px}.wm-guide-group{padding:8px}.wm-input-row{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}.wm-controller-input{padding:20px 3px 4px}.wm-controller-input svg{height:62px}.wm-input-label{font-size:.875rem}.wm-quarter-compare{grid-template-columns:1fr}.wm-comparison{padding:14px}.wm-full-confirmation{letter-spacing:.07em}.wm-guide-controls{width:100%}}

.wm-edit-options{margin-bottom:24px}.wm-edit-options[open]>summary{margin-bottom:20px}

.wm-guide-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;margin:auto;padding:16px;border:2px solid var(--green);background:var(--inset);color:var(--paper)}.wm-guide-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}.wm-guide-dialog::backdrop{background:#000d}.wm-focus-toolbar{display:flex;justify-content:flex-end;align-items:center}.wm-focus-host{min-height:0;display:flex;flex-direction:column;gap:8px}.wm-guide-dialog .wm-guide-controls{margin:0;flex:none}.wm-guide-dialog [data-guide=reader]{min-height:0;flex:1;display:flex;flex-direction:column}.wm-guide-dialog [data-guide=pass]{margin:0 0 3px!important}.wm-guide-dialog [data-guide=estimate]{margin:0 0 8px;font-size:.8rem}.wm-guide-dialog .wm-guide-options{display:none}.wm-guide-dialog .wm-guide-viewport{min-height:0;max-height:none;flex:1}.wm-guide-dialog .wm-comparison{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin:0}.wm-guide-dialog .wm-full-confirmation{font-size:clamp(2.5rem,8vw,6rem)}.wm-guide-dialog .wm-guide-controls button{width:auto}.wm-guide-dialog .wm-actions{justify-content:center}.wm-guide-dialog .wm-guide-block{margin-bottom:18px}.wm-guide-dialog .wm-guide-block h3{margin-bottom:8px}.wm-guide-dialog .wm-input-row{gap:10px}
@media(max-width:650px){.wm-guide-dialog{width:100vw;height:100dvh;padding:10px;margin:0;border-width:1px}.wm-guide-dialog .wm-guide-controls{gap:8px}.wm-guide-dialog .wm-guide-controls button{padding:8px 10px;font-size:.875rem}.wm-guide-dialog .wm-full-confirmation{letter-spacing:.07em}.wm-guide-dialog .wm-input-row{gap:7px}}

.wm-guide-dialog[open]{grid-template-rows:minmax(0,1fr)}.wm-focus-toolbar{display:contents}

.wm-pad-inactive rect{fill:#102733;stroke:#426678;stroke-width:1}.wm-pad-active rect{fill:var(--control);stroke:#fff2c2;stroke-width:2}.wm-pad-active text{fill:#132631;font:900 23px Arial,sans-serif}

.wm-brand{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.wm-brand img{image-rendering:pixelated;flex:none}.wm-brand span{font-size:clamp(1.5rem,3vw,2rem)}
.wm-toolbar:has(button[hidden]){margin:0}.wm-toolbar:has(button:not([hidden])){margin:16px 0}
.wm-steps{display:flex;gap:8px;list-style:none;margin:0 0 20px;padding:0;font-size:var(--type-small)}.wm-steps li{flex:1;padding:10px 12px;border-bottom:2px solid var(--rule);color:var(--muted)}.wm-steps [aria-current=step]{color:var(--yellow);border-color:var(--yellow);font-weight:bold}
.wm-lobby-only{grid-template-columns:1fr}.wm-transport-details{margin:12px 0}.wm-transport-details summary{font-size:var(--type-small)}
.wm-pad-inactive rect,.wm-face-inactive circle{fill:var(--inactive-fill);stroke:var(--inactive-stroke)}
.wm-button-0{--inactive-fill:#263131;--inactive-stroke:#44534d}.wm-button-1{--inactive-fill:#26283e;--inactive-stroke:#444562}.wm-button-2{--inactive-fill:#262c2f;--inactive-stroke:#444b4a}.wm-button-3{--inactive-fill:#12343d;--inactive-stroke:#265860}.wm-button-4{--inactive-fill:#143133;--inactive-stroke:#29534f}.wm-button-5{--inactive-fill:#162f40;--inactive-stroke:#2c4f64}.wm-button-6{--inactive-fill:#26312f;--inactive-stroke:#44534a}.wm-button-7{--inactive-fill:#262732;--inactive-stroke:#44434f}
.wm-controller-input.wm-one-press{border:3px solid #f0e4c9;background:linear-gradient(180deg,#504b40,#36332c);border-radius:4px}.wm-input-number{top:auto;bottom:2px;left:3px;padding:0 3px;background:#082330;border:1px solid #6691a2;border-radius:2px;font:800 .75rem/1.1 Consolas,monospace;color:#e5f6ff}.wm-controller-input{padding:10px 6px 22px}.wm-input-row{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:16px}.wm-guide-group{padding:16px}.wm-input-label{font-size:.85rem}
@media(max-width:650px){.wm-brand{gap:16px}.wm-brand img{width:102px;height:48px}.wm-steps{gap:4px}.wm-steps li{padding:9px 5px;font-size:.75rem}.wm-input-row{gap:12px}.wm-guide-dialog .wm-input-row{gap:12px}.wm-controller-input{padding:8px 4px 22px}}

.wm-button-0{--button-active:#ffd459}.wm-button-1{--button-active:#ff73ef}.wm-button-2{--button-active:#ff9a42}.wm-button-3{--button-active:#29f5df}.wm-button-4{--button-active:#38d46b}.wm-button-5{--button-active:#4fb8ff}.wm-button-6{--button-active:#ffd447}.wm-button-7{--button-active:#ff6268}.wm-button-8{--button-active:#c9e9ff;--inactive-fill:#21232c;--inactive-stroke:#3d4e64}.wm-button-9{--button-active:#b79aff;--inactive-fill:#1f283f;--inactive-stroke:#3a4b64}
.wm-pad-active rect,.wm-face-active circle,.wm-shoulder-active rect{fill:var(--button-active)}.wm-shoulder-active rect{stroke:#fff2c2;stroke-width:2}.wm-shoulder-active text{fill:#132631;font:900 12px Arial,sans-serif}.wm-shoulder-inactive rect{fill:var(--inactive-fill);stroke:var(--inactive-stroke);stroke-width:1}
.wm-controller-input.wm-combined-press{border:5px double #d6b6ff;background:linear-gradient(180deg,#3d3654,#29233c);border-radius:4px;padding:8px 4px 20px}.wm-input-combined .wm-input-label{color:#f0e4ff;font-size:.8rem}

.wm-focus-host>[data-guide=notice]{margin:0!important;flex:none}

/* Web Match is a section of the existing site, with one brand and heading. */
.wm-site-brand{display:flex;flex-direction:column;align-items:center;flex:none;gap:2px}
.wm-site-title{margin:0;font-size:1rem;line-height:1.4;letter-spacing:0}
.wm-site-title a{color:var(--yellow);text-decoration:none;text-shadow:1px 2px #102231}
.wm-site-title a:hover{text-decoration:underline}
.wm-page-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-bottom:18px;color:var(--muted);font-size:var(--type-small)}
.wm-header-connection{margin-left:auto;max-width:150px;border:0;padding:5px 8px;background:var(--panel);font-size:.75rem;line-height:1.4;text-align:right}
.wm-header-connection::before{content:'●';margin-right:5px}
.wm-page-status:has(>#wm-browse-actions[hidden]):has(>#wm-room-page-code[hidden]){display:none}
.wm-directory-heading{flex-wrap:nowrap;align-items:baseline}
#wm-directory .wm-directory-heading h2{margin:0;white-space:nowrap}
#wm-directory-status{margin:0;min-width:0;text-align:right;line-height:1.4}
.wm-directory-actions{display:flex;gap:8px;margin-bottom:12px}
.wm-directory-actions>*{flex:1;min-width:0;text-align:center}
.wm-introduction{margin:0 0 24px;padding:0 0 24px;border-bottom:1px solid var(--rule);display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:32px;align-items:start}
.wm-introduction-copy{min-width:0}
.wm-introduction-copy>p{max-width:58ch}
.wm-introduction-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wm-introduction-topline button{width:auto;flex:none;min-height:44px}
.wm-introduction .wm-player-profile{min-width:0;padding-top:4px}
.wm-room-navigation{display:flex;align-items:center;gap:16px;margin:0}
.wm-back-to-rooms{display:inline-flex;align-items:center;min-height:44px;color:var(--paper)}
.wm-room-navigation [hidden]{display:none}
#wm-match-options-content .wm-player-profile{margin-top:20px;max-width:232px}
@media(max-width:650px){
 .wm-introduction{grid-template-columns:minmax(0,1fr) 100px;gap:16px;margin-bottom:16px;padding-bottom:16px}
 .wm-introduction-copy{display:contents}
 .wm-introduction-copy>p{display:none}
 .wm-introduction-topline{grid-column:1/-1}
 .wm-introduction .wm-introduction-topline button{font-size:.875rem;padding:8px;white-space:normal;flex:0 1 auto;min-width:0}
 #wm-introduction-title{grid-column:1;grid-row:2;margin:0;font-size:1.1rem}
 .wm-introduction .wm-profile-thumbnail .wm-profile-card-header,.wm-introduction .wm-profile-thumbnail .wm-profile-title{display:none}
 .wm-introduction .wm-player-profile{grid-column:2;grid-row:2;align-self:start;padding-top:0}
 .wm-room-navigation .wm-link-button{font-size:.875rem;padding:8px 12px}
}
.wm-experimental{display:inline-block;padding:4px 9px;border:1px solid #c08b49;border-radius:4px;color:#ffe1af;font-size:.75rem;font-weight:700;letter-spacing:.04em}
.wm-introduction h2{margin:12px 0;font-size:clamp(1.25rem,3vw,1.7rem);line-height:1.3}
.wm-introduction h2,#wm-directory .wm-heading h2{color:var(--yellow)}
.wm-introduction p{margin:0;line-height:1.6;color:var(--muted)}
.wm-introduction-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid var(--rule);background:var(--panel);color:var(--paper);overflow:auto;line-height:1.6}
.wm-introduction-dialog::backdrop{background:#000c}
body:has(.wm-introduction-dialog[open]){overflow:hidden}
.wm-introduction-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.wm-introduction-dialog-head h2{margin:0;color:var(--yellow);font-size:clamp(1.25rem,4vw,1.65rem);line-height:1.35}
.wm-introduction-dialog-head form{flex:none}.wm-page .wm-introduction-dialog-head button{width:auto;margin-top:0}
.wm-introduction-dialog form{margin:0}.wm-introduction-dialog button{min-height:44px}
.wm-introduction-dialog p{margin:16px 0}.wm-introduction-dialog h3{margin:24px 0 12px;font-size:1.15rem;color:var(--yellow)}
.wm-introduction-steps{padding-left:24px;margin:16px 0}.wm-introduction-steps li{padding-left:8px;margin:16px 0}
.wm-introduction-steps li::marker{color:var(--yellow);font-weight:700}
.wm-introduction-steps strong{display:block}.wm-introduction-dialog-actions{padding-top:8px}
@media(max-width:650px){.wm-introduction-dialog{padding:18px}.wm-introduction-dialog-head{gap:12px}.wm-introduction-dialog-head button{padding:8px 12px}}
.wm-entry-panel>summary{font-weight:bold;font-size:1rem}.wm-entry-panel[open]>summary{margin-bottom:16px}.wm-entry-panel form>p:first-child{margin-top:12px}
.wm-page .wm-preset-picker-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;margin-top:0}
.wm-preset-picker-trigger>span:first-child{min-width:0;overflow-wrap:anywhere}
.wm-preset-picker-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;border:1px solid var(--rule);background:var(--panel);color:var(--paper);overflow:auto;box-shadow:0 20px 80px #0008}
.wm-preset-picker-dialog::backdrop{background:#000c}
body:has(.wm-preset-picker-dialog[open]){overflow:hidden}
.wm-preset-picker-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.wm-page .wm-preset-picker-head h2{margin:0;font-size:1.4rem}
.wm-page .wm-preset-picker-head button{width:auto;flex:none}
.wm-page .wm-preset-picker-section h3{color:var(--yellow);font-size:1.05rem;margin:0 0 10px}
.wm-preset-picker-section+.wm-preset-picker-section{border-top:1px solid var(--rule);padding-top:20px;margin-top:20px}
.wm-preset-picker-options{display:grid;gap:8px;max-height:280px;overflow:auto;padding:4px}
.wm-preset-picker-options .wm-note{margin:0}
.wm-page .wm-preset-choice{width:100%;text-align:left;overflow-wrap:anywhere;--action-fill:#21435b;--action-hover:#315c77;--action-border:#9ce7e7;--action-ink:#f5f6fb}
.wm-page .wm-preset-choice[aria-pressed=true]{--action-fill:var(--yellow);--action-hover:#ffdc54;--action-border:#fff0a6;--action-ink:#142837}
@media(max-width:650px){.wm-preset-picker-dialog{padding:16px}.wm-page .wm-preset-picker-head h2{font-size:1.15rem}}
#wm-message:empty,.wm-toolbar:has(>button[hidden]:only-child){display:none}
@media(max-width:650px){.wm-site-brand{align-items:flex-start}.wm-site-title{font-size:.875rem}.wm-page{padding:20px}.wm-page-status{flex-wrap:wrap}}



/* Shared website disclosures; compact, bounded entry rows. */
#wm-connector-server{overflow-wrap:anywhere}
.wm-badge{color:var(--muted)}.wm-badge[data-status=online]{color:var(--green);border-color:var(--green)}.wm-badge[data-status=degraded]{color:var(--yellow);border-color:var(--yellow)}
.wm-room-nav{display:flex;justify-content:space-between;gap:16px;margin:0 0 20px}.wm-neutral-notice{padding:14px 16px;background:var(--inset);border-left:3px solid var(--rule);color:var(--paper)}.wm-resume{border-left:3px solid var(--green)}
.wm-link-button{display:inline-block;padding:10px 16px;min-height:44px;border:1px solid var(--green);background:var(--green);color:#fff;font-weight:bold;text-decoration:none}.wm-resume .wm-note:last-child{margin:14px 0 0}
.wm-join-only{grid-template-columns:1fr}.wm-directory-room{padding:16px;border:1px solid var(--rule);margin-top:12px;background:var(--panel)}.wm-directory-room summary strong,.wm-directory-room summary .wm-note{display:block}.wm-directory-room summary .wm-note{margin:6px 0 0}.wm-directory-room[open]>summary{margin-bottom:16px}.wm-directory-route{max-height:240px;overflow:auto;padding:12px 12px 12px 32px;border-block:1px solid var(--rule);font-size:var(--type-small)}.wm-directory-route li{padding:5px 0}.wm-directory-route:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.wm-directory-room>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 18px}.wm-directory-room>summary>.wm-summary-label{overflow-wrap:anywhere}.wm-directory-room-actions{display:flex}.wm-directory-room-actions>button,.wm-directory-room-actions>.wm-link-button{width:auto;padding:8px 12px;font-size:var(--type-small);white-space:nowrap}
@media(max-width:650px){.wm-directory-room>summary{grid-template-columns:minmax(0,1fr) 18px;gap:12px}.wm-directory-room>summary>.wm-summary-label{grid-column:1/-1}.wm-directory-room-actions{justify-self:end}}
.wm-page summary>.wm-summary-label{min-width:0}.wm-compare-instruction{flex-basis:100%;font-size:var(--type-small);color:var(--muted)}
.wm-guide-viewport{padding:12px}.wm-input-row{grid-template-columns:repeat(6,minmax(0,96px));justify-content:center;gap:12px;max-width:636px;margin-inline:auto}.wm-controller-input{padding:5px 4px 18px}.wm-controller-input svg{width:82px;height:66px}.wm-controller-input.wm-combined-press{padding:3px 2px 16px}.wm-input-label{font-size:.75rem}.wm-guide-dialog .wm-guide-options{display:flex;margin:4px 0 8px;gap:14px}.wm-guide-dialog .wm-guide-options label{font-size:.75rem}.wm-guide-dialog .wm-guide-options input[type=number]{min-height:32px;padding:3px 7px;max-width:80px}.wm-guide-dialog .wm-guide-controls{flex-wrap:wrap}
@media(max-width:650px){.wm-input-row{grid-template-columns:repeat(3,minmax(0,96px));gap:10px}.wm-guide-dialog .wm-input-row{gap:10px}.wm-controller-input svg{height:66px}.wm-guide-dialog .wm-guide-options{gap:8px}.wm-guide-dialog .wm-guide-controls{gap:7px}}

/* One alphabet, one page: the result wire stays Crockford Base32. */
.wm-code-keypad{display:flex;flex-direction:column;gap:6px;margin-top:12px}.wm-code-keyboard-row{display:flex;justify-content:center;gap:4px}.wm-code-keyboard-row button{flex:0 1 calc((100% - 36px)/10);min-width:0;min-height:44px;padding:7px 0;font:700 1.1rem/1.2 Consolas,monospace;touch-action:manipulation}.wm-code-keyboard-edits button{flex:1;max-width:50%;font-size:.875rem}.wm-keypad-count{margin:8px 0!important;font-size:.8rem;color:var(--muted)}.wm-keyboard-toggle{font-size:.8rem;min-height:44px!important}.wm-code-keypad[hidden],.wm-keypad-count[hidden],.wm-code-keyboard-row[hidden]{display:none!important}
.wm-dnf-confirmation{margin-top:16px;padding:16px;border:2px solid var(--yellow);background:var(--panel)}.wm-dnf-confirmation h3{color:var(--yellow)}#wm-dnf-option{margin-top:16px}
.wm-profile-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.wm-profile-cards button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;background:var(--panel);color:var(--paper);border:2px solid var(--rule);transition:background-color .15s,border-color .15s,box-shadow .15s}.wm-profile-cards button:not(:disabled):hover{border-color:var(--yellow);background:#234359;box-shadow:inset 0 0 0 1px var(--yellow)}.wm-profile-cards span{font-size:.875rem;font-weight:normal}.wm-profile-cards button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px;background:#234359}.wm-awake-option{min-height:44px}.wm-preset-options{margin:16px 0}.wm-browse-preview{margin-top:16px}.wm-browse-preview>summary,.wm-public-preview>summary,#wm-roster>summary{min-height:44px}.wm-own-row{background:#12443a}.wm-own-row td:first-child{border-left:3px solid var(--green)}
.wm-profile-cards+.wm-profile-legacy{display:none}.wm-guide-display-options{flex:none;border:1px solid var(--rule);padding:6px 10px;margin:6px 0}.wm-guide-display-options>summary{min-height:36px;font-size:.875rem}.wm-guide-display-options .wm-awake-option{margin:10px 0}.wm-guide-display-options #wm-screen-awake-status{font-size:.875rem;margin:6px 0}.wm-guide-display-options .wm-guide-options{margin:10px 0}
.wm-page [data-guide=profile-options] h2{color:var(--yellow);font-size:clamp(1.5rem,4vw,2rem);line-height:1.35}
[data-guide=profile-options] h2 span{display:block;font-size:.7em;margin-top:8px}
/* The first setup screen has one decision; details return after choosing. */
#wm-setup:has(.wm-transfer[data-profile-choice=true]:not([hidden])){padding:24px 0;border:0;background:none}
#wm-setup:has(.wm-transfer[data-profile-choice=true]:not([hidden]))>:not(#wm-transfer),
.wm-transfer[data-profile-choice=true]>:not([data-guide=available]),
.wm-transfer[data-profile-choice=true]>[data-guide=available]>:not([data-guide=profile-options]){display:none}
.wm-guide-example{margin:20px 0;padding:16px;border:1px solid var(--rule);background:var(--inset)}
.wm-guide-example figcaption{margin-top:12px;color:var(--muted);font-size:.8rem;line-height:1.6}
.wm-introduction-dialog .wm-example-title{margin:0;color:var(--yellow);font-size:1rem;font-weight:bold;line-height:1.5}
.wm-example-title>span{display:block;font-size:.8rem}
.wm-guide-example .wm-profile-cards>div{display:flex;flex-direction:column;gap:7px;padding:12px;border:2px solid var(--rule);background:var(--panel);font-size:.875rem}
.wm-example-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.wm-example-inputs .wm-controller-input{min-width:0;margin:0}
.wm-example-inputs .wm-input-label{white-space:normal;font-size:.75rem}
.wm-example-inputs .wm-controller-input svg{max-width:100%;height:64px}
@media(max-width:480px){.wm-guide-example{padding:10px}.wm-example-inputs{gap:6px}.wm-example-inputs .wm-controller-input svg{height:48px}}
@media(max-width:700px), (max-width:950px) and (max-height:500px) and (orientation:landscape){
  body[data-route="/web-match/"]{margin:0;padding:0;min-width:0;background:var(--navy)}
  body[data-route="/web-match/"] .main-nav,body[data-route="/web-match/"] .site-footer,body[data-route="/web-match/"] .pixel-frame,body[data-route="/web-match/"] .scene{display:none}
  body[data-route="/web-match/"] .site-frame{--frame-side:0px;--frame-top:0px;--frame-bottom:0px;width:100%;max-width:none;min-height:100svh;margin:0;padding:0;border:0;box-shadow:none;background:var(--navy)}
  body[data-route="/web-match/"] .site-header{position:relative;top:auto;left:auto;right:auto;bottom:auto;width:100%;height:auto;min-height:0;max-width:100%;flex-direction:row;justify-content:flex-start;padding:4px 10px;margin:0;gap:10px;background:var(--panel);border-bottom:1px solid var(--rule)}
  body[data-route="/web-match/"] .brand,body[data-route="/web-match/"] .wm-site-title a{min-height:44px;display:inline-flex;align-items:center}
  body[data-route="/web-match/"] .brand img{width:78px;height:auto}body[data-route="/web-match/"] .wm-site-brand{flex-direction:row;align-items:center;gap:10px}
  .site-header .wm-header-connection{max-width:120px;padding:0;font-size:.75rem}
  .wm-page .wm-directory-actions>*{width:auto;padding:8px;font-size:.875rem}
  body[data-route="/web-match/"] #main{padding:0;margin:0;max-width:none}
  .wm-page{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:8px;border:0;font-size:1rem}.wm-page-status{gap:8px;margin:4px 0 12px}.wm-badge{font-size:.875rem}.wm-note{font-size:.875rem;line-height:1.5}
  .wm-card{padding:12px 8px;margin-bottom:12px}.wm-heading{gap:10px;margin-bottom:12px}.wm-page h2{font-size:1.25rem;margin-bottom:10px}.wm-page h3{font-size:1rem}.wm-grid{gap:12px;margin-bottom:12px}.wm-directory-room{padding:10px 8px}.wm-directory-room>summary .wm-note{font-size:.875rem;line-height:1.5}
  .wm-page button,.wm-page select,.wm-page input:not([type=checkbox]){min-height:44px;font-size:1rem}.wm-page label{margin-top:12px}.wm-actions{gap:8px}.wm-actions>button,.wm-guide-controls>button{flex:1 1 auto}.wm-room-bar{gap:10px;padding:10px 0;margin-bottom:12px;align-items:center}.wm-room-bar>div:first-child{flex:1}.wm-code{font-size:1.6rem}.wm-room-bar #wm-leave{padding:7px 10px;font-size:.875rem}.wm-room-bar #wm-progress{font-size:.875rem}.wm-steps{font-size:.75rem;margin-bottom:12px}
  #wm-room{display:flex;flex-direction:column}#wm-room[hidden]{display:none}#wm-lobby-stage{order:1;display:flex;flex-direction:column}#wm-lobby-stage[hidden]{display:none}#wm-round-stage{order:0}#wm-players-card{order:1}#wm-results-stage{order:2}#wm-setup{order:3}
  body[data-wm-task=setup] #wm-setup{order:0}body[data-wm-task=setup] .wm-steps{margin-bottom:8px}body[data-wm-task=play] #wm-players-heading,body[data-wm-task=review] #wm-players-heading,body[data-wm-task=ready] #wm-players-heading{display:none}
  #wm-round-stage{padding:16px 12px}.wm-clock{font-size:3rem}#wm-current-setup{font-size:.875rem}#wm-result-panel{padding:14px 8px}.wm-result-preview{min-height:0}.wm-page #wm-result-code{font-size:1.65rem;min-height:52px;letter-spacing:.1em}#wm-result-form>button{margin-top:12px}.wm-page .wm-dnf-confirmation{padding:12px}.wm-dnf-confirmation .wm-actions>button{flex:1 1 100%}
  .wm-profile-cards{grid-template-columns:1fr}.wm-profile-cards button{padding:12px;min-height:70px}.wm-profile-cards strong{font-size:1rem}.wm-transport-details{margin-bottom:12px}.wm-guide-viewport{max-height:55dvh;min-height:220px;padding:8px}.wm-guide-group{padding:8px;margin-bottom:12px}.wm-input-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wm-controller-input svg{height:70px;width:86px}.wm-input-label{font-size:.875rem}.wm-input-number{font-size:.875rem}.wm-guide-dialog{box-sizing:border-box;width:calc(100% - 8px);max-width:none;max-height:calc(100dvh - 8px);padding:8px}.wm-guide-dialog .wm-guide-viewport{max-height:55dvh}.wm-guide-dialog .wm-guide-controls>button{min-height:44px;font-size:.875rem}.wm-guide-dialog .wm-guide-options label{font-size:.875rem}.wm-guide-dialog .wm-guide-options input[type=number]{min-height:44px}.wm-full-confirmation{font-size:clamp(1.35rem,7vw,2.2rem)}
  #wm-standings-card .wm-table-wrap{overflow:visible}#wm-standings-card table,#wm-standings-card tbody{display:block}#wm-standings-card thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#wm-standings-card tr{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:0 8px;margin:8px 0;border:1px solid var(--rule);padding:8px}#wm-standings-card td{padding:4px 0;border:0;font-size:1rem;min-width:0;overflow-wrap:anywhere}#wm-standings-card td:first-child{border-left:0;color:var(--yellow);font-weight:bold}#wm-standings-card td:nth-child(4){grid-column:2/-1;font-size:.875rem;color:var(--muted)}#wm-standings-card td:nth-child(3){text-align:right}#wm-standings-card td:nth-child(3)::before{content:attr(data-label);display:block;font-size:.75rem;color:var(--muted)}#wm-standings-card .wm-own-row{border-left:3px solid var(--green)}
}
@media(max-width:359px){.wm-code-keyboard-row{gap:3px}.wm-code-keyboard-row button{flex-basis:calc((100% - 27px)/10);font-size:1rem}}
@media(max-width:700px), (max-width:950px) and (max-height:500px) and (orientation:landscape){
  .wm-room-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:6px 0;margin-bottom:8px}.wm-room-bar>div:first-child{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0}.wm-room-bar>div:nth-child(2){grid-column:1/-1;grid-row:2}.wm-room-bar #wm-room-kind{display:none}.wm-room-bar #wm-code{display:inline-block;font-size:1.25rem;letter-spacing:.07em;white-space:nowrap}.wm-room-bar #wm-room-link{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;white-space:nowrap}.wm-room-bar #wm-leave{grid-column:2;grid-row:1;width:auto;justify-self:end;min-height:44px;padding:6px 8px}.wm-steps{margin-bottom:8px;gap:4px}.wm-steps li{padding:4px 3px}
  body[data-wm-task]:not([data-wm-task=browse]):not([data-wm-task=join]) #wm-room-page-code{display:none}
  .wm-guide-dialog .wm-guide-controls{display:flex;flex-wrap:wrap;gap:6px}.wm-guide-dialog .wm-guide-controls>button{width:auto;flex:1 1 28%;min-height:44px;padding:7px 6px}.wm-guide-dialog .wm-compare-instruction{display:none}.wm-guide-dialog .wm-guide-viewport{max-height:none;min-height:0;flex:1}.wm-guide-dialog [data-guide=pass]{font-size:.875rem}.wm-guide-dialog [data-guide=estimate]{font-size:.875rem;line-height:1.35;margin:3px 0 6px}.wm-guide-dialog .wm-guide-display-options{margin:4px 0;padding:2px 8px}.wm-guide-dialog .wm-guide-display-options>summary{min-height:40px}.wm-guide-dialog .wm-focus-host{gap:6px}.wm-guide-dialog .wm-guide-controls [data-guide=exit-focus]{flex:1 1 20%}
}
/* A rotated phone keeps its compact shell and a complete, readable input row. */
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){
  .wm-guide-dialog{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);margin:4px;padding:8px}
  .wm-guide-dialog .wm-focus-host{gap:4px}
  .wm-guide-dialog .wm-guide-controls{flex-wrap:wrap;align-items:center;gap:4px}
  .wm-guide-dialog .wm-guide-controls>button{flex:0 1 auto;min-width:80px;min-height:44px;padding:6px 10px;font-size:.875rem}
  .wm-guide-dialog .wm-guide-controls [data-guide=exit-focus]{flex:0 1 auto;margin-left:auto}
  .wm-guide-dialog [data-guide=reader]{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(160px,1fr);gap:3px 8px;min-height:0}
  .wm-guide-dialog [data-guide=pass]{grid-column:1;grid-row:1;align-self:center;margin:0!important}
  .wm-guide-dialog [data-guide=estimate]{grid-column:1;grid-row:2;margin:0!important;line-height:1.3}
  .wm-guide-dialog .wm-guide-display-options{grid-column:2;grid-row:1/span 2;align-self:start;margin:0;padding:0 8px}
  .wm-guide-dialog .wm-guide-display-options>summary{min-height:44px}
  .wm-guide-dialog .wm-guide-display-options[open]{position:absolute;top:0;right:0;z-index:3;width:min(420px,100%);max-height:calc(100dvh - 80px);overflow:auto;background:var(--panel);border:2px solid var(--green);padding:0 10px 8px}
  .wm-guide-dialog .wm-guide-viewport{grid-column:1/-1;grid-row:3;align-self:stretch;min-height:160px;max-height:none;padding:8px}
  .wm-guide-dialog .wm-input-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-width:760px}
  .wm-guide-dialog .wm-controller-input svg{height:70px;width:86px}
  .wm-guide-dialog .wm-guide-group{padding:8px;margin-bottom:10px}
}

/* Joined matches are dedicated task screens on desktop and phones. */
body[data-wm-in-match=true]{margin:0;padding:0;background:var(--navy)}
body[data-wm-in-match=true] .site-header,body[data-wm-in-match=true] .site-footer,body[data-wm-in-match=true] .pixel-frame,body[data-wm-in-match=true] .scene,body[data-wm-in-match=true] .wm-page-status,body[data-wm-in-match=true] #wm-message{display:none!important}
body[data-wm-in-match=true]:not([data-wm-screen=loading]) .wm-toolbar{display:none}
body[data-wm-in-match=true] .site-frame{--frame-side:0px;--frame-top:0px;--frame-bottom:0px;width:100%;max-width:none;min-height:100svh;margin:0;border:0;border-image:none;padding:0;background:var(--navy);box-shadow:none}
body[data-wm-in-match=true] #main{padding:0;margin:0}
body[data-wm-in-match=true] .wm-page{width:min(840px,100%);max-width:none;padding:12px;margin:0 auto;border:0;background:transparent}
body[data-wm-in-match=true] #wm-room,body[data-wm-in-match=true] #wm-lobby-stage,body[data-wm-in-match=true] #wm-results-stage{display:block}
body[data-wm-in-match=true] #wm-room[hidden],body[data-wm-in-match=true] #wm-lobby-stage[hidden],body[data-wm-in-match=true] #wm-results-stage[hidden]{display:none}
.wm-match-topbar{display:flex;justify-content:flex-end;min-height:44px;margin-bottom:12px}.wm-match-options{position:relative;z-index:4;font-size:.875rem}.wm-match-options>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid var(--rule);background:var(--panel);cursor:pointer}.wm-match-options[open]>#wm-match-options-content{position:absolute;right:0;top:100%;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 80px);overflow:auto;padding:16px;border:1px solid var(--rule);background:var(--inset);box-shadow:0 12px 35px #0009}.wm-match-options .wm-room-bar{margin:0 0 12px;padding:0 0 12px}#wm-match-options-content>details{margin-top:16px}.wm-match-options summary:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.wm-sound-volume{margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--rule)}.wm-sound-volume>label{display:flex;justify-content:space-between;gap:12px;margin:0 0 8px}.wm-sound-volume output{color:var(--muted)}.wm-sound-volume-controls{display:flex;align-items:center;gap:12px}.wm-sound-volume-controls input[type=range]{flex:1;min-width:0;width:100%;min-height:44px;margin:0;padding:0;accent-color:var(--yellow)}.wm-page .wm-sound-volume-controls button{width:auto;flex-shrink:0;white-space:nowrap}
body[data-wm-screen=entry] #wm-result-panel,body[data-wm-screen=pending] #wm-result-panel{margin:0;border-top:0;padding:24px}body[data-wm-screen=entry] #wm-result-heading{font-size:clamp(1.5rem,4vw,2.2rem)}body[data-wm-screen=entry] #wm-result-prompt{font-size:1rem}body[data-wm-in-match=true] #wm-code-help{font-size:.875rem}
@media(max-width:700px), (max-width:950px) and (max-height:500px) and (orientation:landscape){body[data-wm-in-match=true] .wm-page{padding:8px}.wm-match-topbar{margin-bottom:8px}body[data-wm-screen=entry] #wm-result-panel,body[data-wm-screen=pending] #wm-result-panel{padding:12px 8px}}

/* The match owns one readable task on desktop and phone. */
.wm-match-screen{padding:24px;background:var(--inset);border:1px solid var(--rule);min-width:0}
.wm-match-screen[hidden]{display:none}.wm-page .wm-screen-title{font-size:clamp(1.7rem,5vw,2.5rem);line-height:1.2;margin:0 0 16px;overflow-wrap:anywhere}
.wm-screen-note{color:var(--muted);font-size:1rem}.wm-screen-body{min-width:0}.wm-screen-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.wm-screen-actions button{min-height:48px}
.wm-level-results{list-style:none;margin:0;padding:0}.wm-level-results li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:16px 12px;border-bottom:1px solid var(--rule);overflow-wrap:anywhere}.wm-level-results li>span:nth-of-type(2),.wm-level-results li>small{grid-column:2;text-align:right}.wm-level-results small{color:var(--muted)}
.wm-match-screen .wm-own-row{background:rgba(88,202,157,.08);border-left:3px solid var(--green)}.wm-match-screen .wm-own-row td:first-child{border-left:0}.wm-match-screen table{table-layout:fixed}.wm-match-screen th:first-child{width:12%}.wm-match-screen td{overflow-wrap:anywhere;vertical-align:top}
.wm-winner-screen{text-align:center;padding-block:clamp(48px,12vh,100px)}.wm-winner-screen .wm-screen-title{color:var(--yellow);font-size:clamp(2rem,7vw,3.5rem)}.wm-winner-screen .wm-screen-actions{justify-content:center}
body[data-wm-in-match=true] #wm-round-stage{margin:0}body[data-wm-in-match=true] #wm-result-code-help{font-size:.875rem}
@media(max-width:700px), (max-width:950px) and (max-height:500px) and (orientation:landscape){
 .wm-match-screen{padding:18px 10px}.wm-screen-actions{gap:8px;margin-top:18px}.wm-screen-actions button{flex:1 1 auto}.wm-level-results li{padding:12px 8px;gap:6px 8px}.wm-level-results li>strong{min-width:0}
 .wm-match-screen table,.wm-match-screen tbody{display:block}.wm-match-screen thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.wm-match-screen tr{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:0 8px;margin:8px 0;border:1px solid var(--rule);padding:8px}.wm-match-screen td{padding:4px 0;border:0;font-size:1rem;min-width:0}.wm-match-screen td:first-child{color:var(--yellow);font-weight:bold}.wm-match-screen td:nth-child(4){grid-column:2/-1;font-size:.875rem;color:var(--muted)}.wm-match-screen td:nth-child(3){text-align:right}.wm-match-screen td:nth-child(3)::before{content:attr(data-label);display:block;font-size:.75rem;color:var(--muted)}
}

#wm-dnf-option{margin-bottom:16px}.wm-code-help{margin-top:16px}.wm-code-help>summary{min-height:44px;cursor:pointer}.wm-code-help p{margin-top:12px}

/* Focus entry reserves the screen for controls, with one compact toolbar. */
.wm-guide-dialog{box-sizing:border-box;inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:8px}
.wm-guide-dialog .wm-focus-host{gap:6px}
.wm-guide-dialog .wm-guide-controls{position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-height:44px}
.wm-guide-dialog .wm-guide-controls>button{flex:0 0 auto;width:auto;min-height:44px;padding:6px 12px;font-size:.875rem}
.wm-guide-dialog .wm-guide-controls [data-guide=exit-focus]{margin-left:auto;flex:0 0 auto}
.wm-guide-dialog .wm-guide-controls [data-guide=options],.wm-guide-dialog [data-guide=pass],.wm-guide-dialog [data-guide=estimate],.wm-guide-dialog [data-guide=notice]:empty{display:none}
.wm-guide-dialog [data-guide=reader]{display:flex;flex-direction:column;flex:1;min-height:0}
.wm-guide-dialog .wm-guide-viewport{flex:1;min-height:0;max-height:none;padding:4px;overflow:auto}
.wm-guide-dialog .wm-guide-block{margin:0}
.wm-guide-dialog .wm-guide-display-options{position:static;flex:none;margin:0;padding:0;border:0}
.wm-guide-dialog .wm-guide-display-options>summary{min-height:44px;padding:6px 10px;display:flex;align-items:center;font-size:.875rem}
.wm-guide-dialog .wm-guide-display-options[open]{position:absolute;top:48px;right:0;z-index:5;width:min(420px,100%);max-height:calc(100dvh - 70px);overflow:auto;background:var(--panel);border:2px solid var(--green);padding:8px}
.wm-guide-viewport{--wm-input-columns:4;--wm-sheet-width:484px}
.wm-guide-viewport[data-input-columns="1"]{--wm-input-columns:1;--wm-sheet-width:112px}
.wm-guide-viewport[data-input-columns="2"]{--wm-input-columns:2;--wm-sheet-width:236px}
.wm-guide-viewport[data-input-columns="3"]{--wm-input-columns:3;--wm-sheet-width:360px}
.wm-guide-viewport[data-input-columns="5"]{--wm-input-columns:5;--wm-sheet-width:608px}
.wm-guide-viewport[data-input-columns="6"]{--wm-input-columns:6;--wm-sheet-width:732px}
.wm-guide-viewport[data-input-columns="7"]{--wm-input-columns:7;--wm-sheet-width:856px}
.wm-guide-viewport[data-input-columns="8"]{--wm-input-columns:8;--wm-sheet-width:980px}
.wm-guide-sheet{columns:3 var(--wm-sheet-width);column-gap:72px;column-rule:2px solid #587487;max-width:calc(3 * var(--wm-sheet-width) + 144px);margin-inline:auto}
.wm-guide-sheet .wm-input-row,.wm-guide-dialog .wm-guide-sheet .wm-input-row{grid-template-columns:repeat(var(--wm-input-columns),minmax(0,112px));max-width:var(--wm-sheet-width);gap:12px;justify-content:center;break-inside:avoid;margin:0 auto 12px}
.wm-guide-viewport[data-layout=single] .wm-guide-sheet{column-count:1;max-width:var(--wm-sheet-width)}
@media(max-width:500px){.wm-guide-dialog .wm-guide-controls{gap:4px}.wm-guide-dialog .wm-guide-controls>button{padding:6px 8px}.wm-guide-dialog .wm-guide-controls [data-guide=pause]{font-size:.75rem}.wm-guide-dialog .wm-input-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}

.wm-guide-dialog .wm-input-label{font-size:.75rem;line-height:1.2;white-space:nowrap}
@media(max-width:700px){.wm-guide-sheet,.wm-guide-viewport[data-layout=single] .wm-guide-sheet{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:center;gap:6px;max-width:484px;columns:auto;column-rule:0}.wm-guide-sheet .wm-input-row,.wm-guide-dialog .wm-guide-sheet .wm-input-row{display:contents}.wm-guide-sheet .wm-controller-input svg{max-width:100%}}
@media(max-width:359px){.wm-guide-sheet,.wm-guide-viewport[data-layout=single] .wm-guide-sheet{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:360px){.wm-guide-dialog .wm-guide-controls{flex-wrap:wrap}.wm-guide-dialog .wm-guide-controls [data-guide=exit-focus]{margin-left:0}}


.wm-level-results-table th:first-child{width:36%}.wm-level-results-table td:last-child{text-align:right}.wm-level-results-table small{display:block;font-size:.8rem;color:var(--muted);margin-top:4px}
@media(max-width:700px), (max-width:950px) and (max-height:500px) and (orientation:landscape){.wm-match-screen .wm-level-results-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.wm-match-screen .wm-level-results-table td:first-child{color:var(--paper)}.wm-match-screen .wm-level-results-table td:nth-child(3)::before{display:none}}

/* Reading preferences stay folded above the full-width guide. */
body[data-route="/web-match/"]:has(.wm-guide-dialog[open]){overflow:hidden}
.wm-guide-dialog .wm-focus-host{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px auto minmax(0,1fr);gap:6px}
.wm-guide-dialog .wm-guide-controls{grid-column:1/-1;grid-row:1;margin:0}
.wm-guide-dialog [data-guide=reader]{grid-column:1;grid-row:3;min-width:0}
.wm-guide-dialog [data-guide=comparison]{grid-column:1;grid-row:2/-1;overflow:auto;min-height:0}
.wm-guide-dialog [data-guide=notice]{grid-column:1;grid-row:3;align-self:end;z-index:1;font-size:.8rem}
.wm-scroll-panel{position:relative;display:flex;align-items:center;gap:16px;padding:0;min-width:0;font-size:.875rem}
.wm-guide-dialog .wm-scroll-panel{grid-column:1;grid-row:2}
.wm-scroll-panel label{display:block;margin:0 0 12px;font-size:.875rem}.wm-scroll-panel select,.wm-scroll-panel input{display:block;width:100%;max-width:100%;min-height:44px;margin-top:6px}
.wm-scroll-panel button{min-height:44px;margin:0;padding:8px 12px;font-size:.875rem}
.wm-scroll-panel button[data-guide=pause]{width:auto;justify-self:start;padding:4px 8px;font-size:.75rem}
.wm-guide-end{padding:16px 0 8px;text-align:center}
.wm-scroll-panel [data-guide=scroll-status]{line-height:1.5;margin:0;color:var(--yellow);font-variant-numeric:tabular-nums}
.wm-scroll-panel output{display:block;margin:-8px 0 12px;color:var(--muted)}
.wm-scroll-settings{margin-left:auto;border:0;flex:none}
.wm-scroll-settings>summary{min-height:44px;font-size:.875rem;padding:6px 10px;gap:8px}
.wm-scroll-settings>.wm-scroll-settings-body{box-sizing:border-box;position:absolute;right:0;top:100%;z-index:5;width:280px;max-width:100%;max-height:calc(100dvh - 140px);overflow:auto;padding:12px;border:1px solid var(--rule);background:var(--panel);box-shadow:0 12px 35px #0009}
.wm-scroll-settings:not([open])>.wm-scroll-settings-body{display:none}
.wm-scroll-settings[open]>.wm-scroll-settings-body{padding-top:8px}
.wm-scroll-panel label>output{display:inline;margin:0 0 0 6px;color:var(--paper)}
.wm-go{margin:8px 0 18px;padding:12px 20px;border:3px solid #9af5bc;background:#12472f;color:#c0ffd3;font-size:clamp(4rem,18vw,7rem);font-weight:900;line-height:1;text-align:center;letter-spacing:.06em;box-shadow:0 0 0 4px #12472f}
#wm-entry{grid-template-columns:minmax(0,1fr)}
.wm-create-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:32px;align-items:start}
#wm-create-panel>h2{color:var(--yellow)}
.wm-manage-library{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;padding:4px 0 12px;font-size:.875rem}
.wm-manage-library span{color:var(--muted);font-size:.8rem}
.wm-page #wm-customise-room{width:auto;min-height:48px;border-color:var(--yellow);color:var(--yellow)}
.wm-create-fields{min-width:0}.wm-page .wm-create-fields>label:first-child{margin-top:0}
.wm-field-hint{display:block;color:var(--muted);font-size:.8rem;font-weight:400;margin-top:3px}
.wm-page #wm-create-name{box-sizing:border-box;width:9ch;font-weight:700;font-size:1.1rem;letter-spacing:.1em}
.wm-page .wm-create-fields .wm-preset-picker-trigger{width:100%;max-width:300px}
.wm-page .wm-preset-preview a.wm-link-button{display:inline-flex;align-items:center;width:auto;min-height:44px;padding:9px 14px;margin:0;font-size:.875rem}
.wm-subtle-link{color:var(--sky);font-size:.8rem;padding-block:6px}
.wm-preset-preview{min-width:0;padding:20px 24px;border:1px solid var(--rule);background:var(--panel)}
.wm-preset-customize{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.wm-preset-customize a{max-width:100%;white-space:normal}
.wm-page .wm-preset-preview .wm-eyebrow{color:var(--muted);font-size:.7rem;margin:0 0 6px;letter-spacing:.06em}
.wm-page .wm-preset-preview h3{color:var(--yellow);font-size:1.35rem;overflow-wrap:anywhere;margin:0 0 18px}
.wm-preset-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0 0 22px}
.wm-preset-facts dt{color:var(--muted);font-size:.75rem;margin-bottom:5px}.wm-preset-facts dd{color:var(--paper);font-size:.875rem;font-weight:700;margin:0;line-height:1.5;overflow-wrap:anywhere}
.wm-create-footer{display:flex;align-items:center;gap:24px;flex-wrap:wrap;border-top:1px solid var(--rule);padding-top:24px;margin-top:28px}
.wm-page #wm-create-room{width:auto;min-width:220px;max-width:100%;min-height:58px;padding:14px 24px;font-size:1.1rem}
.wm-page .wm-create-footer .wm-note{flex:1 1 200px;margin:0;font-size:.8rem}
@media(max-width:760px){.wm-create-layout{grid-template-columns:minmax(0,1fr);gap:24px}.wm-preset-preview{padding:18px}.wm-create-footer{gap:14px;margin-top:22px}.wm-page #wm-create-room{width:100%}}
@media(max-width:380px){.wm-preset-facts{grid-template-columns:minmax(0,1fr);gap:12px}.wm-preset-preview{padding:16px}}
.wm-reuse-setup{padding:24px;max-width:680px;margin:16px auto;border:2px solid var(--sky);background:#143a3d;text-align:center}.wm-reuse-setup p{line-height:1.6}.wm-reuse-setup button{display:block;width:100%;min-height:48px;margin:16px 0}
.wm-waiting-instruction{padding:clamp(24px,5vw,48px) 20px;margin:0 0 28px;text-align:center;border:2px solid var(--rule);border-top-color:var(--yellow);background:var(--inset);color:var(--paper)}
.wm-waiting-instruction:not([hidden])~#wm-players-heading{display:none}
.wm-page .wm-waiting-instruction h2{color:var(--yellow);font-size:clamp(1.6rem,4vw,2.4rem);line-height:1.3;margin:0 0 16px}.wm-waiting-instruction p{max-width:600px;margin:0 auto;line-height:1.6}
body[data-wm-screen=ready] #wm-round-stage{text-align:center;padding:clamp(24px,5vw,48px);border:2px solid var(--rule);border-top-color:var(--yellow);background:var(--inset);color:var(--paper)}
body[data-wm-screen=ready] #wm-phase{color:var(--muted)}
body[data-wm-screen=ready] #wm-clock{color:var(--yellow);font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.25}
body[data-wm-screen=ready] #wm-round-note{font-size:clamp(1rem,2vw,1.25rem);line-height:1.6;max-width:620px;margin:20px auto}
body[data-wm-screen=ready] #wm-round-stage .wm-actions{justify-content:center}
.wm-page .wm-ready-action,body[data-wm-screen=preview] .wm-match-screen .wm-screen-actions button{min-height:52px;padding:12px 28px;background:var(--panel);border:2px solid var(--yellow);color:var(--yellow)}
.wm-recovery{width:min(100%,640px);margin-inline:auto;text-align:left;min-width:0}
.wm-section-option{margin-top:20px}
.wm-recovery h2{margin-top:0}.wm-block-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:20px 0}
.wm-block-choices button,.wm-recovery [data-guide=multiple]{min-height:48px}
.wm-page .wm-recovery .wm-check{display:flex;align-items:center;gap:12px;margin:0;min-height:44px;line-height:1.5}
.wm-recovery .wm-check span{min-width:0}.wm-recovery .wm-check input{width:20px;height:20px;margin:0;flex:0 0 20px}
.wm-recovery .wm-repair-block{padding:12px 16px}.wm-recovery .wm-repair-block>div{border-top:1px solid var(--rule);margin-top:8px;padding-top:8px}
.wm-recovery details{margin-top:8px}.wm-recovery .wm-quarter-compare input[type=text]{min-width:0;width:100%}
.wm-guide-dialog .wm-comparison:has(.wm-recovery:not([hidden])){display:block}
.wm-guide-dialog .wm-scroll-panel .wm-guide-display-options[open]{position:static;width:auto;max-height:none;padding:0;border:0}
/* On phones, keep the guide full-width and fold settings above it. */
@media(max-width:700px){
  .wm-guide-dialog{padding:4px}
  .wm-guide-dialog .wm-focus-host{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:4px}
  .wm-guide-dialog .wm-guide-controls{grid-column:1;grid-row:1}
  .wm-guide-dialog .wm-scroll-panel{grid-column:1;grid-row:2}
  .wm-guide-dialog [data-guide=reader]{grid-column:1;grid-row:3}
  .wm-guide-dialog [data-guide=comparison]{grid-column:1;grid-row:2/-1}
  .wm-guide-dialog [data-guide=notice]{grid-column:1;grid-row:3;align-self:end}
  .wm-scroll-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 8px;padding:0 4px;border-left:0;overflow:visible}
  .wm-scroll-panel [data-guide=pause]{grid-column:1;grid-row:1;align-self:start;z-index:1;width:100%;margin:0;font-size:.8rem}
  .wm-scroll-panel [data-guide=scroll-status]{grid-column:1/-1;grid-row:2;min-height:0;margin:2px 0;font-size:.75rem}
  .wm-scroll-settings{display:block;grid-column:1/-1;grid-row:1;border:0;margin-left:0}
  .wm-scroll-settings>summary{box-sizing:border-box;width:calc(50% - 4px);margin-left:auto;padding:6px 10px;border:1px solid var(--rule);background:var(--panel)}
  .wm-scroll-settings>.wm-scroll-settings-body{position:static;width:auto;max-width:none;max-height:35dvh;overflow:auto;padding:8px 4px;border:0;border-bottom:1px solid var(--rule);box-shadow:none}
  .wm-scroll-settings:not([open])>.wm-scroll-settings-body{display:none}
  .wm-scroll-panel label{font-size:.875rem;margin-bottom:4px}
  .wm-scroll-panel label:has([data-guide=layout]){display:none}
  .wm-scroll-panel .wm-guide-display-options>summary{padding:4px!important}
  .wm-guide-dialog .wm-guide-viewport{padding:2px}
  .wm-guide-sheet .wm-controller-input{padding-inline:2px}
  .wm-guide-sheet .wm-controller-input svg{height:60px}
  .wm-guide-sheet .wm-input-label{min-height:2.4em;font-size:.75rem;line-height:1.2;white-space:normal;overflow-wrap:anywhere;text-align:center}
}
.wm-forfeit-dialog{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:2px solid #d49a65;border-radius:12px;background:#10213b;color:#f4f6ff;box-shadow:0 16px 70px #0009}
.wm-forfeit-dialog::backdrop{background:#030a18bf}
.wm-forfeit-dialog h2{margin-top:0;color:#ffd46b;font-size:1.65rem}
.wm-forfeit-dialog p{line-height:1.55}
.wm-forfeit-dialog .wm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.wm-page .wm-danger{background:#9c283d;border-color:#ee8595;color:#fff}
.wm-page .wm-danger:hover:not(:disabled){background:#bd354d}
.wm-page .wm-forfeit-link{margin-top:16px;font-size:.875rem}
#wm-forfeit-error{color:#ffb6bf}
/* The result field and keyboard take over once the opening GO cue has settled. */
body[data-wm-in-match=true] .wm-match-topbar{position:sticky;top:0;z-index:8;background:var(--navy);margin:0;padding:4px 0;min-height:44px}
#wm-go-preview-disclosure>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--sky);font-size:.875rem}
#wm-result-code{caret-color:var(--yellow)}
#wm-result-code:focus{outline:3px solid var(--yellow);outline-offset:2px}
#wm-result-code[aria-invalid=true]{border-color:var(--red)}
#wm-result-form{display:flex;flex-direction:column}
#wm-result-code-label{order:0}#wm-result-code{order:1}#wm-result-preview{order:2}#wm-result-form>#wm-alert{order:2}#wm-result-keypad{order:3}#wm-code-format{order:5}#wm-draft-note{display:none}#wm-result-form>.wm-code-help{order:6}
#wm-result-preview{margin:6px 0;font-size:.875rem}#wm-result-form>#wm-alert{margin:6px 0}
body[data-wm-entry-focused=true] #wm-result-panel{display:flex;flex-direction:column;gap:0}
body[data-wm-entry-focused=true] #wm-result-round,body[data-wm-entry-focused=true] #wm-result-go,body[data-wm-entry-focused=true] #wm-result-prompt{display:none}
body[data-wm-entry-focused=true] #wm-result-heading{order:0;font-size:1.15rem;margin:0 0 8px}
body[data-wm-entry-focused=true] #wm-result-form{order:1}
body[data-wm-entry-focused=true] #wm-dnf-option{order:2;margin:12px 0 0}
body[data-wm-entry-focused=true] #wm-go-preview-disclosure{order:3}
body[data-wm-entry-focused=true] #wm-code-format{display:none}
body[data-wm-entry-focused=true] #wm-result-code-label{font-size:.875rem;margin:0 0 6px}
body[data-wm-entry-focused=true] #wm-result-code{font-size:1.5rem;min-height:48px}
.wm-match-status{align-self:center;flex:1;min-width:0;font-size:.75rem;color:var(--yellow);padding-right:8px;font-variant-numeric:tabular-nums}.wm-match-topbar{gap:8px}.wm-match-status:empty{display:none}
.wm-match-topbar{flex-wrap:wrap}
.wm-connection-notice{box-sizing:border-box;min-width:0;flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px;border:1px solid var(--yellow);background:var(--inset)}
.wm-connection-notice p{flex:1 1 220px;min-width:0;margin:0!important;font-size:.875rem;line-height:1.4}
.wm-connection-notice button{flex:0 0 auto;width:auto}
.wm-completed-results>details{border-top:1px solid var(--rule);padding-left:10px}
.wm-completed-results summary{min-height:44px;font-size:.875rem;color:var(--sky)}
#wm-match-options-content .wm-profile-thumbnail{display:none}
.wm-page h2,.wm-page .wm-preset-picker-head h2,.wm-page .wm-forfeit-dialog h2{color:var(--yellow)}
#wm-preset-note:empty{display:none}
.wm-page .wm-preset-choice small{display:block;font-size:.75rem;font-weight:normal;margin-top:4px;line-height:1.5}
.wm-manage-library a{margin-left:auto}
#wm-create-panel>.wm-heading{flex-wrap:nowrap;align-items:center}
#wm-create-panel>.wm-heading h2{min-width:0;margin:0}
.wm-page .wm-create-help{flex:0 0 44px;width:44px;height:44px;margin:0;min-width:44px;padding:8px;color:var(--yellow)}

.wm-directory-players-label{color:var(--yellow)}.wm-directory-player-name{color:var(--blue)}.wm-directory-player-kind{color:var(--paper)}

/* Host deadlines stay visible even if they begin while the player is scrolled down. */
.wm-host-limit-popup{box-sizing:border-box;width:min(800px,calc(100% - 16px));min-width:0;margin:0;padding:10px 14px;border:2px solid var(--yellow);border-radius:8px;background:#19364b;color:var(--paper);box-shadow:0 6px 24px #0009}
.wm-host-limit-popup[hidden]{display:none}
.wm-page .wm-host-limit-popup h2{margin:0 0 4px;font-size:1.25rem;line-height:1.3;color:var(--yellow);font-variant-numeric:tabular-nums}
.wm-page .wm-host-limit-popup p{margin:0;font-size:.875rem;line-height:1.4;max-height:22dvh;overflow:auto;overflow-wrap:anywhere}
#wm-host-limit{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:30}
#wm-room{padding-top:calc(var(--wm-host-limit-space,0px) + env(safe-area-inset-top,0px))}
body[data-wm-in-match=true] .wm-match-topbar{top:calc(var(--wm-host-limit-space,0px) + env(safe-area-inset-top,0px))}
html:has(.wm-page){scroll-padding-top:calc(var(--wm-host-limit-space,0px) + 60px)}
/* A modal lives above the page's stacking order. Give its warning its own row
   so the guide's controls and scrolling inputs keep the remaining screen. */
.wm-guide-dialog[open]:has(>#wm-host-limit-focus:not([hidden])){grid-template-rows:auto minmax(0,1fr);overflow:hidden;padding-top:calc(8px + env(safe-area-inset-top,0px))}
#wm-host-limit-focus{grid-row:1;justify-self:center;width:min(800px,100%)}
.wm-guide-dialog:has(>#wm-host-limit-focus:not([hidden])) .wm-focus-host{grid-row:2;overflow:hidden}

/* Keep the round-level escape action beside Match options, above the keypad. */
.wm-page .wm-match-topbar>#wm-dnf-start{flex:0 0 auto;width:auto;margin:0 auto 0 0;padding:8px 10px;font-size:.875rem;min-height:44px;white-space:nowrap;border-color:var(--yellow);color:var(--yellow)}
@media(max-width:380px){
  .wm-match-topbar:has(>#wm-dnf-start:not([hidden])) .wm-match-options>summary{font-size:.75rem;padding:8px;gap:4px}
  .wm-match-topbar:has(>#wm-dnf-start:not([hidden])) .wm-match-options>summary>.toggle{display:none}
}
