/* Physics and astrophysics: scoped to the existing controls and models. */
body.studio-page[data-science-subject="physics"]{
  --physics-ink:#122a36;
  --physics-muted:#4d6873;
  --physics-line:#cedfe2;
  --physics-accent:#147b84;
  background-color:#edf3f3;
}
body.studio-page[data-science-subject="physics"] .app-shell{
  background:#e7eff0;
  grid-template-columns:230px minmax(0,1fr);
}
body.studio-page[data-science-subject="physics"] .app-shell>main{
  background:#fbfdfc;
  border:1px solid #d1e2e2;
  border-radius:18px;
  padding:clamp(22px,2.6vw,36px);
}
body.studio-page[data-science-subject="physics"] .sidebar{
  background:transparent;
  padding:30px 16px;
}
body.studio-page[data-science-subject="physics"] .sidebar-heading{
  color:#58737b;
  font-size:12px;
  letter-spacing:.01em;
}
body.studio-page[data-science-subject="physics"] .experiment-button{
  color:#47636e;
  border:1px solid transparent;
  border-radius:10px;
  margin:2px 0;
  padding:14px 12px;
  min-height:70px;
}
body.studio-page[data-science-subject="physics"] .experiment-button small{
  color:#718d94;
  font-size:12px;
  opacity:1;
}
body.studio-page[data-science-subject="physics"] .experiment-button:hover{
  background:#dcebed;
  color:#214b57;
}
body.studio-page[data-science-subject="physics"] .experiment-button.active,
body.studio-page[data-science-subject="physics"] .experiment-button.active:hover{
  background:#143b4c;
  border-color:#143b4c;
  color:#f3fbfb;
}
body.studio-page[data-science-subject="physics"] .experiment-button.active small{color:#b3d8d9}
body.studio-page[data-science-subject="physics"] .sidebar-bottom{color:#657f86}
body.studio-page[data-science-subject="physics"] .sidebar-bottom .tiny-orbit{color:#347b8b}
/* An identifiable title band gives each experiment a strong entry point. */
body.studio-page[data-science-subject="physics"] :is(.page-heading,.atlas-heading,.sandbox-heading){
  background:#e4f0f1;
  border:1px solid #cfe0e3;
  border-left:4px solid #378999;
  border-radius:14px;
  padding:clamp(22px,2.4vw,32px);
  margin-bottom:24px;
}
body.studio-page[data-science-subject="physics"] :is(.page-heading,.atlas-heading,.sandbox-heading) h1{
  color:#143241;
  font-size:clamp(30px,3vw,43px);
  line-height:1.12;
  letter-spacing:-.045em;
}
body.studio-page[data-science-subject="physics"] :is(.page-heading,.atlas-heading,.sandbox-heading) p{
  color:#486873;
  line-height:1.65;
}
body.studio-page[data-science-subject="physics"] .experiment-heading-actions{display:flex;flex-wrap:wrap;gap:8px}
body.studio-page[data-science-subject="physics"] .experiment-heading-actions .outline-button{
  background:#fbfdfc;
  border-color:#c1d7db;
  color:#235968;
  border-radius:8px;
}
body.studio-page[data-science-subject="physics"] .workspace{gap:20px}
body.studio-page[data-science-subject="physics"] .visual-panel{
  background:#101e2c;
  border-color:#243b48;
  border-radius:16px;
  box-shadow:0 12px 28px #24434d12;
}
body.studio-page[data-science-subject="physics"] .visual-top{padding:20px 22px 10px;color:#cbdfe3}
body.studio-page[data-science-subject="physics"] .view-switch{border-radius:8px}
body.studio-page[data-science-subject="physics"] .view-switch button{min-height:38px}
body.studio-page[data-science-subject="physics"] .readouts{padding:10px 22px 20px}
body.studio-page[data-science-subject="physics"] .readout-value{font-variant-numeric:tabular-nums;letter-spacing:-.03em}
body.studio-page[data-science-subject="physics"] .transport{background:#172a39;border-top-color:#294352;padding:15px 20px}
body.studio-page[data-science-subject="physics"] .play-button{background:#a7eee5;color:#10343e;border-radius:8px;min-height:42px}
body.studio-page[data-science-subject="physics"] :is(.parameter-panel,.formula-panel){
  background:#f6faf9;
  border:1px solid #d0e2e2;
  border-radius:14px;
  padding:24px;
}
body.studio-page[data-science-subject="physics"] :is(.parameter-panel,.formula-panel) .panel-title{
  border-bottom:1px solid #d6e5e5;
}
body.studio-page[data-science-subject="physics"] :is(.parameter-panel,.formula-panel) .panel-title h2{
  color:#173c48;
  font-size:20px;
  font-weight:600;
}
body.studio-page[data-science-subject="physics"] .parameter-label{color:#34515d}
body.studio-page[data-science-subject="physics"] .param-symbol{color:#17788a}
body.studio-page[data-science-subject="physics"] .parameter-number{background:#fff;border-color:#c7dde0;border-radius:7px}
body.studio-page[data-science-subject="physics"] input[type="range"]{accent-color:#197f8a}
body.studio-page[data-science-subject="physics"] :is(.atlas-topic-card,.formula-tile){
  border-radius:12px;
  border-color:#cddfe1;
  background:#fbfdfc;
}
body.studio-page[data-science-subject="physics"] .atlas-topic-card{border-left:4px solid var(--topic-color,#8dbcc5)}
body.studio-page[data-science-subject="physics"] .atlas-topic-card:first-child{background:#e1f0f1;border-color:#bddbde;border-left-color:var(--topic-color,#8dbcc5)}
body.studio-page[data-science-subject="physics"] :is(.atlas-topic-card,.formula-tile):hover{background:#f0f8f8;border-color:#80afb6}
body.studio-page[data-science-subject="physics"] :is(.topic-formula-preview,.tile-equation){color:#236a78}
body.studio-page[data-science-subject="physics"] .topic-open{color:#286777;border-top-color:#cfdee1}
body.studio-page[data-science-subject="physics"] .sandbox-workspace{border-color:#cddfe1;border-radius:14px}

/* The star map remains the interactive surface; these rules only style its frame. */
body.studio-page[data-science-subject="astrophysics"]{
  --space-accent:#4a7195;
  background-color:#edf1f5;
}
body.studio-page[data-science-subject="astrophysics"] .space-heading{
  background:#e1eaf2;
  border:1px solid #c9dae7;
  border-left:4px solid #688dad;
  border-radius:14px;
  padding:clamp(22px,2.4vw,32px);
  margin-bottom:24px;
}
body.studio-page[data-science-subject="astrophysics"] .space-heading h1{color:#1a334b;letter-spacing:-.045em}
body.studio-page[data-science-subject="astrophysics"] .space-heading p{color:#4b677d;line-height:1.65}
body.studio-page[data-science-subject="astrophysics"] .space-workspace{gap:20px}
body.studio-page[data-science-subject="astrophysics"] .space-panel{
  border-color:#263e55;
  border-radius:16px;
  box-shadow:0 12px 28px #172d4014;
}
body.studio-page[data-science-subject="astrophysics"] .space-toolbar{
  background:#14283c;
  padding:14px 18px;
}
body.studio-page[data-science-subject="astrophysics"] .space-presets button{min-height:42px;border-radius:8px}
body.studio-page[data-science-subject="astrophysics"] .space-presets button[aria-pressed="true"]{background:#38516a;color:#f0f8ff}
body.studio-page[data-science-subject="astrophysics"] .space-transport{background:#152b40;padding:15px 18px}
body.studio-page[data-science-subject="astrophysics"] .space-play{background:#a8e8e5;color:#153b48;border-radius:8px;min-height:42px}
body.studio-page[data-science-subject="astrophysics"] .space-worlds{background:#0d1c2a;padding:18px}
body.studio-page[data-science-subject="astrophysics"] .body-list{gap:8px}
body.studio-page[data-science-subject="astrophysics"] .body-list button{border-color:#3b5268;border-radius:8px;min-height:40px}
body.studio-page[data-science-subject="astrophysics"] .body-list button[aria-pressed="true"]{background:#385d70;border-color:#91d4d6;color:#fff}
body.studio-page[data-science-subject="astrophysics"] .body-detail{
  background:#fbfdfd;
  border:1px solid #d2e0e9;
  border-radius:16px;
  padding:26px;
  box-shadow:0 8px 22px #253d4b08;
}
body.studio-page[data-science-subject="astrophysics"] .body-type{color:#668195;letter-spacing:.02em;font-size:12px}
body.studio-page[data-science-subject="astrophysics"] .body-title h2{color:#18384c;font-size:32px;line-height:1.2;letter-spacing:-.035em}
body.studio-page[data-science-subject="astrophysics"] .body-description{color:#526b7c;font-size:14px;line-height:1.8}
body.studio-page[data-science-subject="astrophysics"] .body-stats{gap:18px 14px;margin:25px 0}
body.studio-page[data-science-subject="astrophysics"] .body-stats dt{font-size:11px;color:#6c8493}
body.studio-page[data-science-subject="astrophysics"] .body-stats dd{font-size:15px;color:#203f50}
body.studio-page[data-science-subject="astrophysics"] :is(#focus-body,.body-inspect-action){border-radius:8px;min-height:44px}
body.studio-page[data-science-subject="astrophysics"] .orbit-formula-card{
  background:#fbfdfd;
  border:1px solid #d2e0e9;
  border-radius:14px;
  padding:24px;
}
body.studio-page[data-science-subject="astrophysics"] .orbit-formula-card h3{color:#1f4053;font-size:17px}
body.studio-page[data-science-subject="astrophysics"] .orbit-formula-card p{color:#526a7c}

@media(max-width:1000px){
  body.studio-page[data-science-subject="physics"] .app-shell{display:block}
  body.studio-page[data-science-subject="physics"] .sidebar{padding:12px 18px}
  body.studio-page[data-science-subject="physics"] .sidebar nav#experiments{display:flex;overflow-x:auto;gap:8px}
  body.studio-page[data-science-subject="physics"] .experiment-button{flex:none;width:auto;min-height:48px;margin:0;padding:10px 12px;white-space:nowrap}
  body.studio-page[data-science-subject="physics"] .app-shell>main{margin:0;border-radius:0;border:0;padding:26px 22px}
}
@media(max-width:700px){
  body.studio-page[data-science-subject="physics"] .app-shell>main{padding:24px 16px}
  body.studio-page[data-science-subject="physics"] :is(.page-heading,.atlas-heading,.sandbox-heading),
  body.studio-page[data-science-subject="astrophysics"] .space-heading{padding:21px 19px;margin-bottom:20px;border-radius:12px}
  body.studio-page[data-science-subject="physics"] :is(.page-heading,.atlas-heading,.sandbox-heading) h1,
  body.studio-page[data-science-subject="astrophysics"] .space-heading h1{font-size:30px}
  body.studio-page[data-science-subject="physics"] .experiment-heading-actions{width:100%}
  body.studio-page[data-science-subject="physics"] .experiment-heading-actions .outline-button{white-space:normal}
  body.studio-page[data-science-subject="physics"] .visual-top{padding:16px 15px 8px}
  body.studio-page[data-science-subject="physics"] .readouts{padding:8px 15px 16px}
  body.studio-page[data-science-subject="physics"] .transport{padding:14px 15px;gap:9px}
  body.studio-page[data-science-subject="physics"] :is(.parameter-panel,.formula-panel){padding:20px}
  body.studio-page[data-science-subject="astrophysics"] .space-toolbar{padding:12px}
  body.studio-page[data-science-subject="astrophysics"] .space-transport{padding:13px}
  body.studio-page[data-science-subject="astrophysics"] .body-detail{padding:22px}
  body.studio-page[data-science-subject="astrophysics"] .body-stats dd{font-size:14px}
  body.studio-page[data-science-subject="astrophysics"] .orbit-formula-card{padding:21px}
}
@media print{
  body.studio-page[data-science-subject="physics"] :is(.page-heading,.atlas-heading,.sandbox-heading),
  body.studio-page[data-science-subject="astrophysics"] .space-heading{background:white;border-color:#888;box-shadow:none}
}
