.st-setup-helper-root {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  min-width: 0;
}

.st-setup-helper-root.is-panel-host {
  display: block;
  height: 0;
  min-width: 0;
  overflow: visible;
  position: fixed;
  width: 0;
}

.st-setup-helper-panel {
  background: var(--st-surface);
  border: 1px solid var(--st-border-soft);
  box-shadow: var(--st-shadow-md);
  color: var(--st-text-primary);
  overflow: hidden;
  position: fixed;
  right: 16px;
  z-index: 220;
}

.st-setup-helper-panel.is-expanded {
  border-radius: 5px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  max-height: min(520px, 50vh);
  width: 300px;
}

.st-setup-helper-panel.is-collapsed {
  align-items: center;
  border-radius: var(--st-radius-card);
  bottom: 16px;
  display: flex;
  gap: 12px;
  height: 80px;
  justify-content: space-between;
  padding: 0 16px;
  width: 300px;
}

.st-setup-helper-pill {
  align-items: center;
  background: var(--st-surface);
  border: 1px solid var(--st-border-soft);
  border-radius: var(--st-radius-pill);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
  color: var(--st-text-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  white-space: nowrap;
}

.st-setup-helper-pill:hover {
  background: #f9fafb;
}

.st-setup-helper-pill-icon {
  color: var(--st-chainsaw-orange);
  height: 14px;
  width: 14px;
}

.st-setup-helper-pill-percent {
  color: var(--st-text-secondary);
  font-weight: 500;
}

.st-setup-helper-header {
  align-items: center;
  border-bottom: 1px solid var(--st-border-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
}

.st-setup-helper-title {
  color: var(--st-text-primary);
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25rem;
  margin: 0;
  min-width: 0;
}

.st-setup-helper-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.st-setup-helper-icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--st-radius-button);
  color: #8f98a6;
  cursor: pointer;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 4px;
  width: 24px;
}

.st-setup-helper-icon-button:hover {
  background: #f3f4f6;
  color: var(--st-action-default);
}

.st-setup-helper-icon-button .st-icon {
  height: 16px;
  width: 16px;
}

.st-setup-progress-row {
  border-bottom: 1px solid var(--st-border-soft);
  flex-shrink: 0;
  padding: 8px 16px;
}

.st-setup-progress-row.is-mini {
  border-bottom: 0;
  margin-top: 4px;
  padding: 0;
}

.st-setup-progress-row-inner {
  align-items: center;
  display: flex;
  gap: 8px;
}

.st-setup-progress-track {
  background: #e5e7eb;
  border-radius: var(--st-radius-pill);
  flex: 1 1 auto;
  height: 8px;
  overflow: hidden;
}

.st-setup-progress-row.is-mini .st-setup-progress-track {
  height: 6px;
}

.st-setup-progress-track span {
  background: var(--st-chainsaw-orange);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.2s ease;
}

.st-setup-progress-label {
  color: #374151;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}

.st-setup-progress-row.is-mini .st-setup-progress-label {
  color: #4b5563;
  font-weight: 500;
}

.st-setup-helper-steps {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.st-setup-step {
  background: var(--st-surface);
  border-bottom: 1px solid #eceff3;
}

.st-setup-step:last-child {
  border-bottom: 0;
}

.st-setup-step-header {
  align-items: center;
  background: var(--st-surface);
  border: 0;
  color: var(--st-text-primary);
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  height: 45px;
  padding: 6px 12px;
  text-align: left;
  width: 100%;
}

.st-setup-step-header:hover,
.st-setup-step-header[aria-expanded="true"] {
  background: #f3f4f6;
}

.st-setup-step-title {
  color: var(--st-text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-setup-step.is-complete .st-setup-step-title {
  color: #6b7280;
  text-decoration: line-through;
}

.st-setup-step-chevron {
  color: #9ca3af;
  height: 16px;
  width: 16px;
}

.st-setup-task-list {
  background: #f3f4f6;
  display: grid;
  gap: 0;
  padding: 4px 12px 8px 28px;
}

.st-setup-task-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 16px minmax(0, 1fr) 20px;
  min-width: 0;
  padding: 4px 0;
}

.st-setup-task-row.is-next .st-setup-task-label {
  font-weight: 700;
}

.st-setup-task-tooltip-anchor {
  display: block;
  min-width: 0;
}

.st-setup-task-label {
  background: transparent;
  border: 0;
  color: var(--st-text-primary);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.st-setup-task-label:hover:not(:disabled) {
  color: var(--st-forest-green);
}

.st-setup-task-label:disabled {
  cursor: not-allowed;
}

.st-setup-task-label.is-complete {
  color: #6b7280;
  text-decoration: line-through;
}

.st-setup-task-label.is-blocked {
  color: #9ca3af;
}

.st-setup-task-label.is-notrequired {
  color: #6b7280;
}

.st-setup-task-confirm {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--st-radius-button);
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  opacity: 0;
  padding: 0;
  transition: opacity 0.16s ease, color 0.16s ease;
  width: 20px;
}

.st-setup-task-row:hover .st-setup-task-confirm,
.st-setup-task-confirm:focus-visible {
  opacity: 1;
}

.st-setup-task-confirm:hover {
  color: var(--st-forest-green);
}

.st-setup-task-confirm.is-clear:hover {
  color: var(--st-chainsaw-orange);
}

.st-setup-task-confirm-icon {
  height: 16px;
  width: 16px;
}

.st-setup-state-icon {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.st-setup-state-icon .st-icon {
  height: 16px;
  width: 16px;
}

.st-setup-state-icon.is-complete {
  color: #16a34a;
}

.st-setup-state-icon.is-progress {
  color: var(--st-chainsaw-orange);
}

.st-setup-state-icon.is-blocked,
.st-setup-state-icon.is-incomplete {
  color: #9ca3af;
}

.st-setup-state-icon.is-muted {
  color: #d1d5db;
}

.st-setup-helper-mini-content {
  flex: 1 1 auto;
  min-width: 0;
}

.st-setup-helper-next-label {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.25;
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .st-setup-helper-panel.is-expanded {
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--st-radius-card) var(--st-radius-card) 0 0;
    border-right: 0;
    bottom: 0;
    left: 0;
    max-height: 70dvh;
    right: 0;
    width: 100%;
  }

  .st-setup-helper-panel.is-collapsed {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .st-setup-helper-pill {
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
  }

  .st-setup-helper-pill-icon,
  .st-setup-helper-pill-label {
    display: none;
  }

  .st-setup-helper-pill-percent {
    color: var(--st-chainsaw-orange);
    font-weight: 800;
  }
}

@media (max-width: 430px) {
  .st-setup-task-row {
    grid-template-columns: 16px minmax(0, 1fr) 20px;
  }
}
