.position-editor{padding-bottom:44px}.position-editor-heading{margin-bottom:16px}.position-editor-heading h1{color:#31533a;margin:0;font:700 clamp(28px,4vw,42px)/1.05 Cormorant,Georgia,serif}.position-editor-heading p{color:#75664e;margin:8px 0 0;font-size:14px;line-height:1.5}.position-editor-workspace{grid-template-columns:minmax(0,7fr) minmax(0,3fr);align-items:start;gap:20px}.position-editor-workspace:has(>:only-child){grid-template-columns:minmax(0,calc(70% - 14px));justify-content:center}.position-editor-board-column,.position-editor-side-column{align-content:start;gap:14px;min-width:0;display:grid}.position-editor-board-card{padding:14px}.position-editor-board-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;margin-left:auto;display:flex}.position-editor-fen-open{min-height:44px}.position-editor-board-layout{grid-template-columns:minmax(0,1fr);align-items:center;gap:clamp(3px,1vw,8px);display:grid}.position-editor-board-layout.is-editing{grid-template-columns:clamp(38px,7vw,58px) minmax(0,1fr) clamp(38px,7vw,58px)}.position-editor-board-center{width:100%;min-width:0}.position-editor-board{width:min(100%,650px);overflow:visible}.position-editor-cell{z-index:1;aspect-ratio:1;width:9.4%;position:absolute;transform:translate(-50%,-50%)}.position-editor-cell:hover{z-index:7}.position-editor-cell>.position-editor-square{aspect-ratio:auto;touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:relative;inset:auto;transform:none}.position-editor-square:has(.solve-piece){cursor:grab}.position-editor-square:focus-visible{z-index:4;outline-offset:1px;outline:2px solid #785a27}.position-editor-square.is-dragging{z-index:5;opacity:.48;cursor:grabbing}.position-editor-square.is-drop-target:after{content:"";pointer-events:none;background:#49975c40;border:2px solid #35794b;border-radius:50%;position:absolute;inset:2%}.position-editor-square.is-invalid-drop:after{content:"";pointer-events:none;background:#c72d274d;border:2px solid #bd2d27;border-radius:50%;position:absolute;inset:2%}.position-editor-square:not(:has(.solve-piece)):hover:after{content:"";pointer-events:none;background:#315d441a;border:1px solid #315d447a;border-radius:50%;position:absolute;inset:16%}.position-editor-piece-remove{z-index:7;box-sizing:border-box;color:#fff;opacity:0;pointer-events:none;cursor:pointer;background:#b33a32;border:1px solid #fff5dc;border-radius:50%;place-items:center;width:18px;height:18px;padding:0;display:grid;position:absolute;top:15%;right:15%;transform:translate(50%,-50%)}.position-editor-piece-remove svg{display:block;transform:none}.position-editor-cell:hover>.position-editor-piece-remove,.position-editor-piece-remove:focus-visible{opacity:1;pointer-events:auto}.position-editor-count-warning{color:#9c3029;background:#fff0ed;border:1px solid #c84940;border-radius:5px;gap:3px;margin-top:10px;padding:8px 10px;font-size:11px;line-height:1.35;display:grid}.position-editor-count-warning ul{gap:2px;margin:0;padding:0;list-style:none;display:grid}.position-editor-drag-ghost{z-index:10000;filter:drop-shadow(0 3px 4px #23180d6b);pointer-events:none;place-items:center;width:46px;height:46px;display:grid;position:fixed;transform:translate(-50%,-50%)}.position-editor-drag-ghost .solve-piece{width:100%;height:100%;animation:none}.position-editor-drag-ghost.is-invalid{filter:drop-shadow(0 0 3px #c72d27)drop-shadow(0 3px 4px #23180d6b)}.position-editor-drop-warning{z-index:10001;color:#fff8ed;pointer-events:none;background:#aa302a;border:1px solid #f8c5bd;border-radius:5px;max-width:min(280px,100vw - 24px);padding:7px 10px;font-size:11px;line-height:1.35;position:fixed;transform:translate(-50%,12px);box-shadow:0 3px 9px #27140f4d}.position-editor-drag-warning{transform:translate(12px,14px)}.position-editor-actions-card{color:#475239;background:0 0;border:12px solid #0000;border-image:url(/analysis-assets/analysis-panel-wood-paper.png) 170 190 fill/12px;gap:12px;padding:18px;display:grid}.position-editor-card-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.position-editor-card-heading h2,.position-editor-actions-card h2{color:#31533a;margin:3px 0 0;font:700 20px/1.1 Cormorant,Georgia,serif}.position-editor-actions-card>p{color:#75664e;margin:-3px 0 0;font-size:12px;line-height:1.45}.position-editor-piece-flank{grid-template-rows:repeat(7,minmax(0,1fr));align-self:stretch;gap:2px;min-width:0;display:grid}.position-editor-piece-flank button{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:4px;place-items:center;width:100%;min-width:0;min-height:24px;padding:0;display:grid}.position-editor-piece-flank button:active{cursor:grabbing}.position-editor-piece-count{z-index:2;inset-inline-end:-3px;color:#fff;pointer-events:none;background:#475239;border:1px solid #fff4dc;border-radius:50%;place-items:center;min-width:16px;height:16px;font:700 10px/1 system-ui,sans-serif;display:grid;position:absolute;top:-3px}.position-editor-piece-flank button:hover{background:#f1dfb994}.position-editor-piece-flank button.is-drop-target{background:#ffe7d3bf;box-shadow:inset 0 0 0 2px #a8342e}.position-editor-piece-flank button.is-drop-target.is-invalid-drop{background:#ffdad5d9;box-shadow:inset 0 0 0 2px #bd2d27}.position-editor-piece-flank .solve-piece{aspect-ratio:1;background-size:114%;width:min(100%,38px);height:auto;font-size:clamp(12px,1.7vw,21px);animation:none}.position-editor-error{color:#963d32;margin:0;font-size:12px;line-height:1.45}.position-editor-fen-modal-backdrop{z-index:1500;background:#1a1f19ad;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.position-editor-fen-modal{box-sizing:border-box;color:#475239;background:#f6e8c9 url(/decor/trang-co-home-paper-background.png) 50%/cover no-repeat;border:14px solid #0000;border-image:url(/analysis-assets/analysis-panel-wood-paper.png) 170 190 fill/14px;gap:12px;width:min(620px,100%);max-height:min(90vh,720px);padding:22px;display:grid;overflow:auto;box-shadow:0 14px 44px #0006}.position-editor-fen-modal-heading h2{color:#31533a;margin:0;font:700 24px/1.1 Cormorant,Georgia,serif}.position-editor-fen-modal textarea{resize:vertical;color:#3e4939;background:#f6e8c9 url(/decor/trang-co-home-paper-background.png) 50%/cover no-repeat;border:1px solid #c8b48d;border-radius:5px;width:100%;min-height:128px;padding:11px 12px;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.position-editor-fen-modal textarea.is-invalid{border-color:#b33a32;box-shadow:0 0 0 1px #b33a32}.position-editor-fen-modal textarea:focus-visible{outline-offset:2px;outline:2px solid #556f45}.position-editor-fen-modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:3px;display:flex}.position-editor-fen-cancel,.position-editor-fen-apply{color:#475239;cursor:pointer;background:0 0;border:8px solid #0000;border-image:url(/tre-lua/buttons/secondary-wide.png) 32 120 fill/8px 20px;justify-content:center;align-items:center;min-height:54px;padding:0 18px;font-size:12px;font-weight:700;display:inline-flex}.position-editor-fen-apply{color:#fff4d7;text-shadow:0 1px 2px #23100685;border-image-source:url(/tre-lua/buttons/primary-wide.png)}.position-editor-actions-card{gap:9px}.position-editor-player-side{color:#75664e;flex-wrap:wrap;align-items:center;gap:6px;margin:2px 0 4px;font-size:12px;font-weight:700;display:flex}.position-editor-player-side>span{white-space:nowrap;text-align:center}.position-editor-player-side button{color:#475239;cursor:pointer;background:0 0;border:0;border-radius:0;flex:0 0 44px;align-content:center;justify-items:center;gap:0;width:44px;height:44px;min-height:44px;padding:1px 0;font:700 9px/1 Cormorant,Georgia,serif;display:grid}.position-editor-player-side button.is-selected{color:#fff1c7;text-shadow:0 1px 2px #47291b;background:url(/tre-lua/buttons/selector-active-red.png) 50%/44px 44px no-repeat}.position-editor-player-side .solve-piece{background-size:115%;flex:0 0 32px;width:32px;height:32px;font-size:16px;animation:none}.position-editor-actions{gap:0;margin-top:2px;display:grid}.position-editor-action{color:#fff4d7;text-align:left;text-shadow:0 1px 2px #23100685;cursor:pointer;background:0 0;border:9px solid #0000;border-image:url(/tre-lua/buttons/primary-wide.png) 32 120 fill/9px 24px;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:12px;min-height:74px;padding:10px 18px;display:grid}.position-editor-action.best-lines{min-height:130px}.position-editor-action.play-engine{border-image-source:url(/analysis-assets/analyze-button-sage-green.png)}.position-editor-action:hover:not(:disabled){filter:brightness(1.1)}.position-editor-action:disabled{opacity:.48;cursor:not-allowed}.position-editor-action>svg{width:24px;height:24px}.position-editor-action>span{gap:3px;min-width:0;display:grid}.position-editor-action strong{font:700 17px/1.15 Cormorant,Georgia,serif}.position-editor-action small{color:#fff1cf;font-size:10px;line-height:1.3}.position-editor-action.mode-choice small{font-size:12px}@media (max-width:880px){:is(.position-editor-workspace,.position-editor-workspace:has(>:only-child)){grid-template-columns:minmax(0,1fr)}.position-editor-board{width:min(100%,600px)}}@media (max-width:560px){.position-editor-heading h1{font-size:30px}.position-editor-heading p{font-size:12px}.position-editor-board-card,.position-editor-actions-card{padding:11px}.position-editor-fen-modal{border-width:10px;border-image-width:10px;padding:14px}.position-editor-board-layout.is-editing{grid-template-columns:34px minmax(0,1fr) 34px;gap:3px}.position-editor-piece-flank .solve-piece{width:30px;font-size:14px}.position-editor-card-heading{align-items:flex-start}.position-editor-action{min-height:68px;padding-inline:12px}.position-editor-action.best-lines{min-height:130px}.position-editor-action strong{font-size:15px}}.position-editor-board-actions.position-editor-edit-actions{justify-content:flex-start;margin-left:0}
