:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --panel: #f6f4ed;
  --ink: #171918;
  --muted: #686e6b;
  --line: #cbd0cc;
  --grid: rgba(31, 73, 70, .075);
  --teal: #3f9694;
  --teal-soft: #cfe1dd;
  --orange: #f05b25;
  --device: #e1dfd7;
  --device-dark: #bbbdb7;
  --screen: #161b1a;
  --white: #fbfaf6;
  --shadow: rgba(28, 58, 55, .2);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0e0d;
  --panel: #0e1211;
  --ink: #f1f0ea;
  --muted: #a2a7a3;
  --line: #333936;
  --grid: rgba(120, 184, 178, .095);
  --teal: #71b7b1;
  --teal-soft: #17302e;
  --orange: #ff6a34;
  --device: #d8d8d1;
  --device-dark: #aeb0ab;
  --screen: #090b0b;
  --white: #fbfaf6;
  --shadow: rgba(78, 166, 157, .2);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--paper); scroll-behavior: smooth; }

body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }

button, input, select { color: inherit; font: inherit; }
button, select, input[type="range"] { cursor: pointer; }
a { color: inherit; }
main { min-height: 100vh; }

.site-header {
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}

.brand { display: flex; align-items: center; font: 800 23px/1 var(--sans); text-decoration: none; letter-spacing: -1.2px; }
.site-header nav { display: flex; align-items: center; gap: 17px; margin-left: 18px; color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
.site-header nav a { color: var(--teal); text-decoration: none; }
.site-header nav b { color: var(--ink); font-weight: 500; }
.header-actions { display: flex; margin-left: auto; }
.local-status, .theme-toggle { display: flex; align-items: center; justify-content: center; min-width: 150px; padding: 0 18px; border: 0; border-left: 1px solid var(--line); background: transparent; font: 500 9px/1 var(--mono); letter-spacing: 1.35px; }
.local-status i { width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--teal); }
.theme-toggle { min-width: 104px; gap: 9px; }
.theme-toggle:hover { background: var(--teal-soft); }
.theme-toggle b { font-weight: 500; }
.theme-icon { position: relative; width: 13px; height: 13px; border: 1px solid var(--teal); border-radius: 50%; }
.theme-icon::after { content: ""; position: absolute; inset: 2px 2px 2px 6px; border-radius: 0 7px 7px 0; background: var(--teal); }

.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 5vw; padding: 76px 4vw 70px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 23px; color: var(--teal); font: 500 9px/1.2 var(--mono); letter-spacing: 1.55px; text-transform: uppercase; }
h1 { max-width: 980px; margin: 0; font: 400 clamp(54px, 7.2vw, 118px)/.82 var(--sans); letter-spacing: -.075em; }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-copy { align-self: end; max-width: 470px; }
.hero-copy > p:first-child { color: var(--muted); font: 400 12px/1.65 var(--mono); }
.safe-note { margin-top: 28px; font: 500 8px/1.4 var(--mono); letter-spacing: 1.2px; }
.safe-note span { display: inline-block; margin-right: 8px; padding: 4px 7px; color: var(--paper); background: var(--teal); }

.workbench { display: grid; grid-template-columns: 195px minmax(320px, 390px) minmax(500px, 1fr); align-items: start; margin: 28px 22px 44px; }
.sequence, .device-stage, .builder { min-width: 0; }
.sequence, .device-stage, .builder { border: 1px solid var(--line); }
.device-stage, .builder { margin-left: -1px; }
.panel-title { height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 500 8px/1 var(--mono); letter-spacing: 1.2px; }
.panel-title b { color: var(--teal); font-weight: 500; }
.sequence ol { margin: 0; padding: 0; list-style: none; }
.sequence li { position: relative; min-height: 76px; padding: 0 14px; display: grid; grid-template-columns: 30px 1fr 8px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.sequence li > span { color: var(--muted); font-size: 9px; }
.sequence li b { display: block; font-size: 9px; letter-spacing: 1px; }
.sequence li small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; }
.sequence li i { width: 5px; height: 5px; border: 1px solid var(--line); }
.sequence li.active::before { content: ""; position: absolute; inset: 0 auto 0 -1px; width: 2px; background: var(--teal); }
.sequence li.active i { border-color: var(--teal); background: var(--teal); }
.sequence dl { margin: 22px 14px; font: 500 7px/1.4 var(--mono); }
.sequence dl div { display: flex; justify-content: space-between; gap: 8px; margin: 15px 0; }
.sequence dt { color: var(--muted); }
.sequence dd { margin: 0; text-align: right; }

.device-stage { align-self: start; display: flex; flex-direction: column; }
.grid-field { position: relative; flex: none; height: clamp(390px, 34vw, 480px); min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.grid-field::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; border: 1px solid var(--teal); border-radius: 50%; opacity: .23; }
.grid-field::after { content: ""; position: absolute; width: 53%; aspect-ratio: 1; border: 1px dashed var(--teal); border-radius: 50%; opacity: .34; }
.device-label { position: absolute; z-index: 4; color: var(--muted); font: 500 7px/1 var(--mono); letter-spacing: 1px; }
.device-label::after { content: ""; display: inline-block; width: 54px; margin-left: 10px; border-top: 1px solid var(--teal); vertical-align: middle; }
.top-left { top: 38px; left: 20px; }
.bottom-right { right: 20px; bottom: 38px; }
.ortho-shadow { position: absolute; z-index: 0; width: min(70%, 280px); aspect-ratio: 1; transform: translate(16px, 19px); border-radius: 50%; background: var(--teal); opacity: .18; filter: blur(2px); }
.ortho { position: relative; z-index: 2; width: min(68%, 278px); aspect-ratio: 1; padding: 0; overflow: visible; border: 1px solid #7b817d; border-radius: 50%; outline: 0; touch-action: none; cursor: grab; color: #1d211f; background: radial-gradient(circle at 36% 29%, rgba(255,255,255,.92) 0 4%, transparent 27%), linear-gradient(145deg, #faf9f4 0 53%, var(--device) 100%); box-shadow: inset -22px -26px 38px rgba(65,72,69,.18), inset 9px 10px 19px rgba(255,255,255,.68), 0 25px 38px rgba(22,30,28,.18); }
.ortho:active { cursor: grabbing; }
.ortho:focus-visible { outline: 3px solid var(--teal); outline-offset: 8px; }
.knob-ridges { position: absolute; inset: 5px; border-radius: 50%; background: repeating-conic-gradient(rgba(40,45,42,.24) 0 1deg, transparent 1deg 6deg); mask: radial-gradient(circle, transparent 0 91%, #000 92% 100%); opacity: .42; pointer-events: none; }
.knob-pointer { position: absolute; z-index: 5; inset: -17px; border-radius: 50%; transform: rotate(-66deg); pointer-events: none; }
.knob-pointer i { position: absolute; top: 0; left: 50%; width: 3px; height: 13px; border-radius: 3px; background: var(--orange); transform: translateX(-50%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--paper) 42%, transparent); }
.ortho-copy { position: absolute; z-index: 3; inset: 19%; display: grid; grid-template-rows: auto 1fr auto; align-items: center; text-align: center; font-family: var(--mono); pointer-events: none; }
.ortho-brand { font: 800 13px/1 var(--sans); letter-spacing: -.35px; }
.ortho-brand span { display: block; margin-top: 5px; font: 500 6px/1 var(--mono); letter-spacing: .9px; }
.ortho-value { align-self: center; }
.ortho-value small { display: block; font-size: 7px; letter-spacing: 1px; }
.ortho-value strong { display: block; margin-top: 4px; font-size: 39px; font-weight: 500; line-height: .9; letter-spacing: -2px; }
.ortho-target { padding-top: 10px; border-top: 1px solid rgba(30,35,32,.22); }
.ortho-target small, .ortho-target strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ortho-target small { font-size: 7px; letter-spacing: .7px; }
.ortho-target strong { margin-top: 5px; font-size: 7px; font-weight: 500; }
.source-strip { min-height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font: 500 7px/1.4 var(--mono); letter-spacing: .8px; }
.source-strip a { color: var(--teal); text-decoration: none; }

.builder { background: var(--panel); }
.status-row { height: 38px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); font: 500 7px/1 var(--mono); }
.status-row span { padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-right: 1px solid var(--line); }
.status-row span:last-child { border-right: 0; }
.status-row b { font-weight: 500; }
.status-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.builder-intro { padding: 40px 32px 34px; border-bottom: 1px solid var(--line); }
.builder-intro h2 { margin: 0 0 25px; font: 400 clamp(48px, 4.2vw, 76px)/.82 var(--sans); letter-spacing: -.065em; }
.builder-intro > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font: 400 10px/1.65 var(--mono); }
.builder-intro code { color: var(--ink); font-family: inherit; }
fieldset { margin: 0; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); }
legend { width: 100%; padding: 16px 18px; display: flex; gap: 22px; color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: 1px; }
legend b { color: var(--ink); font-weight: 500; }
.field-grid { padding: 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid .wide { grid-column: 1 / -1; }
.field-grid label, .range-label, .midi-actions label { display: flex; flex-direction: column; gap: 7px; font: 500 7px/1 var(--mono); letter-spacing: .8px; }
select, input[type="number"], input[type="search"] { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--paper); font: 500 10px/1 var(--mono); }
select:focus, input:focus, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--orange); }
.field-error { color: var(--orange); font: 500 7px/1.35 var(--mono); letter-spacing: .6px; }
.range-label { margin: 18px 18px 0; }
.range-label input { width: 100%; accent-color: var(--teal); }
.range-label output { color: var(--muted); text-align: right; }
.device-reference { margin: 18px 18px 0; border: 1px solid var(--line); }
.reference-head { min-height: 50px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.reference-head > div span, .reference-head > div b { display: block; font-size: 7px; font-weight: 500; letter-spacing: .8px; }
.reference-head > div b { margin-top: 7px; color: var(--muted); }
.reference-head a { color: var(--teal); font-size: 7px; text-decoration: none; letter-spacing: .8px; }
.device-reference > p { margin: 0; padding: 11px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font: 400 8px/1.55 var(--mono); }
.map-search { padding: 10px 12px; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font: 500 7px/1 var(--mono); letter-spacing: .8px; }
.map-search input { height: 36px; }
.cc-map-scroll { max-height: 230px; overflow: auto; outline: 0; }
.cc-map-scroll:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.cc-map-table { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.cc-map-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; color: var(--muted); background: var(--panel); font-size: 7px; font-weight: 500; text-align: left; letter-spacing: .7px; }
.cc-map-table td { padding: 9px 10px; border-top: 1px solid var(--line); font-size: 8px; line-height: 1.35; }
.cc-map-table tr[data-selectable="true"] { cursor: pointer; }
.cc-map-table tr[data-selectable="true"]:hover, .cc-map-table tr[aria-selected="true"] { color: var(--paper); background: var(--teal); }
.cc-map-table .no-results { padding: 19px 10px; color: var(--muted); text-align: center; }
#device-caveat:empty { display: none; }
.mode-choice { margin: 0 18px 18px; display: grid; grid-template-columns: 1fr 1fr; }
.mode-choice label { position: relative; }
.mode-choice input { position: absolute; opacity: 0; }
.mode-choice span { min-height: 67px; padding: 14px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); font-family: var(--mono); }
.mode-choice label + label span { border-left: 0; }
.mode-choice b { font-size: 9px; letter-spacing: 1px; }
.mode-choice small { margin-top: 8px; color: var(--muted); font-size: 7px; }
.mode-choice input:checked + span { color: var(--paper); background: var(--teal); border-color: var(--teal); }
.mode-choice input:checked + span small { color: currentColor; }
.disclosure { width: calc(100% - 36px); height: 41px; margin: 0 18px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: transparent; font: 500 8px/1 var(--mono); letter-spacing: .8px; }
.disclosure i::after { content: "+"; font-style: normal; }
.disclosure[aria-expanded="true"] i::after { content: "−"; }
.advanced { margin: 10px 18px 0; padding: 14px 0; border: 1px solid var(--line); }
.advanced .field-grid { margin-top: 15px; }
.switch { padding: 0 14px; display: flex; align-items: center; gap: 10px; font: 500 8px/1 var(--mono); }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 30px; height: 16px; border: 1px solid var(--line); border-radius: 10px; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: transform .18s; }
.switch input:checked + span { border-color: var(--teal); }
.switch input:checked + span::after { background: var(--teal); transform: translateX(14px); }
.micro-copy { margin: 14px 14px 0; color: var(--muted); font: 400 8px/1.55 var(--mono); }
.output-fieldset { border-bottom: 1px solid var(--line); }
.summary-grid { margin: 0 18px; display: grid; grid-template-columns: 1.4fr repeat(3, .6fr); border: 1px solid var(--line); }
.summary-grid div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); font-family: var(--mono); }
.summary-grid div:last-child { border-right: 0; }
.summary-grid span { display: block; color: var(--muted); font-size: 7px; }
.summary-grid b { display: block; margin-top: 9px; overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.hex-panel { margin: 10px 18px; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.hex-panel div { display: flex; justify-content: space-between; color: var(--muted); font: 500 7px/1 var(--mono); }
.hex-panel code { display: block; margin-top: 16px; overflow-wrap: anywhere; color: var(--teal); font: 500 10px/1.6 var(--mono); }
.download-button { width: calc(100% - 36px); min-height: 58px; margin: 0 18px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font: 500 9px/1 var(--mono); letter-spacing: 1px; }
.download-button:hover { color: var(--paper); background: var(--orange); border-color: var(--orange); }
.download-button:disabled { cursor: not-allowed; color: var(--muted); background: transparent; border-color: var(--line); }
.download-button b { font-weight: 500; }
.file-row { margin: 11px 18px 0; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 500 7px/1.4 var(--mono); }
#download-status[data-active="true"] { color: var(--teal); }
#download-status[data-active="error"] { color: var(--orange); }

.midi-fieldset { border-bottom: 0; }
.midi-copy { padding: 0 18px 18px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; align-items: end; }
.midi-copy span { color: var(--teal); font: 500 7px/1 var(--mono); letter-spacing: 1px; }
.midi-copy h3 { margin: 14px 0 0; font: 400 24px/.95 var(--sans); letter-spacing: -.04em; }
.midi-copy p { margin: 0; color: var(--muted); font: 400 8px/1.55 var(--mono); }
.midi-actions { margin: 0 18px; display: grid; gap: 10px; }
.midi-actions button { min-height: 48px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: transparent; font: 500 8px/1 var(--mono); letter-spacing: .8px; }
.midi-actions button:hover:not(:disabled) { color: var(--paper); background: var(--teal); border-color: var(--teal); }
.midi-actions button:disabled { cursor: not-allowed; color: var(--muted); opacity: .68; }
.midi-actions .send-button { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.midi-status { margin: 11px 18px 0; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font: 500 7px/1.4 var(--mono); }
.midi-status b { font-weight: 500; }
.midi-warning { margin: 15px 18px 0; padding: 12px; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--orange) 5%, transparent); font: 400 8px/1.55 var(--mono); }
.midi-warning b { color: var(--orange); }

.instructions { margin: 0 22px 44px; border: 1px solid var(--line); }
.section-head { min-height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 500 8px/1 var(--mono); letter-spacing: 1.1px; }
.section-head b { color: var(--teal); font-weight: 500; }
.instruction-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.instruction-grid article { min-height: 210px; padding: 22px; border-right: 1px solid var(--line); }
.instruction-grid article:last-child { border-right: 0; }
.instruction-grid article > span, .facts article span, .read-tools span { color: var(--teal); font: 500 8px/1 var(--mono); letter-spacing: 1px; }
.instruction-grid h3, .read-tools h3 { margin: 35px 0 18px; font: 400 24px/.95 var(--sans); letter-spacing: -.04em; }
.instruction-grid p, .read-tools p { color: var(--muted); font: 400 9px/1.65 var(--mono); }
.warning { padding: 18px 22px; display: grid; grid-template-columns: 110px 1fr; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--orange) 7%, var(--paper)); }
.warning b { color: var(--orange); font: 500 9px/1.5 var(--mono); letter-spacing: 1px; }
.warning p { margin: 0; font: 400 9px/1.65 var(--mono); }
.read-tools { padding: 22px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.read-tools h3 { margin: 22px 0 10px; }
.read-tools p { max-width: 680px; margin: 0; }
.read-tools button { flex: 0 0 auto; min-height: 43px; padding: 0 16px; border: 1px solid var(--line); background: transparent; font: 500 8px/1 var(--mono); letter-spacing: 1px; }
.read-tools button:hover { color: var(--paper); background: var(--teal); border-color: var(--teal); }
.official-links { min-height: 48px; padding: 0 22px; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); font: 500 7px/1 var(--mono); letter-spacing: 1px; }
.official-links span { margin-right: auto; color: var(--muted); }
.official-links a { color: var(--teal); text-decoration: none; }
.official-links a:hover { color: var(--orange); }
.facts { margin: 0 22px 44px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.facts article { min-height: 144px; padding: 20px; border-right: 1px solid var(--line); }
.facts article:last-child { border-right: 0; }
.facts p { max-width: 420px; margin: 46px 0 0; color: var(--muted); font: 400 9px/1.6 var(--mono); }
footer { min-height: 62px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font: 500 7px/1 var(--mono); letter-spacing: 1px; }

@media (max-width: 1180px) {
  .workbench { grid-template-columns: 185px 1fr; }
  .builder { grid-column: 1 / -1; margin: -1px 0 0; }
  .grid-field { height: 460px; min-height: 0; }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 0 15px; }
  .site-header nav { gap: 9px; margin-left: 10px; }
  .site-header nav b { display: none; }
  .local-status { display: none; }
  .theme-toggle { min-width: 76px; padding: 0 9px; }
  .hero { grid-template-columns: 1fr; padding: 54px 18px; }
  h1 { font-size: clamp(48px, 15vw, 78px); }
  .hero-copy { margin-top: 25px; }
  .workbench { grid-template-columns: 1fr; margin: 18px 12px 34px; }
  .sequence { display: none; }
  .device-stage { margin-left: 0; }
  .grid-field { height: 350px; min-height: 0; }
  .ortho { width: min(68vw, 250px); }
  .ortho-copy { inset: 18%; }
  .ortho-value strong { font-size: 32px; }
  .top-left { top: 18px; left: 14px; }
  .bottom-right { display: none; }
  .source-strip { padding: 12px 14px; align-items: flex-start; flex-direction: column; }
  .builder { grid-column: auto; }
  .builder-intro { padding: 36px 20px 30px; }
  .field-grid, .mode-choice { grid-template-columns: 1fr; }
  .map-search, .midi-copy { grid-template-columns: 1fr; }
  .mode-choice label + label span { border-top: 0; border-left: 1px solid var(--line); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid div:nth-child(2) { border-right: 0; }
  .summary-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .instructions, .facts { margin: 0 12px 34px; }
  .instruction-grid, .facts { grid-template-columns: 1fr; }
  .instruction-grid article, .facts article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .instruction-grid article:last-child, .facts article:last-child { border-bottom: 0; }
  .warning { grid-template-columns: 1fr; }
  .read-tools { align-items: stretch; flex-direction: column; }
  .read-tools button { width: 100%; }
  .official-links { padding: 16px 22px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .official-links span { margin-right: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

html[data-embed="true"], html[data-embed="true"] body { width: 100%; height: 100%; min-height: 100%; overflow: hidden; }
html[data-embed="true"] main { min-height: 100%; }
html[data-embed="true"] main > :not(.workbench) { display: none; }
html[data-embed="true"] .workbench { height: 100vh; min-height: 100vh; margin: 0; display: block; border: 0; }
html[data-embed="true"] .sequence,
html[data-embed="true"] .builder,
html[data-embed="true"] .device-stage > .panel-title,
html[data-embed="true"] .source-strip { display: none; }
html[data-embed="true"] .device-stage { height: 100vh; border: 0; }
html[data-embed="true"] .grid-field { width: 100%; height: 100vh; min-height: 100vh; }
html[data-embed="true"] .grid-field::before { width: min(74%, 330px); }
html[data-embed="true"] .grid-field::after { width: min(52%, 230px); }
html[data-embed="true"] .device-label { display: none; }
html[data-embed="true"] .ortho { width: min(56%, 275px); }
html[data-embed="true"] .ortho-shadow { width: min(58%, 285px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
