/* Pokémon animation debug — extends debug-editor layout */

.pad-app {
  grid-template-columns: 1fr 380px;
}

.pad-sidebar {
  overflow-y: auto;
}

.pad-filter {
  width: 100%;
  margin-bottom: 8px;
}

.pad-roster {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.pad-roster__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #2a3140;
  border-radius: 6px;
  background: #181c26;
  color: #e8eaed;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.pad-roster__item:hover {
  border-color: #3d4a62;
  background: #1e2430;
}

.pad-roster__item.is-active {
  border-color: #5a8fd4;
  background: #1a2840;
}

.pad-roster__icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pad-roster__icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.pad-roster__icon.is-missing {
  border-radius: 4px;
  background: #252a36;
  border: 1px dashed #3d4658;
}

.pad-roster__dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 7px;
  height: 7px;
  border: 1px solid #181c26;
  border-radius: 50%;
  background: #4a5568;
}

.pad-roster__label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pad-roster__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pad-roster__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: #8b95a8;
}

.pad-roster__item.is-loading .pad-roster__dot {
  background: #e8c478;
  animation: pad-pulse 0.9s ease-in-out infinite;
}

.pad-roster__item.is-ready .pad-roster__dot {
  background: #50dc78;
}

.pad-roster__item.is-error .pad-roster__dot {
  background: #f07178;
}

.pad-roster__type {
  color: #8b95a8;
  font-size: 11px;
  text-transform: capitalize;
}

.pad-toolbar {
  flex-wrap: wrap;
  gap: 6px;
}

.pad-toolbar__sep {
  width: 1px;
  height: 22px;
  background: #2a3140;
  margin: 0 4px;
}

.pad-toolbar__hint {
  color: #6b7588;
  font-size: 11px;
  margin-left: auto;
}

.pad-gizmos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.pad-readout {
  white-space: pre-wrap;
  line-height: 1.45;
  max-height: 280px;
  overflow-y: auto;
}

.pad-scale-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pad-scale-actions {
  margin-top: 2px;
}

.pad-scale-dirty {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(224, 120, 80, 0.18);
  border: 1px solid rgba(224, 120, 80, 0.45);
  color: #f0a878;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.de-status.is-ok {
  color: #50dc78;
}

@keyframes pad-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .pad-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    overflow-y: auto;
  }

  .pad-sidebar {
    grid-row: 2;
    max-height: 42vh;
  }

  .de-main {
    min-height: 48vh;
  }

  .pad-toolbar__hint {
    width: 100%;
    margin-left: 0;
  }
}
