/* RC3: shared, minimal interface adjustments. */
.tool-heading .how-to-use{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:12px;padding:8px 14px;border:1px solid var(--accent);border-radius:7px;background:var(--tint);color:var(--accent);font-size:14px;font-weight:600;line-height:1.5;text-decoration:none;cursor:pointer}
.tool-heading .how-to-use:hover{background:var(--surface2);color:var(--accent-hover);border-color:var(--accent-hover);text-decoration:none}
.tool-heading .how-to-use:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.help[id]{scroll-margin-top:16px}
body[data-ad-shell] .isolated-tool{border:0;border-radius:0;height:320px;min-width:0;background:var(--bg)}
body[data-ad-shell] .tool-mount{min-width:0}
.workspace-fallback{margin:12px 0;padding:16px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:14px}
.workspace-fallback p{margin:0 0 8px}
html.mansion-embedded .tool-page.wrap{padding:0;width:100%;margin:0}
html.mansion-embedded .workspace-layout{display:flow-root;min-width:0}
html.mansion-embedded .tool-mount{display:flow-root;min-width:0}
html.mansion-embedded{scroll-padding-top:0}

/* DEV2.3: wider workspace, scoped to the Regex Workbench only. */
body[data-tool="regex-tester"] .tool-page.wrap{width:min(2200px,calc(100% - 48px))}
@media(max-width:720px){body[data-tool="regex-tester"] .tool-page.wrap{width:calc(100% - 32px)}}
