.ambigram { display:grid; gap:1rem; }
.ambigram label { display:grid; gap:.4rem; }
.ambigram :is(button,input,a) { min-height:44px; max-width:100%; padding:.5rem .8rem; font:inherit; border:1px solid var(--border-soft); border-radius:.4rem; color:var(--ink); background:var(--surface); }
.ambigram a:not([hidden]) { display:inline-flex; align-items:center; }
.ambigram-proof { display:grid; min-height:9rem; padding:1rem; place-items:center; background:#f7f4eb; border-radius:.5rem; }
.ambigram-proof img { max-width:100%; max-height:12rem; }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply <id>. */
.tool-view-placeholder[data-tool="ambigram-generator"] { min-height: 431px; }
@media (max-width: 884px) { .tool-view-placeholder[data-tool="ambigram-generator"] { min-height: 455px; } }
@media (max-width: 416px) { .tool-view-placeholder[data-tool="ambigram-generator"] { min-height: 523px; } }
