/* Adapter only. Approved screen styles and application controls remain intact. */
html[data-screen-embed] {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 0;
  background: transparent;
}

body[data-embedded-screen] {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
}

body[data-embedded-screen] .site-header,
body[data-embedded-screen] .review-links,
body[data-embedded-screen] .review-footer,
body[data-embedded-screen="01"] .intro,
body[data-embedded-screen="02"] .workspace-heading,
body[data-embedded-screen="03"] .workspace-heading,
body[data-embedded-screen="04"] .workspace-heading > h1,
body[data-embedded-screen="05"] .workbench > h1,
body[data-embedded-screen="06"] .heading-copy > .eyebrow,
body[data-embedded-screen="06"] .heading-copy > h1,
body[data-embedded-screen="06"] #versions,
body[data-embedded-screen="07"] .page-heading {
  display: none !important;
}

body[data-embedded-screen] main {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

body[data-embedded-screen] .workbench {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Keep both floating windows and their native relative sizes on screen 01. */
body[data-embedded-screen="01"] main {
  display: flow-root;
}
body[data-embedded-screen="01"] .workstage {
  width: calc(100% - 24px);
  max-width: none;
  margin: 12px auto;
}
/* Its accessible live region must not inherit a static position below main. */
body[data-embedded-screen="01"] > #run-announcement.sr-only {
  top: 0;
  left: 0;
}

/* Replay feedback is functional content even though its page title is removed. */
body[data-embedded-screen="04"] .workspace-heading {
  height: auto;
  min-height: 0;
  padding: 0;
}
body[data-embedded-screen="04"] #replay-label:not([hidden]) {
  margin: 6px 10px;
}

/* This heading also contains filters and the chart legend: retain both. */
body[data-embedded-screen="06"] .page-shell {
  border-radius: 0;
  box-shadow: none;
}
body[data-embedded-screen="06"] .workspace-heading {
  min-height: 0;
  padding: 12px 13px;
  gap: 10px;
  align-items: center;
}
body[data-embedded-screen="06"] .workspace-tools {
  padding-top: 0;
}

/* No viewport-based height: an iframe must not grow from its own last height. */
body[data-embedded-screen="07"] .console {
  height: auto;
  min-height: 848px;
  box-shadow: none;
}
