@font-face {
  font-family: Saira;
  src: url(assets/saira-500.ttf) format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page:#101014;
  --surface:#18181e;
  --surface-2:#202027;
  --line:#33323c;
  --muted:#a8a6b5;
  --text:#f1eef7;
  --accent:#c6a8fa;
  --ink:#171120;
  --reading:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 500 15px/1.6 Saira, var(--reading);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: default;
  opacity: .45;
}
button,
a,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button,
a,
summary,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p,
figure,
dl {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.2rem);
  letter-spacing: -.055em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(2rem, 1.45rem + 1.8vw, 3rem);
  letter-spacing: -.045em;
  line-height: 1.16;
}
h3 {
  font-size: 1.14rem;
  line-height: 1.35;
}
p {
  color: var(--muted);
}
small {
  font-size: .76rem;
}
.shell {
  width: min(1360px, calc(100% - 96px));
  margin-inline: auto;
}
.quiet {
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  padding: 12px 20px;
  min-height: 46px;
  line-height: 1.2;
  font-size: .9rem;
}
.button:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.button-small {
  padding: 10px 17px;
  min-height: 42px;
  font-size: .83rem;
  gap: 24px;
}
.button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.button-accent:hover {
  background: var(--surface-2);
  border-color: var(--control-border);
}
.text-button,
.text-link {
  font-size: .84rem;
  color: var(--accent);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.text-link:hover,
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.icon-button {
  height: 40px;
  min-width: 40px;
  display: inline-grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--reading);
  font-size: 18px;
}
.icon-button:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 20px;
  padding: 12px;
  background: var(--accent);
  color: var(--ink);
  z-index: 100;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-inline-size: 44px;
  min-block-size: 44px;
}
.wordmark img {
  display: block;
  width: 44px;
  height: 44px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: .82rem;
  margin-left: auto;
  margin-right: 32px;
  color: var(--muted);
}
.site-header nav a {
  padding: 10px 0;
}
.site-header nav a:hover {
  color: var(--text);
}
.explorer-frame {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: clip;
}
.visual-library {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.category-buttons {
  display: flex;
  gap: 3px;
  padding: 0 10px 12px;
}
.category-buttons button {
  font-size: .73rem;
  color: var(--muted);
  padding: 7px 8px;
  border-radius: 4px;
  min-height: 36px;
}
.category-buttons small {
  font-family: var(--reading);
  font-size: .62rem;
  opacity: .6;
  margin-left: 3px;
}
.category-buttons button[aria-pressed=true] {
  background: var(--selected-bg);
  color: var(--text);
}
.category-buttons button:hover {
  color: var(--text);
}
.visual-list {
  height: 408px;
  overflow-y: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  flex: 1;
  min-height: 180px;
  max-height: 442px;
}
.visual-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 7px;
  border-radius: 5px;
  min-height: 57px;
  margin-block: 1px;
  font-size: .78rem;
  line-height: 1.28;
  color: var(--text);
  border: 1px solid transparent;
}
.visual-choice img {
  width: 49px;
  height: 35px;
  object-fit: cover;
  border-radius: 3px;
  opacity: .7;
  flex-shrink: 0;
}
.visual-choice:hover {
  background: var(--surface-2);
}
.visual-choice[aria-pressed=true] {
  border-color: var(--line);
  background: var(--selected-bg);
  color: var(--text);
}
.visual-choice[aria-pressed=true] img {
  opacity: 1;
}
.explorer-main {
  min-width: 0;
  container-type: inline-size;
}
.stage-heading {
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  gap: 12px;
  font-size: .85rem;
}
.stage-heading > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
@container (max-width: 22rem) {
  .stage-actions > .button { padding-inline: 7px; }
}
.stage-actions .icon-button {
  min-width: 30px;
  height: 30px;
  font-size: 16px;
  border-color: transparent;
}
.browse-button {
  display: none;
  font-size: .75rem;
  min-height: 36px;
  color: var(--accent);
}
.visual-stage {
  height: clamp(295px, 29vw, 430px);
  position: relative;
  background: var(--surface);
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
  isolation: isolate;
}
.visual-stage > img,
#runtime-slot,
#runtime-slot iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.visual-stage > img {
  object-fit: cover;
}
#runtime-slot {
  opacity: 0;
  pointer-events: none;
}
.visual-stage.is-playing #runtime-slot,
.visual-stage.has-frame #runtime-slot {
  opacity: 1;
}
.visual-stage.has-frame > img,
.visual-stage.reference-ready > img {
  visibility: hidden;
}
.visual-stage .poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  background: var(--overlay);
  font-size: .73rem;
  color: var(--text);
  text-shadow: 0 1px 8px var(--shadow);
}
.play-disc {
  display: grid;
  place-content: center;
  width: 64px;
  height: 64px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  text-shadow: none;
  font-size: 22px;
  box-shadow: 0 4px 32px var(--shadow);
  transition: transform .18s;
}
.poster-play:hover .play-disc {
  transform: scale(1.07);
}
.poster-play[hidden] {
  display: none;
}
.fullscreen-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  background: var(--overlay);
  color: var(--text);
  font: 22px var(--reading);
  border-radius: 5px;
  border: 1px solid var(--control-border);
}
.visual-stage:fullscreen {
  width: 100dvw;
  height: 100dvh;
}
.visual-stage:fullscreen #runtime-slot {
  pointer-events: none;
}
.transport {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  min-height: 75px;
}
.transport-play {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid var(--control-border);
  font: 13px var(--reading);
  flex-shrink: 0;
  color: var(--text);
}
.transport-play:hover {
  background: var(--surface-2);
}
.track-label {
  display: flex;
  flex-direction: column;
  min-width: 88px;
  line-height: 1.4;
  font-size: .78rem;
}
.track-label small {
  color: var(--muted);
  font-size: .61rem;
}
.seek-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.time {
  font-size: .6rem;
  font-family: var(--reading);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  min-width: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--accent);
  margin: 0;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
}
input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  background: var(--accent);
  border-radius: 50%;
}
input[type=range]::-moz-range-track {
  height: 3px;
  background: var(--surface-2);
}
input[type=range]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--accent);
  border-radius: 50%;
}
#seek {
  width: 100%;
}
.volume {
  width: 65px;
  flex-shrink: 0;
}
.mute-button {
  border: 0;
  min-width: 24px;
  width: 24px;
  color: var(--muted);
  font-size: 21px;
}
.quick-row {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  min-height: 91px;
}
.quick-controls {
  display: flex;
  align-items: end;
  gap: 23px;
  min-width: 0;
  flex: 1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  text-align: left;
}
.field > label {
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.4;
  cursor: pointer;
}
.field select,
.field input[type=number] {
  height: 33px;
  min-width: 110px;
  max-width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  padding: 3px 25px 3px 10px;
  font-size: .75rem;
}
.field select option {
  background: var(--surface-2);
}
.field input[type=color] {
  width: 100%;
  height: 32px;
  border: 1px solid var(--control-border);
  background: var(--surface-2);
  border-radius: 4px;
}
.field-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 36px;
  gap: 9px;
}
.field-check label {
  font-size: .78rem;
  color: var(--text);
}
.field-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.field-button button {
  padding: 7px 13px;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  font-size: .76rem;
  min-height: 36px;
  text-align: left;
}
.field-button button:hover {
  background: var(--surface-2);
}
.range-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-pair input[type=range] {
  width: 100%;
  min-width: 70px;
}
.range-pair input[type=number] {
  width: 64px;
  min-width: 64px;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
}
.quick-controls .range-pair input[type=range] {
  width: 92px;
}
.quick-controls .field {
  max-width: 230px;
}
#customize-button {
  align-self: center;
}
.customize-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 12px;
  padding: 25px;
  background: var(--surface);
}
.customize-panel[hidden] {
  display: none;
}
.customize-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.customize-heading h2 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.control-hint {
  font-size: .73rem;
  margin-top: 10px;
}
.advanced-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 25px;
}
.advanced-controls .field > label {
  font-size: .75rem;
}
.advanced-controls select {
  width: 100%;
}
.explorer-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  align-items: start;
}
.explorer-caption p {
  font-size: .85rem;
  color: var(--muted);
}
.explorer-caption .text-link {
  min-height: 24px;
}
.preview-status {
  font-size: .8rem;
  color: var(--text);
  min-height: 0;
  margin-top: 5px;
}
.preview-status:empty {
  display: none;
}
.section-space {
  padding-top: 105px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 38px;
  align-items: end;
}
.section-heading > p {
  width: 355px;
  max-width: 44%;
  font: 400 .96rem/1.7 var(--reading);
}
.workspace-demo {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: clip;
  background: var(--surface);
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 35px;
  min-height: 125px;
}
.site-footer > span {
  color: var(--muted);
  font-size: .72rem;
}
.site-footer nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: auto;
  font-size: .72rem;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--control-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 28px;
  width: min(920px, calc(100% - 32px));
  max-height: 90dvh;
  box-shadow: 0 30px 120px var(--shadow);
}
dialog::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-heading h2 {
  font-size: 1.8rem;
}
.dialog-heading .icon-button {
  flex-shrink: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
#gallery[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}
#gallery .gallery-grid {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-block-size: 0;
  padding: 3px;
  scrollbar-gutter: stable;
}
.gallery-choice {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--surface-2);
  font-size: .8rem;
  line-height: 1.35;
}
.gallery-choice:hover,
.gallery-choice[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--selected-bg);
}
.gallery-choice img {
  width: 100%;
  aspect-ratio: 1.7;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 9px;
}
.gallery-choice span {
  display: block;
  min-height: 32px;
}
.gallery-choice small {
  color: var(--muted);
  font-size: .61rem;
}
.text-dialog {
  max-width: 540px;
  padding: 30px;
}
.text-dialog h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
.text-dialog > p {
  font: 400 .94rem/1.75 var(--reading);
  margin-bottom: 17px;
}
.text-dialog .button {
  margin-top: 6px;
}
.text-dialog ol {
  font: 400 .93rem/1.9 var(--reading);
  padding-left: 22px;
  color: var(--text);
}
.text-dialog li {
  margin-bottom: 10px;
}
@container (max-width:650px) {
  .seek-wrap {
    gap: 8px;
  }
  .transport {
    gap: 8px;
    padding-inline: 13px;
  }
  .time {
    font-size: .58rem;
  }
  .volume {
    width: 45px;
  }
  .quick-row {
    padding-inline: 14px;
    gap: 10px;
  }
  .quick-controls {
    gap: 15px;
  }
  .field select {
    min-width: 100px;
  }
  .track-label {
    min-width: 75px;
  }
  .quick-controls .range-pair input[type=range] {
    width: 65px;
  }
}
@media (min-width: 1700px) {
  .visual-stage {
    height: 440px;
  }
  .visual-list {
    max-height: 455px;
  }
}
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 56px);
  }
  .explorer-frame {
    grid-template-columns: 190px 1fr;
  }
  .visual-choice {
    font-size: .71rem;
    gap: 8px;
  }
  .category-buttons button {
    padding: 7px 5px;
  }
  .visual-stage {
    height: 335px;
  }
  .advanced-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-heading {
    gap: 30px;
  }
  .visual-list {
    max-height: 387px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 36px);
  }
  .site-header {
    min-height: 77px;
    gap: 14px;
  }
  .site-header nav {
    gap: 19px;
    margin-right: 0;
    font-size: .75rem;
  }
  .site-header nav a:nth-child(2) {
    display: none;
  }
  .site-header .button {
    font-size: .73rem;
    padding: 9px 11px;
    gap: 12px;
    min-height: 38px;
  }
  .explorer-frame {
    display: block;
  }
  .visual-library {
    display: none;
  }
  .browse-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }
  .stage-heading {
    padding-inline: 12px;
    min-height: 48px;
  }
  .stage-heading > div {
    gap: 6px;
  }
  .stage-actions .icon-button {
    min-width: 25px;
  }
  .stage-heading {
    font-size: .8rem;
  }
  .visual-stage {
    height: auto;
    aspect-ratio: 1.5;
    contain-intrinsic-size: auto 250px;
  }
  .visual-stage > img {
    object-fit: cover;
  }
  .transport {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 92px;
  }
  .transport-play {
    width: 34px;
    height: 34px;
  }
  .track-label {
    flex: 1;
  }
  .seek-wrap {
    order: 5;
    flex-basis: 100%;
    gap: 10px;
  }
  .volume {
    width: 62px;
  }
  .mute-button {
    margin-left: auto;
  }
  .time {
    font-size: .61rem;
  }
  .quick-row {
    padding: 12px;
    min-height: 88px;
  }
  .quick-controls {
    gap: 15px;
  }
  .quick-controls .field select {
    min-width: 95px;
    width: 100%;
    font-size: .71rem;
    padding-right: 20px;
  }
  .quick-controls .field {
    max-width: 170px;
  }
  .quick-controls .field > label {
    font-size: .61rem;
  }
  .quick-row .text-button {
    font-size: .7rem;
    gap: 6px;
  }
  .quick-controls .range-pair {
    gap: 6px;
  }
  .quick-controls .range-pair input[type=range] {
    width: 45px;
    min-width: 35px;
  }
  .quick-controls .range-pair input[type=number] {
    min-width: 48px;
    width: 48px;
    font-size: .65rem;
  }
  .explorer-caption {
    gap: 14px;
    padding-top: 15px;
  }
  .explorer-caption p {
    font-size: .76rem;
  }
  .explorer-caption .text-link {
    font-size: .7rem;
  }
  .customize-panel {
    padding: 19px 16px;
  }
  .customize-heading h2 {
    font-size: 1.15rem;
  }
  .advanced-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 18px;
  }
  .section-space {
    padding-top: 76px;
  }
  .section-heading {
    display: block;
    margin-bottom: 27px;
  }
  .section-heading > p {
    max-width: none;
    width: 100%;
    margin-top: 19px;
    font-size: .9rem;
    max-width: 480px;
  }
  .section-heading h2 br {
    display: none;
  }
  .site-footer {
    min-height: 120px;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 28px;
  }
  .site-footer > span {
    font-size: .65rem;
  }
  .site-footer nav {
    width: 100%;
    margin-left: 0;
    gap: 22px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  dialog {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 450px) {
  .shell {
    width: calc(100% - 28px);
  }
  .site-header {
    min-height: 68px;
  }
  .site-header nav {
    gap: 17px;
    font-size: .69rem;
  }
  .site-header .button {
    gap: 9px;
    min-height: 34px;
    font-size: .66rem;
  }
  .site-header .button > span {
    display: none;
  }
  .stage-heading {
    font-size: .72rem;
    padding: 7px 10px;
  }
  .browse-button {
    font-size: .64rem;
  }
  .stage-actions .icon-button {
    min-width: 23px;
  }
  .visual-stage {
    aspect-ratio: 1.4;
  }
  .play-disc {
    width: 53px;
    height: 53px;
    font-size: 19px;
  }
  .poster-play {
    font-size: .68rem;
  }
  .quick-row {
    gap: 8px;
    align-items: end;
    flex-wrap: wrap;
  }
  .quick-controls {
    gap: 12px;
    flex-basis: 100%;
  }
  .quick-controls .field {
    flex: 1;
    max-width: none;
  }
  .quick-controls .field select {
    min-width: 110px;
  }
  .quick-row #customize-button {
    margin-left: auto;
    min-height: 30px;
    font-size: .7rem;
  }
  .quick-controls .range-pair input[type=range] {
    width: 100%;
  }
  .explorer-caption {
    flex-direction: column;
    gap: 8px;
  }
  .explorer-caption .text-link {
    min-height: 28px;
  }
  .advanced-controls {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-choice {
    font-size: .74rem;
  }
  .gallery-choice span {
    min-height: 34px;
  }
  .dialog-heading {
    margin-bottom: 19px;
  }
  .text-dialog {
    padding: 23px;
  }
  .text-dialog h2 {
    font-size: 1.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  button[aria-pressed=true] {
    outline: 2px solid Highlight;
  }
  .play-disc {
    border: 2px solid ButtonText;
  }
}
img {
  height: auto;
}
.visual-stage > img {
  height: 100%;
}


.button:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.advanced-controls {
  display: block;
}
.control-group + .control-group {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
}
.control-group h3 {
  font-size: .88rem;
  color: var(--accent);
  margin: 0 0 18px;
}
.control-group-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.control-group-fields .field {
  min-width: 0;
}
.control-group-fields select {
  max-width: 100%;
}
@media (max-width: 1100px) {
  .control-group-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .control-group-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
}
@media (max-width: 450px) {
  .control-group-fields {
    grid-template-columns: 1fr;
  }
}
:root {
  --selected-bg:#302638;
  --control-border:#776782;
  --secondary:#d994ee;
  --overlay:#18181eed;
  --scrim:#00000099;
  --shadow:#00000026;
  --status-text:#e4b26a;
}
.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding-block: 28px 24px;
}
.site-header nav {
  margin: 0 0 0 auto;
  gap: 32px;
}
.site-header nav a[aria-current=page] {
  color: var(--text);
  text-decoration: none;
}
.header-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.downloads {
  display: flex;
  align-items:center;
  gap: 10px;
}
.downloads > span {color:var(--muted);font-size:.8rem;}
.downloads .button {
  padding: 11px 18px;
  min-height: 44px;
  font-size: .8rem;
  gap: 24px;
  background: var(--surface);
}
.downloads .button:hover {
  background: var(--selected-bg);
}
.theme-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 15px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
}
.theme-button > span:nth-child(2) {
  font-size: .72rem;
  color: var(--muted);
}
.theme-button strong {
  display: inline;
  margin-left: 8px;
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
}
.theme-button:hover {
  background: var(--selected-bg);
  border-color: var(--accent);
}
.theme-swatches,
.theme-choice-colors {
  display: flex;
  gap: 4px;
}
.theme-swatches i {
  width: 20px;
  height: 20px;
  border: 1px solid var(--control-border);
  border-radius: 3px;
}
.theme-swatches i + i {
  margin-left: 0;
}
.explorer-section {
  padding-top: 24px;
}
.visual-library > .category-buttons {
  padding-top: 12px;
}
.visual-list {
  max-height: none;
}
.category-buttons button[aria-pressed=true]{
  border: 1px solid var(--accent);
}
.category-buttons small {
  opacity: 1;
}
.visual-choice[aria-pressed=true] {
  border-color: var(--accent);
}
.play-disc {
  background: var(--accent);
  color: var(--ink);
}
.visual-stage .poster-play {
  background: transparent;
  color: var(--text);
  text-shadow: none;
}
.poster-play > span:last-child {
  background: var(--surface);
  border: 1px solid var(--control-border);
  padding: 1px 9px;
  border-radius: 4px;
}
.preview-status {
  color: var(--status-text);
}
.layout-note {
  font: 400 .88rem/1.7 var(--reading);
  margin-top: 18px;
}
.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  min-height: 110px;
}
.site-footer nav {
  margin-left: 0;
}
.button-accent:hover {
  background: var(--accent);
  border-color: var(--text);
}
dialog::backdrop {
  background: var(--scrim);
}
.theme-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 28px;
}
.theme-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.theme-dialog > :not(.theme-grid) { flex-shrink: 0; }
.theme-dialog > .theme-grid {
  min-block-size: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.theme-dialog .dialog-heading {
  margin-bottom: 22px;
}
.theme-dialog h2 {
  font-size: 1.7rem;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.theme-choice {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 13px;
  min-height: 92px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--choice-bg);
  color: var(--choice-text);
  text-align: left;
  font-size: .81rem;
  line-height: 1.3;
}
.theme-choice:hover,
.theme-choice[aria-pressed=true] {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.theme-choice-colors {
  gap: 5px;
}
.theme-choice-colors i {
  width: 25px;
  height: 21px;
  border-radius: 3px;
  border: 1px solid currentColor;
}
.theme-check {
  display: none;
  position: absolute;
  right: 11px;
  top: 11px;
  font: 600 17px var(--reading);
}
.theme-choice[aria-pressed=true] .theme-check {
  display: block;
}
.theme-dialog > .text-button[aria-pressed=true]::after {
  content: "\2713";
}
@media (max-width: 760px) {
  .site-header {
    padding-block: 22px 18px;
    gap: 20px;
  }
  .site-header nav {
    gap: 20px;
  }
  .site-header nav a:nth-child(2) {
    display: block;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .downloads {
    display: flex;
    gap: 8px;
  }
  .downloads .button {
    padding: 10px 8px;
    gap: 10px;
    font-size: .72rem;
  }
  .theme-button {
    width: 100%;
  }
  .explorer-section {
    padding-top: 18px;
  }
  .theme-dialog {
    padding: 20px;
  }
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-space {
    padding-top: 72px;
  }
  .site-footer {
    margin-top: 65px;
  }
}
@media (max-width: 450px) {
  .site-header {
    column-gap: 14px;
  }
  .site-header nav {
    gap: 15px;
    font-size: .67rem;
  }
  .site-header .button > span {
    display: inline;
  }
  .downloads .button {
    font-size: .65rem;
    gap: 7px;
  }
  .theme-dialog {
    width: calc(100% - 24px);
    padding: 16px;
  }
  .theme-choice {
    font-size: .75rem;
    padding: 12px 10px;
  }
  .section-heading > p {
    max-width: 100%;
  }
}
@media (forced-colors: active) {
  :root {
    --page:Canvas !important;
    --surface:Canvas !important;
    --surface-2:Canvas !important;
    --selected-bg:Canvas !important;
    --text:CanvasText !important;
    --muted:CanvasText !important;
    --accent:LinkText !important;
    --line:CanvasText !important;
    --control-border:ButtonText !important;
    --ink:Canvas !important;
    --status-text:CanvasText !important;
  }
  .theme-swatches i,
  .theme-choice-colors i {
    forced-color-adjust: none;
  }
  .theme-choice {
    background: Canvas;
    color: CanvasText;
  }
  .theme-choice[aria-pressed=true] {
    outline-color: Highlight;
  }
}
.visual-library {
  position: relative;
}
.visual-list {
  position: absolute;
  inset: 54px 0 8px;
  height: auto;
  min-height: 0;
}
.theme-grid {
  max-height: calc(100dvh - 200px);
  overflow-y: auto;
  padding: 4px;
}
.theme-choice {
  min-height: 74px;
  padding: 10px;
  gap: 7px;
}
.theme-choice-colors i {
  height: 17px;
}
.theme-dialog .dialog-heading {
  margin-bottom: 12px;
}

/* Homepage layout examples. */
.browse-button { display:inline-flex; align-items:center; }
.theme-button > span:nth-child(2) { margin:0; }
.workspace-section { padding-top:64px; }
.workspace-section .section-heading { margin-bottom:24px; }
.workspace-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.workspace-presets,.layout-buttons { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.workspace-presets button,.layout-buttons button { min-block-size:38px; padding:7px 12px; border-radius:4px; font-size:.77rem; color:var(--muted); }
.workspace-presets button[aria-pressed=true],.layout-buttons button[aria-pressed=true] { color:var(--text); background:var(--selected-bg); border:1px solid var(--accent); }
.workspace-presets button:hover,.layout-buttons button:hover { color:var(--text); background:var(--surface-2); }
.layout-buttons { border-inline-start:1px solid var(--line); padding-inline-start:12px; }
.workspace-panels { display:grid; block-size:clamp(360px,32vw,440px); gap:1px; background:var(--line); }
.workspace-panels[data-layout=grid] { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); }
.workspace-panels[data-layout=grid] figure:last-child:nth-child(odd) { grid-column:span 2; }
.workspace-panels[data-layout=strip] { grid-template-columns:var(--strip-columns); grid-template-rows:minmax(0,1fr); block-size:300px; }
.workspace-panels[data-layout=stack] { grid-template-columns:minmax(0,1fr); grid-auto-rows:minmax(0,1fr); block-size:640px; }
.workspace-panels figure { display:grid; grid-template-rows:auto minmax(0,1fr); min-inline-size:0; min-block-size:0; background:var(--surface); }
.workspace-panels img { display:block; inline-size:100%; block-size:100%; min-block-size:0; object-fit:contain; }
.workspace-panels figcaption { padding:5px 11px; font-size:.7rem; color:var(--muted); background:var(--surface); border-bottom:1px solid var(--line); }
.layout-guide-link { margin-top:14px; }
.site-footer { margin-top:48px; }
.site-footer nav { display:flex; flex-wrap:wrap; gap:24px; }
@media(max-width:760px) {
 .workspace-toolbar { align-items:stretch; gap:10px; }
 .workspace-presets,.layout-buttons { inline-size:100%; }
 .layout-buttons { border-inline-start:0; border-top:1px solid var(--line); padding:10px 0 0; }
 .layout-buttons button,.workspace-presets button { flex:1; padding-inline:8px; font-size:.71rem; }
 .workspace-panels { block-size:360px; }
 .workspace-panels[data-layout=strip] { block-size:210px; }
 .workspace-panels[data-layout=stack] { block-size:580px; }
 .workspace-panels figcaption { font-size:.6rem; padding:5px 7px; }
 .workspace-section { padding-top:44px; }
 .site-footer nav { gap:15px 22px; }
}

.workspace-panels picture { display:block; min-inline-size:0; min-block-size:0; inline-size:100%; block-size:100%; }
@media(min-width:1100px) {
 .workspace-demo:has(.workspace-panels[data-layout=stack]) { max-inline-size:700px; margin-inline:auto; }
 .workspace-panels[data-layout=stack] { block-size:800px; }
}

/* Native controls are rendered by the embedded app. */
.visual-stage {--frame-extra:0px;--playback-height:90px;width:100%;aspect-ratio:auto;height:calc(clamp(260px,30vw,430px) + var(--frame-extra));}
.visual-stage.runtime-ready {--frame-extra:var(--playback-height);}
.visual-stage.inspector-open {
  height:clamp(230px, calc(100dvh - var(--site-nav-height) - var(--stage-heading-height,60px) - 8px), 720px);
  --editing-plot:clamp(88px,26dvh,260px);
  --frame-extra:calc(100% - var(--editing-plot));
}
.visual-stage.inspector-open:fullscreen {height:100dvh;}
.style-reel {display:flex;align-items:center;gap:clamp(12px,2vw,24px);border-top:1px solid var(--line);padding:12px 16px;}
.reel-toggle {position:relative;flex:none;padding:0;border:1px solid var(--line);border-radius:4px;overflow:hidden;width:clamp(120px,17vw,224px);background:var(--page);}
.reel-toggle video {display:block;width:100%;height:auto;}
.reel-transport {position:absolute;right:4px;bottom:4px;display:grid;place-items:center;width:28px;height:28px;border-radius:3px;background:var(--surface);color:var(--text);}
.reel-transport svg {display:block;}
.play-disc svg {width:26px;height:26px;}
.reel-caption {font-size:.94rem;}
.reel-invitation {font:400 .86rem/1.45 var(--reading);color:var(--muted);margin:.25rem 0;}
.reel-apply {padding:4px 0;font-size:.8rem;}
@media(max-height:520px) {.visual-stage.inspector-open {--editing-plot:80px;}}
.visual-stage.runtime-ready #runtime-slot {opacity:1;pointer-events:auto;}
.visual-stage #runtime-slot {pointer-events:auto;}
.visual-stage > #poster,.visual-stage .poster-play {height:calc(100% - var(--frame-extra));bottom:auto;}
.visual-stage > #poster {z-index:1;}
.visual-stage .poster-play {z-index:2;}
.visual-stage .fullscreen-button {z-index:3;}
.visual-stage:fullscreen {height:100dvh;}
.visual-stage:fullscreen #runtime-slot {pointer-events:auto;}
.preview-actions {display:flex;align-items:center;gap:16px;padding:10px 16px;border-top:1px solid var(--line);font-size:.78rem;}
.preview-actions > span {color:var(--muted);}
.preview-actions button {border:1px solid var(--control-border);border-radius:3px;padding:5px 12px;}
.explorer-main:has(.runtime-ready) .preview-actions > span {display:none;}
.explorer-caption {align-items:flex-start;}
.visual-help {font-size:.83rem;max-width:440px;}
.visual-help summary {cursor:pointer;color:var(--accent);}
.visual-help p {margin-top:12px;line-height:1.7;}
.band-solo-note {margin-top:12px;padding:12px 16px;border-left:2px solid var(--accent);background:var(--surface);font-size:.84rem;line-height:1.6;}
.layout-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;flex-wrap:wrap;}
.layout-heading > a {font-size:.81rem;}
.workspace-preview {border:1px solid var(--line);overflow:hidden;max-inline-size:100%;margin:0;}
.workspace-preview img {display:block;width:100%;height:auto;}
.workspace-preview[data-layout=stack] {max-inline-size:450px;margin-inline:auto;}
.guide-location {font-size:.8rem;color:var(--muted);margin-bottom:28px;display:flex;gap:9px;flex-wrap:wrap;}
.guide-location a {color:var(--accent);}
.site-footer {min-height:90px;}
@media(max-width:760px) {.stage-heading{flex-wrap:wrap;gap:6px;padding:9px 12px;}.stage-actions{margin-left:auto;}.explorer-caption{display:grid;gap:12px;}.visual-help{max-width:none;}.layout-heading{gap:16px;}.workspace-preview[data-layout=stack]{max-inline-size:360px;}}

@container (max-width:760px) { .visual-stage {--playback-height:140px;} }

@media(pointer:coarse) { @container(max-width:760px) { .visual-stage {--playback-height:174px;} } }


/* The primary navigation stays in one place on every page. */
:root { --site-nav-height:72px; }
html { scroll-padding-top:var(--site-nav-height); }
.site-header {display:block;min-height:0;position:sticky;inset-block-start:0;z-index:30;padding:0;background:var(--page);border-bottom:1px solid var(--line);}
.site-bar {display:flex;align-items:center;justify-content:space-between;min-height:calc(var(--site-nav-height) - 1px);gap:20px;}
.site-header nav {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;}
.site-header nav a {display:inline-flex;align-items:center;min-height:40px;padding:6px 13px;border:1px solid transparent;border-radius:3px;color:var(--muted);text-decoration:none;}
.site-header nav a:hover {color:var(--text);background:var(--surface);}
.site-header nav:not([data-home-sections]) a[aria-current],
.site-header nav[data-navigation-pending] a[aria-current],
.site-header nav[data-home-sections]:not([data-navigation-pending]) a:is(:target-current) {color:var(--text);background:var(--surface);border-color:var(--control-border);text-decoration:none;}
.site-header nav[data-home-sections] {scroll-target-group:auto;}
.header-actions.shell {padding-block:18px;margin-bottom:4px;}
.explorer-caption {margin-top:14px;}
.explorer-section {scroll-margin-top:16px;}
@media(max-width:760px) {
 :root {--site-nav-height:60px;}
 .site-bar {gap:10px;}
 .site-header nav {gap:2px;}
 .site-header nav a {padding-inline:8px;font-size:.76rem;}
 .header-actions.shell {padding-block:14px;}
}
@media(max-width:360px) {
 .site-header nav a {padding-inline:5px;font-size:.7rem;}
 .site-bar {gap:6px;}
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto;}}
@media(forced-colors:active) {.site-header nav a[aria-current] {border-color:Highlight;text-decoration:none;}}

/* The live app stays mounted while guides are in view. */
.inactive-view { position:fixed; left:-200vw; top:0; width:100%; content-visibility:hidden; visibility:hidden; pointer-events:none; }
@supports not (content-visibility:hidden) { .inactive-view { display:none; } }
.guide-playback { position:sticky; bottom:12px; display:flex; align-items:center; gap:18px; padding:10px 16px; border:1px solid var(--line); background:var(--surface); font-size:.8rem; z-index:15; }
.guide-playback span { margin-right:auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.themes-workspace { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:28px; align-items:start; }
.theme-previews { margin-block: 3rem; }
.theme-preview-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
 gap: 1rem;
 list-style: none;
 margin: 0;
 padding: 0;
}
.theme-preview-card {
 display: block;
 inline-size: 100%;
 padding: 0;
 border: 1px solid var(--control-border);
 background: var(--surface);
 color: var(--text);
 font: inherit;
 text-align: start;
 cursor: pointer;
}
.theme-preview-card:hover { border-color: var(--accent); }
.theme-preview-card img, .theme-capture-dialog video {
 display: block;
 inline-size: 100%;
 block-size: auto;
}
.theme-preview-card span {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: .75rem;
 padding: .65rem .75rem;
}
.theme-preview-card small { color: var(--muted); }
.theme-capture-dialog { inline-size: min(calc(100% - 2rem), 68.75rem); }
.theme-capture-dialog video { background: #111; aspect-ratio: 1100 / 424; }
.theme-audition { position:relative; border:1px solid var(--line); background:var(--surface); }
.theme-preview-heading,.theme-preview-actions,.theme-library-heading,.theme-library-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; }
.theme-preview-heading span,.theme-save-note { color:var(--muted); font-size:.78rem; }
.theme-preview-stage { position:relative; aspect-ratio:1.85; overflow:hidden; }
.theme-preview-stage img,.theme-preview-stage canvas { width:100%;height:100%;object-fit:cover;display:block; }
.theme-preview-stage canvas { position:absolute; inset:0; opacity:0; }
.theme-preview-stage.live canvas { opacity:1; }
.theme-library-heading { padding:0 0 14px; }
.theme-library-heading h3 { margin:0; font-size:1rem; font-weight:500; }
.theme-library .theme-grid { max-height:388px; overflow:auto; padding:2px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.theme-library-footer { padding:14px 0 0; }
.theme-save-note { line-height:1.6; margin:12px 0 0; }
.theme-editor-shell { padding:0; width:min(1320px,calc(100vw - 40px)); max-width:none; height:min(850px,calc(100dvh - 40px)); max-height:none; overflow:hidden; }
.theme-editor-shell[open] { display:grid; grid-template-rows:auto minmax(0,1fr); }
.theme-editor-shell .dialog-heading { padding:12px 20px; margin:0; border-bottom:1px solid var(--line); }
.theme-editor-shell .dialog-heading h2 { font-size:1rem; }
.theme-editor-body { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(380px,1fr); min-block-size:0; }
.theme-editor-body iframe { width:100%;height:100%;border:0; }
.theme-editor-preview { min-width:0; display:flex;flex-direction:column;justify-content:center;padding:24px;background:var(--page);border-right:1px solid var(--line); }
.theme-editor-preview canvas { width:100%; aspect-ratio:1.6; display:block; }
.guide-figure { margin:24px 0 30px; }
.guide-figure img { width:100%;height:auto;display:block;border:1px solid var(--line); }
.guide-figure figcaption { color:var(--muted);font-size:.78rem;line-height:1.6;margin-top:8px; }
@media(max-width:760px) {
 .themes-workspace { grid-template-columns:1fr; gap:24px; }
 .theme-audition { position:static; }
 .theme-library .theme-grid { max-height:300px; }
 .theme-editor-shell { width:100%;height:100dvh;max-height:100dvh;margin:0;border:0; }
 .theme-editor-body { grid-template-columns:1fr;grid-template-rows:125px minmax(0,1fr); }
 .theme-editor-preview { padding:8px 16px;border-right:0;border-bottom:1px solid var(--line); }
 .theme-editor-preview canvas { height:100%;width:100%;aspect-ratio:auto; }
 .guide-playback { gap:10px;bottom:0;font-size:.72rem; }
 .guide-playback a { display:none; }
 .site-bar nav { gap:18px; }
}

[hidden] { display:none !important; }
.theme-create-action { margin:16px 0 0; }

.ableton-section { padding-top:36px; margin-top:40px; border-top:1px solid var(--line); scroll-margin-top:100px; }
.ableton-section .section-heading { display:block; margin-bottom:28px; }
.ableton-section .section-heading h3 { font-size:clamp(1.5rem,2.2vw,2rem); margin:0 0 12px; }
.ableton-section .section-heading p { max-inline-size:70ch; margin:0; }
.ableton-workspace { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:36px; align-items:start; }
.ableton-preview { margin:0; min-inline-size:0; }
#ableton-fullsize { display:block; }
#ableton-fullsize .text-link { display:inline-block; margin-top:10px; }
.ableton-preview img { display:block; inline-size:100%; block-size:auto; border:1px solid var(--line); }
.ableton-preview figcaption { margin-top:10px; color:var(--muted); font:400 .8rem/1.6 var(--reading); }
.ableton-selection { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.ableton-selection h4 { font-size:1.2rem; margin:0; }
.ableton-downloads > p { font:400 .92rem/1.65 var(--reading); color:var(--muted); margin-bottom:20px; }
.ableton-pack { display:block; width:fit-content; margin-block:18px 24px; }
.ableton-install > div { padding-bottom:16px; }
.ableton-install ol { padding-left:20px; font:400 .9rem/1.7 var(--reading); }
.ableton-install li { margin-bottom:12px; }
.ableton-install code { overflow-wrap:anywhere; }
.ableton-install a { text-decoration:underline; text-underline-offset:3px; }
#ableton-custom-note { min-block-size:240px; display:grid; align-items:center; padding:24px; border:1px solid var(--line); font:400 1rem/1.7 var(--reading); }
@media(max-width:760px) {
 .ableton-workspace { grid-template-columns:1fr; gap:24px; }
}

.editor-preview-actions { display:flex; align-items:center; gap:6px; margin-top:12px; }
.editor-visual-step { flex:none; padding-inline:8px; }
.editor-visual-name { min-width:0; line-height:1.2; }
.editor-preview-actions [data-editor-play] { margin-inline-start:auto; flex:none; }
@media(max-width:760px) { .theme-editor-body { grid-template-rows:175px minmax(0,1fr); } .theme-editor-preview canvas { height:100px; } .editor-preview-actions { margin-top:4px; } .editor-preview-actions .button { min-height:36px; } }

.theme-preview-stage iframe { position:absolute;inset:0;width:100%;height:100%;border:0;z-index:2; }
.theme-editor-preview .theme-preview-stage { width:100%;aspect-ratio:1.6; }
.themes-section,.workspace-section {scroll-margin-top:0;}
@media(max-width:760px) { .site-bar nav {gap:0;flex-wrap:nowrap;} .site-bar {gap:6px;} .site-header nav a {padding-inline:7px;} .theme-editor-preview .theme-preview-stage {height:100px;aspect-ratio:auto;} }
@media(min-width:600px) and (max-width:760px) and (max-height:500px) {
 .theme-editor-body { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); grid-template-rows:minmax(0,1fr); }
 .theme-editor-preview { border-block-end:0; border-inline-end:1px solid var(--line); }
}
@media(max-width:360px) { .site-header nav a {padding-inline:4px;font-size:.68rem;} }

/* Introductions stay with their section, above the demo controls. */
.explorer-intro { max-width:76ch; margin:0 0 22px; font:400 1rem/1.65 var(--reading); color:var(--text); }
.themes-section .section-heading,.workspace-section .section-heading { display:flex;flex-direction:column;align-items:flex-start;gap:14px; }
.themes-section .section-heading > p,.workspace-section .section-heading > p { width:auto;max-width:70ch;font-size:1rem;line-height:1.7;margin:0; }
@media(max-width:760px) { .explorer-intro { margin-bottom:18px;font-size:.94rem; } .themes-section .section-heading,.workspace-section .section-heading {gap:16px;} .themes-section .section-heading > p,.workspace-section .section-heading > p {width:auto;max-width:none;font-size:.94rem;} }

/* Site dialog actions use the app's stage-icon geometry and shared X drawing.
   Theme tokens map the app's panel/acid colors to the website palette. */
.site-close.stage-icon {
  --field-height:28px;
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:var(--field-height);min-width:var(--field-height);
  height:var(--field-height);min-height:var(--field-height);padding:0;
  border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);
}
.site-close.stage-icon svg {width:16px;height:16px;flex:none;}
.site-close.stage-icon:hover {background:color-mix(in srgb,var(--accent) 12%,var(--surface));border-color:var(--accent);}
.site-close.stage-icon:active {background:color-mix(in srgb,var(--accent) 23%,var(--surface));}
.site-close.stage-icon:focus-visible {outline:2px solid var(--accent);outline-offset:2px;}
.dialog-heading {align-items:center;}
.theme-swatches i {width:20px;height:20px;flex:none;}
.site-bar > nav {margin-inline-start:auto;}
.site-bar > .theme-button {flex:none;width:auto;max-inline-size:17rem;min-height:36px;padding:5px 10px;gap:8px;}
.site-bar > .theme-button > span:nth-child(2) {min-inline-size:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.site-bar > .theme-button strong {font-size:.78rem;}
.theme-library {align-self:start;max-width:30rem;display:flex;flex-direction:column;gap:28px;}
.theme-action {display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
.theme-action h3 {font-size:1.1rem;margin:0;}
.theme-action p {font:400 .9rem/1.65 var(--reading);color:var(--muted);margin:0;}
.section-guide {margin:24px 0 0;}
.theme-library .section-guide {margin:0;}
.ableton-install {margin-top:28px;}
.ableton-install h4 {font-size:1rem;margin:0 0 12px;}
.ableton-install ol {margin:0;color:var(--muted);}
.theme-library-footer {justify-content:flex-start;gap:24px;}
@media(max-width:760px) {
  :root {--site-nav-height:104px;}
  .site-bar {display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 12px;padding-block:6px;}
  .site-bar > .wordmark {grid-column:1;grid-row:1;}
  .site-bar > .theme-button {grid-column:2;grid-row:1;justify-self:end;max-width:min(100%,17rem);min-height:36px;}
  .site-bar > .theme-button > span:nth-child(2) {min-width:0;}
  .site-bar > .theme-button strong {display:inline;margin-inline-start:6px;overflow-wrap:anywhere;}
  .site-bar > nav {grid-column:1/-1;grid-row:2;justify-content:center;gap:4px;margin:0;}
  .site-bar > nav a {min-height:36px;padding-inline:12px;}
  .site-bar .theme-swatches i {width:16px;height:16px;}
  .theme-library {max-width:none;}
}
@media(pointer:coarse) {.site-close.stage-icon {--field-height:44px;}}

#poster[data-visual-image="image-clean"] {object-fit:contain;padding:0;background:var(--page);}
.gallery-card img[data-visual-image="image-clean"] {object-fit:contain;}

/* Distinguish keyboard focus from the selected theme outline. */
.theme-choice:focus-visible {outline:3px solid var(--accent);outline-offset:4px;}
.demo-intro, #demo-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;}
.demo-intro {margin-bottom:16px;}
.demo-intro .explorer-intro {margin:0;}
.demo-intro .text-link, #browse {font-size:.88rem;min-block-size:40px;display:inline-flex;align-items:center;}
#browse {padding-inline:8px;text-decoration:underline;text-underline-offset:.2em;}
#demo-tools {padding:10px 16px;border-block-start:1px solid var(--line);}
.explorer-caption {align-items:baseline;justify-content:space-between;}
@media(max-width:760px) {
  .stage-heading > div {gap:8px;}
  .stage-heading .stage-actions {margin-left:0;}
  .demo-intro {gap:0 16px;}
  .explorer-caption {gap:4px;}
}
