/* 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}

/* RC4: let the outer document own ordinary page scrolling. */
html.mansion-embedded body{display:flow-root;margin:0;padding:0;min-height:0}
html.mansion-embedded main{display:flow-root;margin:0;padding:0;min-height:0}
html.mansion-embedded .tool-page.wrap{display:flow-root;width:100%;margin:0;padding:0;min-height:0}
/* Hide the redundant viewport scrollbar only after the bridge verifies the content fits. */
html.mansion-embedded.mansion-viewport-fitted{overflow-y:hidden}
/* Preserve explicit text-area and table scrolling and the very-tall-workspace fallback. */
