/* Interações extras — Leviata local :3855 */
.toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 2rem));
}
.toast {
  pointer-events: auto;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.88rem;
  animation: toastIn 0.35s ease both;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.toast.ok { border-color: rgba(52, 211, 153, 0.45); }
.toast.err { border-color: rgba(248, 113, 113, 0.45); }
.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: var(--accent);
}
.toast.ok .toast-dot { background: var(--ok); }
.toast.err .toast-dot { background: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.step-pill i {
  font-style: normal;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.step-pill.done {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}
.step-pill.done i {
  background: rgba(52, 211, 153, 0.2);
  border-color: rgba(52, 211, 153, 0.4);
}
.step-pill.active {
  color: var(--accent-2);
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--accent-soft);
  transform: scale(1.02);
}
.step-pill.active i {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.2);
}

.motor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #93c5fd;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}
.motor-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
  animation: chipPulse 2s ease-in-out infinite;
}

.icon-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
  min-height: 56px;
  transition: border-color 0.2s, background 0.2s;
}
.icon-preview-wrap.has-img {
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.35);
  background: var(--accent-soft);
}
.icon-preview {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #111;
  flex-shrink: 0;
}
.icon-preview.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  padding: 0.2rem;
}
.icon-preview-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.drop.has-file {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.06);
}
.drop.has-file strong { color: var(--ok); }

.progress-steps {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.progress-steps.on { display: grid; }
@media (max-width: 560px) {
  .progress-steps { grid-template-columns: repeat(2, 1fr); }
}
.progress-step {
  font-size: 0.68rem;
  text-align: center;
  padding: 0.4rem 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.25s;
}
.progress-step.run {
  color: var(--accent-2);
  border-color: rgba(59, 130, 246, 0.5);
  background: var(--accent-soft);
  animation: stepPulse 1.2s ease-in-out infinite;
}
.progress-step.done {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.4);
}
@keyframes stepPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.stat-num.tick {
  transition: transform 0.2s, color 0.2s;
}
.stat-num.bump {
  transform: scale(1.06);
  color: var(--accent-2);
}

#goDropper.ready-pulse:not(:disabled) {
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
  animation: readyPulse 2s ease-in-out infinite;
}
@keyframes readyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
@media (max-width: 860px) {
  .sidebar-toggle { display: grid; place-items: center; }
  .layout.sidebar-open .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--side-w), 88vw);
    z-index: 40;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(0);
  }
  .layout:not(.sidebar-open) .sidebar {
    position: fixed;
    transform: translateX(calc(-100% - 8px));
    transition: transform 0.28s ease;
    height: 100vh;
    z-index: 40;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.55);
  }
  .layout.sidebar-open .sidebar-backdrop { display: block; }
}

/* login shimmer no botão */
#loginBtn:not(:disabled):hover {
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}
