/* Controls stay beside the pitch, with the less frequent options in one drawer. */
.court-console{position:sticky;top:0;z-index:30;margin:0 0 8px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 15px #0624470c}.court-console-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.court-console button,.court-drawer summary{min-height:40px;padding:8px 10px;font-size:11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);cursor:pointer;white-space:nowrap}.court-console button:focus-visible,.court-drawer summary:focus-visible{outline:3px solid var(--brand-blue);outline-offset:2px}.court-segments,.court-turns,.court-history{display:flex;align-items:center;gap:3px}.court-segments{padding:3px;background:var(--surface-soft);border-radius:10px}.court-segments button{border:0;background:transparent}.court-console button[aria-pressed=true]{background:#087eaf;color:#fff;box-shadow:0 2px 6px #009bd822}.court-turns button{font-size:20px;line-height:1;min-width:40px}.court-turns #courtAngleStatus{font-size:10px;color:var(--muted);min-width:26px;text-align:center}.court-history button{min-width:36px}.court-console button:disabled{opacity:.45;cursor:default}#courtFocus{margin-left:auto}.court-drawer{position:relative}.court-drawer summary{list-style:none;display:flex;align-items:center;gap:4px}.court-drawer summary::-webkit-details-marker{display:none}.court-drawer[open] summary{background:var(--surface-soft);border-color:var(--brand-blue)}.court-drawer-panel{position:absolute;right:0;top:calc(100% + 8px);width:340px;max-width:calc(100vw - 44px);max-height:65vh;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 15px 45px #06244730}.court-drawer-panel>b{font-size:12px}.court-swatches{display:flex;gap:5px;margin:10px 0 14px;flex-wrap:wrap}.court-swatches button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;padding:7px;flex:1}.court-swatches button:before{content:'';width:23px;height:18px;background:var(--swatch);border:1px solid #ffffff70;border-radius:4px}.court-original-settings>.court-settings{display:flex;flex-direction:column;align-items:stretch;border:0;padding:12px 0;gap:12px}.court-original-settings .court-settings label{display:flex;align-items:center;justify-content:space-between;gap:8px}.court-original-settings select{max-width:100%;font-size:12px}.court-original-settings .brand-field-settings{padding:9px 0}.court-original-settings .field-options,.court-original-settings .size-control{flex-wrap:wrap}.court-original-settings .size-control select{width:100%}.court-original-settings .route-picker{flex-wrap:wrap}.court-original-settings #customCourtColors{flex-wrap:wrap}.court-original-settings #customCourtColors[hidden]{display:none}.canvas-area>.field-workbench{padding:8px 10px;margin-bottom:8px}.field-workbench .field-quickbar button{min-height:42px;padding:6px 4px;gap:3px}.field-workbench .action-quickbar{margin:6px 0}.field-workbench .action-quickbar button{min-height:40px;padding:5px 4px!important;gap:2px}.field-workbench .action-quickbar svg{height:17px}.field-workbench>.route-control{padding:3px 0 0}.board-actions .brand-fullscreen,.board-actions .brand-resource-toggle{display:none!important}.court-wrap{margin-top:0}.animation-dock{margin-top:8px;gap:6px}.court-focus aside,.court-focus header,.court-focus #editor>.page-heading,.court-focus #editor>.personal-notice,.court-focus .details-card{display:none!important}.court-focus main{margin:0;padding-bottom:0}.court-focus #editor{padding:10px}.court-focus .editor-layout{display:block}.court-focus .board-card{max-width:1500px;margin:0 auto}.court-focus .court-wrap{max-height:calc(100dvh - 270px)}.court-focus .court-wrap svg{max-height:calc(100dvh - 270px);width:100%}.court-focus .board-top{padding:8px 12px}.court-focus .canvas-area{padding:8px 12px}.court-focus .board-card:has(.court-wrap){overflow:visible}@media(max-width:700px){.court-console-row{gap:5px}.court-console button,.court-drawer summary{font-size:10px;min-height:38px;padding:7px 8px}.court-turns button{font-size:20px;min-width:36px}.court-history{margin-left:auto}#courtFocus{margin-left:0;flex:1}.court-drawer{flex:1}.court-drawer summary{justify-content:center}.court-console .court-segments{flex:1}.court-segments button{flex:1}.court-drawer-panel{position:fixed;top:18vh;right:16px;max-height:65dvh}.field-workbench .field-quickbar button{min-width:44px;font-size:10px}.field-workbench .action-quickbar button{font-size:9px}.court-focus .court-wrap,.court-focus .court-wrap svg{max-height:calc(100dvh - 310px)}.court-focus #editor{padding:4px}.court-focus .canvas-area{padding:6px}.court-focus .board-card{border-radius:10px}}

.court-focus .court-wrap{height:clamp(260px,calc(100dvh - 400px),800px)}@media(max-width:700px){.court-focus .court-wrap{height:clamp(240px,calc(100dvh - 430px),700px)}}
