@font-face {
  font-family: "Albert Sans";
  src: url("./fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("./fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--body-font);
  font-synthesis: none;
  --rail-width: clamp(340px, 29vw, 460px);
  --resizer-width: 14px;
  --workbench-canvas: color-mix(in srgb, var(--canvas) 78%, var(--muted) 22%);
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  overflow: hidden;
  background: var(--workbench-canvas);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img[src*="/characters/"] {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow:
    inset 0 -3px 0 var(--ink),
    inset 0 -6px 0 var(--accent);
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.playground-app {
  display: grid;
  grid-template-columns: var(--rail-width) var(--resizer-width) minmax(0, 1fr);
  height: 100dvh;
}

.playground-app[data-controls-collapsed="true"] {
  grid-template-columns: 0 0 minmax(0, 1fr);
}

.playground-app[data-controls-collapsed="true"] .control-rail,
.playground-app[data-controls-collapsed="true"] .control-rail-resizer {
  display: none;
}

.control-rail {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 0;
}

.control-rail-heading,
.control-group,
.control-actions,
.control-status {
  padding-inline: clamp(20px, 3vw, 36px);
}

.control-rail-heading {
  padding-top: 24px;
  padding-bottom: 28px;
}

.control-rail-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.playground-brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink);
  text-decoration: none;
}

.playground-brand span {
  color: var(--gold);
  font-size: 24px;
}

.playground-brand strong {
  font: 700 26px/1 var(--display);
  letter-spacing: -0.04em;
}

.control-rail-close,
.control-rail-open {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  cursor: pointer;
}

.control-rail-close:hover,
.control-rail-open:hover {
  background: var(--accent-soft);
}

.control-rail-close svg,
.control-rail-open svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.control-rail-open {
  gap: 8px;
  padding-inline: 13px;
  font-size: 12px;
  font-weight: 800;
}

.control-rail-open[hidden] {
  display: none;
}

.control-rail-resizer {
  position: relative;
  z-index: 3;
  display: grid;
  min-width: 0;
  place-items: center;
  touch-action: none;
  cursor: col-resize;
}

.control-rail-resizer::before {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.control-rail-resizer span {
  position: relative;
  width: 4px;
  height: 64px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 34%, transparent);
  opacity: 0.42;
  transition:
    opacity 140ms ease,
    background-color 140ms ease;
}

.control-rail-resizer:hover span,
.control-rail-resizer:focus-visible span,
.control-rail-resizer[data-resizing="true"] span {
  background: var(--accent);
  opacity: 1;
}

.control-rail-resizer:focus-visible {
  outline: none;
  box-shadow: inset 3px 0 0 var(--accent);
}

body[data-resizing-controls="true"] {
  cursor: col-resize;
  user-select: none;
}

.eyebrow,
.field-label,
.accordion-title {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.control-rail h1 {
  max-width: 9ch;
  margin: 0;
  font: 650 clamp(36px, 3.8vw, 56px) / 0.94 var(--display);
  letter-spacing: -0.055em;
}

.control-rail-heading > p:last-child {
  max-width: 33ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.control-group {
  padding: 0;
  border-top: 1px solid var(--line);
}

.accordion-heading {
  margin: 0;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 3vw, 36px);
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.accordion-trigger:hover {
  background: color-mix(in srgb, var(--accent-soft) 30%, transparent);
}

.accordion-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.control-group-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-section[data-accordion-ready="true"] .accordion-panel {
  transition:
    grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease-out;
}

.accordion-panel-inner {
  min-height: 0;
}

.accordion-section[data-accordion-animating="true"] .accordion-panel-inner,
.accordion-section[data-collapsed="true"] .accordion-panel-inner {
  overflow: hidden;
}

.accordion-content {
  padding: 0 clamp(20px, 3vw, 36px) 28px;
}

.accordion-section[data-collapsed="true"] .accordion-panel {
  grid-template-rows: 0fr;
  opacity: 0;
}

.accordion-section[data-collapsed="true"] .accordion-chevron {
  transform: rotate(-90deg);
}

.field + .field,
.range-field,
.two-column-fields,
.coordinate-fields {
  margin-top: 18px;
}

.two-column-fields > .field + .field {
  margin-top: 0;
}

.field-label,
.coordinate-fields label span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.custom-select {
  position: relative;
}

.select-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  cursor: pointer;
}

.select-trigger:hover {
  background: color-mix(in srgb, var(--accent-soft) 36%, var(--paper));
}

.select-trigger .chevron {
  flex: 0 0 auto;
  font-size: 20px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.select-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.character-trigger img,
.character-menu img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.select-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.select-copy strong {
  font-size: 15px;
}

.select-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.field-help[hidden] {
  display: none;
}

.select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(340px, 46vh);
  padding: 6px;
  overflow: auto;
  border-radius: 14px;
}

.select-menu[hidden] {
  display: none;
}

.select-menu > button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.select-menu > button:hover,
.select-menu > button[aria-selected="true"] {
  background: var(--accent-soft);
}

.select-menu > button strong,
.select-menu > button small {
  display: block;
}

.select-menu > button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.preview-state-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.preview-state-button span {
  color: var(--accent);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toggle-grid label,
.touch-override-toggle {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.toggle-grid input,
.touch-override-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.toggle-grid span,
.touch-override-toggle span {
  font-size: 13px;
  font-weight: 650;
}

.range-field {
  display: grid;
  gap: 10px;
}

.range-field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.range-field strong,
.range-field output {
  font-size: 12px;
}

.range-field output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.two-column-fields,
.coordinate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coordinate-fields[hidden] {
  display: none;
}

.coordinate-fields input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.advanced-content {
  padding-top: 0;
}

.advanced-content > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mapping-list {
  display: grid;
  gap: 10px;
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(95px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
}

.mapping-row > span {
  font-size: 12px;
  font-weight: 700;
}

.mapping-row .select-trigger {
  min-height: 42px;
  font-size: 12px;
}

.touch-override-toggle {
  margin: 18px 0 12px;
}

.touch-override-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.json-field {
  display: grid;
  gap: 8px;
}

.json-field textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: var(--ink);
  color: #fafafa;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, white 18%, transparent);
  font:
    500 11px/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  tab-size: 2;
}

.json-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.json-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.json-actions button:first-child {
  background: var(--ink);
  color: white;
}

.control-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.primary-action,
.quiet-action {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 20px;
  background: var(--ink);
  color: white;
}

.primary-action span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.quiet-action {
  padding-inline: 18px;
  background: transparent;
}

.control-status {
  margin: 0;
  padding-top: 12px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.control-status[data-tone="error"] {
  color: var(--error);
}

.preview-workbench {
  display: grid;
  min-width: 0;
  grid-column: 3;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(18px, 2.2vw, 32px);
  overflow: hidden;
  background: var(--workbench-canvas);
  background-image: none;
}

.workbench-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
}

.workbench-heading .eyebrow {
  margin-bottom: 8px;
}

.workbench-heading h2 {
  margin: 0;
  font: 650 clamp(26px, 2.5vw, 38px) / 1 var(--display);
  letter-spacing: -0.035em;
}

.workbench-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.viewport-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.viewport-switcher button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.viewport-switcher svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.viewport-switcher button[aria-pressed="true"] {
  background: var(--accent-soft);
}

.browser-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: center;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: color-mix(in srgb, var(--workbench-canvas) 88%, var(--ink) 12%);
  padding: clamp(8px, 1.2vw, 16px);
}

.browser-frame {
  display: grid;
  width: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  box-shadow:
    0 28px 70px rgba(38, 38, 38, 0.14),
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 24%, transparent);
  transform-origin: top center;
  transition:
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    height 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-stage[data-viewport="tablet"] .browser-frame {
  width: min(768px, 100%);
}

.browser-stage[data-viewport="mobile"] .browser-frame {
  width: min(390px, 100%);
}

.browser-toolbar {
  grid-row: 1;
  display: grid;
  grid-template-columns: auto auto minmax(140px, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 10px 7px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, var(--accent-soft));
}

.traffic-lights,
.browser-history {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) {
  background: #ff605c;
}
.traffic-lights span:nth-child(2) {
  background: #ffbd44;
}
.traffic-lights span:nth-child(3) {
  background: #00ca4e;
}

.browser-history button {
  display: grid;
  width: 30px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.browser-history button:hover,
.reload-preview:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.browser-history svg,
.reload-preview svg,
.url-lock {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.url-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px 0 13px;
  border-radius: 12px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
}

.url-form > .url-lock {
  width: 15px;
  height: 15px;
  color: var(--success);
}

.url-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.url-form input:focus-visible {
  box-shadow: none;
}

.url-form button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.reload-preview {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.external-mode-notice {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.external-mode-notice[hidden] {
  display: none;
}

.external-mode-copy,
.external-mode-notice strong,
.external-mode-notice p {
  margin: 0;
}

.external-mode-copy {
  min-width: 0;
}

.external-mode-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--success);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.external-mode-notice strong {
  display: block;
  font-size: 13px;
}

.external-mode-notice p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.bridge-snippet {
  display: grid;
  max-width: 760px;
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 72%, transparent);
}

.bridge-snippet code {
  min-width: 0;
  overflow: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
  scrollbar-width: thin;
  white-space: nowrap;
}

.bridge-snippet .bridge-copy {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 9px;
}

.bridge-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.external-mode-help {
  max-width: 74ch;
  color: var(--faint) !important;
}

.external-mode-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.external-mode-notice button {
  min-height: 40px;
  flex: 0 0 auto;
  padding-inline: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.external-mode-notice #retry-external,
.external-mode-notice #return-to-sandbox {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.external-mode-notice[data-connected="true"] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.external-mode-notice[data-connected="true"] .bridge-snippet,
.external-mode-notice[data-connected="true"] .external-mode-help,
.external-mode-notice[data-connected="true"] #retry-external {
  display: none;
}

#preview-frame {
  grid-row: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: var(--canvas);
}

.browser-statusbar {
  grid-row: 4;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

#preview-connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#preview-connection i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

#preview-connection[data-ready="true"] i {
  background: var(--accent);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .playground-app {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
  }

  .playground-app[data-controls-collapsed="true"] {
    grid-template-columns: 1fr;
  }

  .control-rail-resizer {
    display: none;
  }

  .control-rail {
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-rail-topline {
    margin-bottom: 28px;
  }

  .control-rail h1 {
    max-width: 13ch;
  }

  .preview-workbench {
    grid-column: 1;
    min-height: 760px;
    padding: 20px 12px 32px;
  }

  .browser-stage {
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  .control-rail-heading,
  .control-actions,
  .control-status {
    padding-inline: 16px;
  }

  .accordion-trigger {
    padding-inline: 16px;
  }

  .accordion-content {
    padding-inline: 16px;
  }

  .two-column-fields {
    grid-template-columns: 1fr;
  }

  .workbench-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .workbench-tools {
    width: 100%;
    justify-content: space-between;
  }

  .workbench-tools > .viewport-switcher:only-child {
    margin-left: auto;
  }

  .control-rail-open span {
    display: none;
  }

  .workbench-heading .eyebrow {
    display: none;
  }

  .viewport-switcher button {
    width: 40px;
    height: 40px;
  }

  .browser-toolbar {
    grid-template-columns: auto minmax(0, 1fr) 40px;
    gap: 8px;
    min-height: 54px;
    padding-left: 12px;
  }

  .browser-history {
    display: none;
  }

  .traffic-lights {
    gap: 5px;
  }

  .traffic-lights span {
    width: 9px;
    height: 9px;
  }

  .external-mode-notice {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .external-mode-actions {
    justify-content: flex-start;
  }

  .external-mode-notice[data-connected="true"] {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .browser-frame,
  .select-trigger .chevron,
  .accordion-panel,
  .accordion-chevron,
  .control-rail-resizer span {
    transition: none;
  }
}
