/* ── Famous Generation Background Widget ─────────────────────────── */
#famous-widget-root {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 9998;
  display: none;
  font-family: 'Courier New', monospace;
}

/* Minimized: arrow tab */
#famous-widget-arrow {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111;
  border: 1.5px solid #3dff6e;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #3dff6e;
  box-shadow: 0 2px 10px rgba(61, 255, 110, 0.2);
  margin-left: auto;
}

/* Expanded card */
#famous-widget-card {
  background: #111;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 300px;
  padding: 12px 12px 10px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.famous-card-row1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.famous-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #3dff6e;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}
.famous-card-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.famous-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.famous-type {
  font-size: 9px;
  color: #888;
  letter-spacing: 0.06em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.famous-close-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  position: relative;
  z-index: 2;
}
.famous-close-btn:active { color: #fff; }

/* ── Mini Stepper in widget ──────────────────────────────────── */
.famous-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 10px;
  padding: 0 2px;
}
.famous-step {
  display: flex;
  align-items: center;
  flex: 1;
}
.famous-step-box {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1.5px solid #2a2a2a;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #2a2a2a;
  flex-shrink: 0;
  transition: border-color .3s, background .3s, box-shadow .3s, color .3s;
}
.famous-step-line {
  flex: 1;
  height: 2px;
  background: #2a2a2a;
  transition: background .3s;
  min-width: 4px;
}
.famous-step:last-child .famous-step-line { display: none; }

/* States */
.famous-step.done .famous-step-box {
  border-color: #3dff6e;
  background: #3dff6e;
  color: #000;
}
.famous-step.done .famous-step-line { background: #3dff6e; }

.famous-step.active .famous-step-box {
  border-color: #3dff6e;
  background: rgba(61, 255, 110, 0.1);
  color: #3dff6e;
  box-shadow: 0 0 8px rgba(61, 255, 110, 0.3);
  animation: famousStepPulse 2s ease-in-out infinite;
}
@keyframes famousStepPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(61, 255, 110, 0.3); }
  50%      { box-shadow: 0 0 14px rgba(61, 255, 110, 0.5); }
}

.famous-step.error .famous-step-box {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
}

/* Stage description under stepper */
.famous-stage-desc {
  font-size: 9px;
  color: #3dff6e;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.famous-card-row2 {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  align-items: center;
}
.famous-stage {
  font-size: 9px;
  color: #666;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.famous-ptimer {
  font-size: 9px;
  color: #666;
  white-space: nowrap;
}
