html,
body {
  width: 900px;
  min-width: 900px;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
}

body {
  background: #0c0d0e;
  user-select: none;
}

.app-shell {
  position: relative;
  width: 900px;
  min-width: 900px;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
}

.tool-grid {
  align-content: start;
  justify-content: stretch;
}

body[data-host="AEFT"] .tool-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body[data-host="ILST"] .tool-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tool-button,
.refresh-button,
.host-switch button,
.anchor-cell,
.align-btn,
.icon-btn,
.chip,
.anim-tile {
  touch-action: manipulation;
}

.tool-button:focus-visible,
.refresh-button:focus-visible,
.host-switch button:focus-visible,
.anchor-cell:focus-visible,
.align-btn:focus-visible,
.icon-btn:focus-visible,
.chip:focus-visible,
.anim-tile:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.tool-button.is-demo-success,
.refresh-button.is-demo-success,
.anim-tile.is-demo-active {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 0 0 0 1px rgba(198, 242, 59, 0.2), 0 0 22px rgba(198, 242, 59, 0.16);
}

.refresh-button.is-demo-success svg {
  color: var(--lime);
}

.options {
  min-height: 118px;
}

.status-row {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 20;
  align-items: center;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
}

.status-row strong {
  flex: none;
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}

.status-row #statusText {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-row.busy strong,
.status-row.busy #statusText {
  color: var(--orange);
}

.status-row.ok .status-dot {
  animation: demo-status-pulse 560ms ease-out;
}

#trimPresetSlot .anim-live {
  animation-play-state: paused;
}

#trimPresetSlot .anim-tile.is-demo-active .anim-live {
  stroke: var(--lime);
  animation-play-state: running;
}

.demo-transfer {
  position: absolute;
  z-index: 30;
  top: 122px;
  left: 72px;
  width: 98px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lime);
  border-radius: 5px;
  background: #15191a;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) scale(0.92);
}

.app-shell.is-transferring.to-ae .demo-transfer {
  animation: demo-transfer-ae 900ms cubic-bezier(0.33, 0, 0.25, 1);
}

.app-shell.is-transferring.to-ai .demo-transfer {
  animation: demo-transfer-ai 900ms cubic-bezier(0.33, 0, 0.25, 1);
}

@keyframes demo-transfer-ae {
  0% { opacity: 0; transform: translateX(0) scale(0.92); }
  15% { opacity: 1; }
  78% { opacity: 1; transform: translateX(650px) scale(1); }
  100% { opacity: 0; transform: translateX(690px) scale(0.92); }
}

@keyframes demo-transfer-ai {
  0% { opacity: 0; transform: translateX(690px) scale(0.92); }
  15% { opacity: 1; }
  78% { opacity: 1; transform: translateX(40px) scale(1); }
  100% { opacity: 0; transform: translateX(0) scale(0.92); }
}

@keyframes demo-status-pulse {
  0% { transform: scale(0.72); box-shadow: 0 0 0 rgba(198, 242, 59, 0); }
  45% { transform: scale(1.35); box-shadow: 0 0 18px rgba(198, 242, 59, 0.72); }
  100% { transform: scale(1); box-shadow: 0 0 12px rgba(198, 242, 59, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-transfer,
  .status-row.ok .status-dot {
    animation-duration: 1ms !important;
  }
}
