/* Helpers drawn by type-scene.js: word masks, layout grid, selection box, cursor.
   Colours come from --ts-line, --ts-ink, --ts-on and --ts-step on an ancestor of the board. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }
.ts-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ts-col { position: absolute; top: 0; bottom: 0; border-inline: 1px solid var(--ts-line); }
.ts-rows { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(to bottom, var(--ts-line) 0, var(--ts-line) 1px, transparent 1px, transparent var(--ts-step)); }
.ts-sel { position: absolute; z-index: 3; pointer-events: none; border: 1px solid var(--ts-ink); }
.ts-sel i { position: absolute; width: 7px; height: 7px; margin: -4px; background: var(--ts-on); border: 1px solid var(--ts-ink); }
.ts-sel i:nth-child(1) { left: 0; top: 0; } .ts-sel i:nth-child(2) { left: 100%; top: 0; }
.ts-sel i:nth-child(3) { left: 0; top: 100%; } .ts-sel i:nth-child(4) { left: 100%; top: 100%; }
.ts-read { position: absolute; right: -1px; top: 100%; margin-top: 7px; padding: 2px 6px; border-radius: 3px; background: var(--ts-ink); color: var(--ts-on); font: 500 10px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: pre; }
.ts-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 22px; height: 22px; margin: -2px 0 0 -4px; pointer-events: none; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }
.ts-cursor svg { display: block; width: 100%; height: 100%; }
