header nav{display:flex;gap:14px}.study-head,.block-title,.board-top,.transport,.study-actions{display:flex;align-items:center;gap:9px}.study-head,.block-title{justify-content:space-between}.study-head h1{margin-bottom:2px}.study-head p,#engine-info,#branch-info,#node-count,#move-number,#save-status{color:#bdcfbb}.study-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:start;gap:clamp(12px,3vw,26px)}.study-grid>div{min-width:0}.study-grid aside{padding:0;background:none;border:0}.study-grid aside>section,.study-actions,dialog{background:#1f3327;border:1px solid #455f49;border-radius:12px;padding:14px;margin:0 0 12px}.study-grid h2,dialog h2{font-size:28px;margin:0}.block-title button{margin:0}.board-top{margin-bottom:7px}.board-top strong{flex:1}.board-top button,.transport button,.study-grid aside button{font-size:14px;min-height:36px;margin:0;padding:6px 10px}.transport{justify-content:center;padding:9px 0}.transport span{flex:1;text-align:center}.transport button{min-width:38px}.study-grid #board-scroll{border:2px solid #62705e}.study-grid #board .check{background:#d69b81}.study-grid #board .last{box-shadow:inset 0 0 0 3px #b48f44}.study-grid #board .selected{box-shadow:inset 0 0 0 4px #eab141}.study-grid #board .possible:after{content:'';position:absolute;width:22%;height:22%;border-radius:100%;background:#355c4480}.study-grid #board small{font-weight:600}.study-grid #move-form{display:flex;align-items:end;gap:8px}.study-grid #move-form label,.study-grid #move-form button{margin:0}.study-grid #message{color:#efdaa6}.study-actions{flex-wrap:wrap}.study-actions small{width:100%}.study-actions input{width:100%}#engine-lines{display:grid;gap:5px}#engine-lines button{text-align:left;display:flex;align-items:baseline;gap:9px;min-height:40px}#engine-lines b{min-width:3.2em;color:#e0eebc}#engine-lines span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#engine-quality{margin:10px 0 0;font-size:13px}#engine-quality select{max-width:155px;font:inherit}.study-grid label{font-size:14px}#line-nav,#branches{display:flex;gap:4px;flex-wrap:wrap;max-height:190px;overflow:auto;margin:9px 0}#line-nav button[aria-current=step],#branches button:first-child,#engine-toggle[aria-pressed=true]{background:#cde1b0;color:#203320}#note{resize:vertical;width:100%}.study-grid #promote{margin-bottom:9px}dialog{color:#f4efdf;width:min(95vw,580px);max-height:89dvh;overflow:auto;margin:auto}dialog::backdrop{background:#0c1712c9}dialog form{display:grid;gap:9px}dialog label{margin:0}dialog textarea{width:100%}#saved-studies{display:grid;gap:5px}#saved-studies button{text-align:left}#import-error{color:#f1cc99}.study-actions a{font-size:14px}.study-grid [data-square]:focus-visible{outline:3px solid #182b20;outline-offset:-4px}
@media(max-width:720px){.study-grid{grid-template-columns:1fr}.study-head{align-items:start}.study-head h1{font-size:36px}.study-head p{font-size:14px;margin:7px 0}.study-head>button{white-space:nowrap;font-size:13px}.study-grid aside>section{padding:12px}.study-grid #board-scroll{max-width:min(100%,64dvh);margin:auto}.study-grid #board small{font-size:8px}header nav{gap:8px;font-size:13px}.study-grid #move-form{margin-bottom:4px}}
#spar-info{margin:8px 0;color:#c5d3c1;font-size:15px}.sparring #spar-sides button{min-width:100px;margin-right:6px}#spar-white{background:#e6e9d7;color:#223427}#spar-black{background:#131d18;color:#f4f2df}.study-grid [hidden]{display:none!important}
#extra-turn{margin:5px 0;color:#d5dfbc;font-size:14px}.study-grid #board .void-square{background:#17261c}.study-grid #board .void-square small{display:none}.study-grid #board .second-layer{border-top:3px solid #eeb557}.study-grid #board em{position:absolute;bottom:1px;right:1px;background:#203128;color:white;padding:0 2px;border-radius:2px;font:600 10px system-ui}.study-grid #board button>span[aria-hidden]{color:#274559;font-size:22px}

.saved-study-row{display:grid;grid-template-columns:1fr auto;align-items:stretch;gap:6px}.saved-study-row button{margin:0}#name-dialog{max-width:415px}#name-dialog input{width:100%}
#study-examples{display:flex;flex-wrap:wrap;gap:5px}#study-examples button{margin:0}
