/* Website chrome only: no selectors reach teaching controls or page content. */
header.xy-site-header{position:relative;z-index:30;display:block;margin:0;padding:0;border:0;border-bottom:1px solid #dce5f0;background:#f8fafc;color:#203759;font-family:'PingFang SC','Microsoft YaHei',system-ui,sans-serif;box-shadow:none}
.xy-site-header .xy-site-bar{width:min(94%,1320px);min-height:82px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0;box-sizing:border-box}
.xy-site-header .xy-site-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#244c91;flex-shrink:0;line-height:1.3;letter-spacing:0}
.xy-site-header .xy-site-brand svg{display:block;width:42px;height:42px}
.xy-site-header .xy-site-brand strong{display:block;font-size:24px;color:#203759;font-weight:700}
.xy-site-header .xy-site-brand small{display:block;font-size:10px;letter-spacing:.14em;color:#637591;margin-top:3px}
.xy-site-header nav.xy-site-nav{position:static;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 24px;width:auto;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;font-size:14px;font-weight:600;color:#203759}
.xy-site-header .xy-site-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;text-decoration:none;color:#203759;border:0;white-space:nowrap;background:none;box-shadow:none}
.xy-site-header .xy-site-nav a.xy-contact{padding:0 20px;border-radius:999px;background:#244c91;color:#fff}
.xy-site-header .menu-toggle{display:none}
.xy-site-header a:focus-visible,.xy-tool-return a:focus-visible{outline:3px solid #6096e4;outline-offset:3px}
.site-return-wrap.xy-tool-return{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;width:100%;max-width:100%;margin:0 0 20px;padding:0;box-sizing:border-box}
.xy-tool-return .site-return-link{flex-shrink:0;background:#fff;border:1px solid #d4dfed;color:#284b80;box-shadow:none}
.xy-tool-return nav.xy-breadcrumb{position:static;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;width:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;font-size:13px;line-height:1.6;color:#4d6583;min-width:0}
.xy-tool-return .xy-breadcrumb a{color:#244c91;text-decoration:none}
.xy-tool-return .xy-breadcrumb span{overflow-wrap:anywhere}
@media(max-width:900px){
  .xy-site-header .xy-site-bar{position:relative;gap:12px;flex-wrap:nowrap}
  .xy-site-header .xy-site-brand strong{font-size:22px}
  .xy-site-header .menu-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-left:auto;padding:0;border:1px solid #d4dfed;border-radius:8px;background:#fff;color:#244c91;font:26px/1 system-ui,sans-serif;cursor:pointer}
  .xy-site-header nav.xy-site-nav{display:none;position:absolute;top:calc(100% - 4px);right:0;z-index:35;align-items:stretch;flex-direction:column;gap:2px;width:min(300px,100%);padding:12px;border:1px solid #d4dfed;border-radius:12px;background:#fff;box-shadow:0 20px 40px #142e5933}
  .xy-site-header nav.xy-site-nav.expanded{display:flex}
  .xy-site-header .xy-site-nav a{justify-content:flex-start;width:100%;padding:0 12px}
  .xy-site-header .xy-site-nav a.xy-contact{margin-top:4px;padding:0 12px}
}
@media(max-width:600px){.xy-site-header .xy-site-bar{padding:12px 0;gap:8px}.xy-tool-return .xy-breadcrumb{font-size:12px}.site-return-wrap.xy-tool-return{gap:10px}}
/* Preserve the existing focused classroom mode. */
.classroom-screen .xy-site-header,.classroom-screen .xy-tool-return{display:none}
/* Old tools may have bare svg rules for their experiment canvas. Isolate the brand icon. */
.xy-site-header .xy-site-brand svg{min-width:42px;max-width:42px;min-height:0;max-height:42px;background:none;border:0;border-radius:0;padding:0;margin:0;box-shadow:none;overflow:visible;flex:none}
.site-return-wrap.xy-tool-return{width:min(1180px,calc(100% - 32px));margin:16px auto 20px}

/* Free detail website shell. Teaching stages and controls keep their own palettes. */
body.workbench-tool-detail.workbench-tool-detail:not(.classroom-screen){
  background:radial-gradient(ellipse 75% 580px at 82% 160px,#e9f0fb,transparent 85%),#f8fafc!important;
}
body.workbench-tool-detail .xy-site-header{border-bottom-color:#dce5f0;background:#f8fafc;color:#203759}
body.workbench-tool-detail .xy-tool-return .site-return-link{
  border:1px solid #d4dfed;border-radius:14px;color:#284b80;background:#fff;
  box-shadow:0 8px 22px #2548740d;
}
body.workbench-tool-detail .xy-tool-return .site-return-link:hover{
  border-color:#a9bfdd;color:#244c91;background:#f4f8fd;box-shadow:0 10px 26px #25487414;
}
body.workbench-tool-detail .xy-tool-return .xy-breadcrumb{color:#62758f}
body.workbench-tool-detail .xy-tool-return .xy-breadcrumb a{color:#284b80}
body.workbench-tool-detail .xy-tool-return .xy-breadcrumb [aria-current="page"]{color:#203759}
body.workbench-tool-detail :is(.tool-heading:not(.stage-hero),.hero) h1{color:#203759!important}
body.workbench-tool-detail :is(.tool-heading:not(.stage-hero),.hero) :is(.eyebrow,.tool-kicker){color:#526d91!important}
body.workbench-tool-detail :is(.tool-heading:not(.stage-hero),.hero) :is(.chip,.tool-tag){
  color:#4e6788!important;border-color:#d6e1ef!important;background:#f4f8fd!important;
  border-radius:999px!important;box-shadow:none!important;
}
body.workbench-tool-detail :is(.tool-heading:not(.stage-hero),.hero) :is(.chip.is-live,.tool-tag.is-live){
  color:#244c91!important;border-color:#bbd0eb!important;background:#eaf2fd!important;
}
body.workbench-tool-detail.workbench-tool-detail > :is(footer,.site-footer){
  color:#526783!important;border-top-color:#dce5f0!important;background:#eef3f8!important;
}
body.music-stage-page .xy-tool-return .xy-breadcrumb{
  padding:8px 12px;border:1px solid #d6e1ef;border-radius:12px;background:#fff;
}
