/* Acrostic-only controls: shared paper / rose / night tokens, ES5-era flex fallback. */
.acrostic-position{border:0;padding:0;margin:0 0 20px;min-width:0}
.acrostic-position legend{font-size:12px;margin-bottom:9px;color:var(--ink,#302c27)}
.acrostic-segments{display:flex;flex-wrap:wrap;margin:-3px}
.acrostic-segment{min-width:44px;min-height:44px;margin:3px;padding:8px;border:1px solid var(--line,#ded8d0);border-radius:8px;background:var(--bg,#faf7f1);color:var(--ink,#302c27);font:inherit;cursor:pointer}
.acrostic-segment[aria-pressed=true]{background:var(--accent,#9d634e);color:var(--accent-ink,#fff);border-color:var(--accent,#9d634e)}
.acrostic-rhyme{display:flex;align-items:center;min-height:44px;font-size:14px;cursor:pointer}
.acrostic-rhyme input{width:22px;height:22px;margin:0 10px 0 0}
.acrostic-row{display:flex;align-items:center;justify-content:center;white-space:normal;margin:4px 0;min-width:0}
.acrostic-line{min-width:0;word-break:normal;overflow-wrap:break-word;line-height:1.8}
.acrostic-line mark{color:var(--accent,#9d634e);background:transparent;font-weight:600}
.acrostic-regen{flex-shrink:0;min-width:60px;min-height:44px;padding:8px;margin-left:10px;font-size:12px;border:1px solid var(--line,#ded8d0);border-radius:8px;color:var(--muted,#77716b);background:var(--surface,#fffdfa);cursor:pointer}
.poem-layout .poem-actions .button{min-height:44px;box-sizing:border-box}
.acrostic-segment:focus,.acrostic-regen:focus{outline:2px solid var(--accent,#9d634e);outline-offset:2px}
.acrostic-regen:disabled{opacity:.5;cursor:wait}
@media(max-width:420px){.poem-layout .poem-paper{padding:36px 16px}.poem-layout .acrostic-line{font-size:18px}.poem-layout .poem-actions{gap:8px}.poem-layout .poem-actions .button{padding-left:12px;padding-right:12px}}
