.board-editor {display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.board-editor h3 {margin:0}
.board-editor .board-toolbar,.board-editor .board-actions {display:flex;flex-wrap:wrap;gap:.65rem;align-items:end}
.board-editor label {display:grid;min-width:0;max-width:100%;gap:.3rem}
.board-editor select,.board-editor input {min-height:44px;max-width:100%;padding:.45rem .65rem;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:inherit;font-size:1rem}
.board-editor .board-target {display:flex;flex-wrap:wrap;align-items:end;gap:.45rem 1rem}
.board-editor .board-target .hint {margin:0}
.board-editor .board-compare {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:start}
.board-editor figure {margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:.45rem;justify-items:center}
.board-editor figcaption {font-weight:700}
.board-editor canvas {display:block;max-width:100%;max-height:55vh;width:auto;height:auto;background:#eef1ed;outline:1px solid var(--line)}
.board-editor [data-mode="edit"] canvas {cursor:crosshair;touch-action:manipulation}
.board-editor .board-switch {display:none}
.board-editor .board-coords {border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}
.board-editor .board-coords td,.board-editor .board-coords th {padding:.5rem;border-bottom:1px solid var(--line)}
.board-editor .board-fields {padding:1rem;background:#f3f6ee;border-radius:.4rem;display:grid;gap:.7rem}
.board-editor .board-fields input[type=number] {width:6.8rem}
.board-editor .board-msg {color:var(--green)}
.board-editor .board-msg:empty {margin-block:-.5rem}
.board-editor .board-msg.error {color:var(--danger)}
.board-editor .board-tools-title {font-weight:650}
@media(max-width:650px){
  .board-editor .board-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
  .board-editor .board-switch [aria-pressed=true]{background:var(--green);color:white}
  .board-editor .board-compare{display:block}
  .board-editor canvas{max-height:72vh;max-height:72svh}
  .board-editor .board-compare[data-board-view=source] figure:last-child,.board-editor .board-compare[data-board-view=table] figure:first-child{display:none}
  .board-editor .board-fields{padding:.75rem}
  .board-editor .board-target{display:grid}
  .board-editor .board-target select{width:100%}
  .board-editor summary{min-height:44px;padding-block:.65rem}
  .board-editor .board-coords td,.board-editor .board-coords th{padding:.4rem .25rem}
}
