.debug-tools {
  position: absolute;
  z-index: 8;
  inset: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) auto auto;
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #241f30;
  font: 700 14px/1.2 var(--brief-family);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.debug-tools [hidden] { display: none; }
.debug-gear {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #514956;
  font: 16px/1 'Segoe UI Symbol', 'Noto Sans Symbols 2', sans-serif;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
}
.debug-gear::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid #38314220;
  border-radius: 17px;
  background: #fffcffdb;
  transition: border-radius 220ms cubic-bezier(.34, 1.45, .64, 1), background-color 150ms ease;
  content: '';
}
.debug-gear:hover::before,
.debug-gear[aria-expanded="true"]::before { background: #e9e1f1; }
.debug-gear:active,
.debug-gear[data-pressed] {
  transform: scale(.91);
  transition-duration: 75ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.debug-gear:active::before,
.debug-gear[data-pressed]::before {
  border-radius: 8px;
  background: #ded3ee;
  transition-duration: 75ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.debug-panel button,
.debug-panel select {
  min-height: 44px;
  border: 1px solid #d9d0e3;
  border-radius: 22px;
  background: #fbf8ff;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.debug-panel button {
  padding: 0 13px;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.34, 1.5, .64, 1), border-radius 220ms cubic-bezier(.34, 1.45, .64, 1), background-color 140ms ease;
}
.debug-panel button:hover { background: #ede4f8; }
.debug-panel button:not(:disabled):active,
.debug-panel button:not(:disabled)[data-pressed] {
  transform: scale(.96);
  border-radius: 11px;
  background: #dfd2f3;
  transition-duration: 75ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.debug-panel button:disabled { opacity: .5; cursor: default; }
.debug-tools :focus-visible { outline: 2px solid #5842a3; outline-offset: 2px; }
.debug-panel {
  width: min(260px, calc(100vw - 32px));
  padding: 11px;
  border: 1px solid #d8cfe5;
  border-radius: 19px;
  background: #f3ebfc;
  box-shadow: 0 7px 25px #311c4930;
}
.debug-panel__controls { display: grid; gap: 5px; }
.debug-panel label { padding-inline: 2px; }
.debug-panel select { width: 100%; padding-inline: 12px; }
.card-variants__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.end-collection__card[data-open] .end-collection__close { right: calc(max(17px, env(safe-area-inset-right)) + 28px); }
.viewport canvas { filter: drop-shadow(0 5px 7px #2b231f23); }
.brief-tray-card[data-variant]:not([data-variant="original"]),
.brief-card-flight canvas[data-variant]:not([data-variant="original"]) { border-radius: 0; box-shadow: none; }
