/* Hide duplicated page chrome before an embedded instrument paints. */
html.tool-frame body > .site-header, html.tool-frame body > .lime-footer,
html.tool-frame .tool-nav {display:none!important}
html.tool-frame body {min-height:0!important}
html.tool-frame body > main {margin-top:0!important;padding-top:0!important}
.tool-pane[hidden], .tool-switch-status[hidden] {display:none!important}
.tool-pane-frame {display:block;border:0;width:100%;height:600px;min-width:0;background:transparent}
html body .tool-switcher {padding-bottom:0!important;margin-bottom:0!important}
html body .tool-switcher .tool-nav {margin-bottom:0!important}
.tool-switch-status {margin:12px 0;color:var(--paper-muted,#72757c);font-size:14px}

html.tool-host-away body > :not(header):not(main):not(footer):not(script):not(style):not(link),
html.tool-host-away body > main > :not(.tool-switcher):not(.tool-pane) {display:none!important}

/* Keep loading feedback out of layout so tabs and content do not jump. */
html body .tool-switcher {position:relative}
.tool-switch-status {position:absolute;z-index:5;top:100%;left:50%;transform:translateX(-50%);margin:8px 0 0;padding:9px 14px;border-radius:12px;max-width:calc(100% - 24px);box-sizing:border-box;background:var(--paper-panel,#fff);color:var(--paper-ink,#222);box-shadow:0 4px 18px #00000012;font-size:13px;pointer-events:none}
html[data-theme=dark] .tool-switch-status {background:#24262a;color:#f4f4f5}
.tool-switch-status.is-loading {display:flex;align-items:center;gap:9px;white-space:nowrap}
.tool-switch-status.is-loading::before {content:'';width:13px;height:13px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:tool-loading-spin .8s linear infinite}
@keyframes tool-loading-spin {to {transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.tool-switch-status.is-loading::before{animation:none}}
